ALSA: wss_lib: fix opti93x capture formats limitations
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Thu, 31 Jul 2008 19:11:46 +0000 (21:11 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 Aug 2008 13:40:03 +0000 (15:40 +0200)
Limit opti93x cards capture formats to only linear ones.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Reviewed-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/isa/wss/wss_lib.c

index a5602f5..f2df77b 100644 (file)
@@ -1495,8 +1495,10 @@ static int snd_wss_capture_open(struct snd_pcm_substream *substream)
 
        /* hardware limitation of cheap chips */
        if (chip->hardware == WSS_HW_CS4235 ||
-           chip->hardware == WSS_HW_CS4239)
-               runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE;
+           chip->hardware == WSS_HW_CS4239 ||
+           chip->hardware == WSS_HW_OPTI93X)
+               runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 |
+                                     SNDRV_PCM_FMTBIT_S16_LE;
 
        snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max);
        snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.period_bytes_max);