ALSA: x86: Don't pass SNDRV_PCM_INFO_BATCH flag
authorTakashi Iwai <tiwai@suse.de>
Thu, 2 Feb 2017 20:33:54 +0000 (21:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 10 Feb 2017 09:21:41 +0000 (10:21 +0100)
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>
sound/x86/intel_hdmi_audio.c

index 15147fec1a7ea930fa68ea7b7f5be3d704cd7138..73a662d20201d21cbb9885c9220b57d9ef07cf85 100644 (file)
@@ -132,10 +132,8 @@ static const struct channel_map_table map_tables[] = {
 /* hardware capability structure */
 static const struct snd_pcm_hardware had_pcm_hardware = {
        .info = (SNDRV_PCM_INFO_INTERLEAVED |
-               SNDRV_PCM_INFO_DOUBLE |
-               SNDRV_PCM_INFO_MMAP|
-               SNDRV_PCM_INFO_MMAP_VALID |
-               SNDRV_PCM_INFO_BATCH),
+               SNDRV_PCM_INFO_MMAP |
+               SNDRV_PCM_INFO_MMAP_VALID),
        .formats = SNDRV_PCM_FMTBIT_S24,
        .rates = SNDRV_PCM_RATE_32000 |
                SNDRV_PCM_RATE_44100 |