ALSA: x86: Allow single period PCM operation
commit8d48c0163d1ab0f56a18ebe9898a34ebcfdfaa1a
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Feb 2017 07:05:46 +0000 (7 08:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 10 Feb 2017 09:21:42 +0000 (10 10:21 +0100)
treef58c097b7d324f5a886f774bf394e7cfd28c3373
parenta9ebdd0ef261fb9838af2821c09d165f6a14789b
ALSA: x86: Allow single period PCM operation

This is an implementation of PCM streaming with only 1 period.
Since the hardware requires the refresh of BDs after each BD
processing finishes, we'd need at least two BDs.  The trick is that
both BDs point to the same content: the address of the PCM buffer
head, and the whole buffer size.  Then it loops over to the whole
buffer again after it finished once.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c
sound/x86/intel_hdmi_lpe_audio.h