aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Helt <[email protected]>2008-07-31 21:11:46 +0200
committerJaroslav Kysela <[email protected]>2008-08-06 15:40:03 +0200
commit31eca307fd9b1eb9ec138eb01bcfed16af60dabb (patch)
tree5a2e964fd7a7ebaea1f8b1fcf1eee4ec5fe442f1
parent760fc6b838d8c783c363e8bdb3714bd92a8945c4 (diff)
ALSA: wss_lib: fix opti93x capture formats limitations
Limit opti93x cards capture formats to only linear ones. Signed-off-by: Krzysztof Helt <[email protected]> Reviewed-by: Rene Herman <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
-rw-r--r--sound/isa/wss/wss_lib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/isa/wss/wss_lib.c b/sound/isa/wss/wss_lib.c
index a5602f515f49..f2df77bd1308 100644
--- a/sound/isa/wss/wss_lib.c
+++ b/sound/isa/wss/wss_lib.c
@@ -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);