mirror of https://gitee.com/openkylin/linux.git
ALSA: x86: Don't pass SNDRV_PCM_INFO_BATCH flag
The PCM engine on LPE audio isn't like a batch-style process any longer, but rather it deals with the standard ring buffer. Remove the BATCH info flag so that PA can handle the buffer in timer-sched mode. Similarly, the DOUBLE flag is also superfluous. Drop both bits. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
40ce4b5d70
commit
a9ebdd0ef2
|
@ -132,10 +132,8 @@ static const struct channel_map_table map_tables[] = {
|
||||||
/* hardware capability structure */
|
/* hardware capability structure */
|
||||||
static const struct snd_pcm_hardware had_pcm_hardware = {
|
static const struct snd_pcm_hardware had_pcm_hardware = {
|
||||||
.info = (SNDRV_PCM_INFO_INTERLEAVED |
|
.info = (SNDRV_PCM_INFO_INTERLEAVED |
|
||||||
SNDRV_PCM_INFO_DOUBLE |
|
SNDRV_PCM_INFO_MMAP |
|
||||||
SNDRV_PCM_INFO_MMAP|
|
SNDRV_PCM_INFO_MMAP_VALID),
|
||||||
SNDRV_PCM_INFO_MMAP_VALID |
|
|
||||||
SNDRV_PCM_INFO_BATCH),
|
|
||||||
.formats = SNDRV_PCM_FMTBIT_S24,
|
.formats = SNDRV_PCM_FMTBIT_S24,
|
||||||
.rates = SNDRV_PCM_RATE_32000 |
|
.rates = SNDRV_PCM_RATE_32000 |
|
||||||
SNDRV_PCM_RATE_44100 |
|
SNDRV_PCM_RATE_44100 |
|
||||||
|
|
Loading…
Reference in New Issue