diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-02-07 10:05:46 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-02-10 12:21:42 +0300 |
commit | 8d48c0163d1ab0f56a18ebe9898a34ebcfdfaa1a (patch) | |
tree | f58c097b7d324f5a886f774bf394e7cfd28c3373 /sound/x86/intel_hdmi_lpe_audio.h | |
parent | a9ebdd0ef261fb9838af2821c09d165f6a14789b (diff) | |
download | linux-8d48c0163d1ab0f56a18ebe9898a34ebcfdfaa1a.tar.xz |
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>
Diffstat (limited to 'sound/x86/intel_hdmi_lpe_audio.h')
-rw-r--r-- | sound/x86/intel_hdmi_lpe_audio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/x86/intel_hdmi_lpe_audio.h b/sound/x86/intel_hdmi_lpe_audio.h index 97bbca19333a..477e5153307c 100644 --- a/sound/x86/intel_hdmi_lpe_audio.h +++ b/sound/x86/intel_hdmi_lpe_audio.h @@ -31,7 +31,7 @@ #define HAD_MAX_BUFFER ((1024 * 1024 - 1) & ~0x3f) #define HAD_DEFAULT_BUFFER (600 * 1024) /* default prealloc size */ #define HAD_MAX_PERIODS 256 /* arbitrary, but should suffice */ -#define HAD_MIN_PERIODS 2 +#define HAD_MIN_PERIODS 1 #define HAD_MAX_PERIOD_BYTES ((HAD_MAX_BUFFER / HAD_MIN_PERIODS) & ~0x3f) #define HAD_MIN_PERIOD_BYTES 1024 /* might be smaller */ #define HAD_FIFO_SIZE 0 /* fifo not being used */ |