diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-02-25 11:04:41 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-02-29 11:28:15 +0100 |
commit | 20cde9e8f83711dca532c49605914d50292d9ce5 (patch) | |
tree | ec67d8d0ab900b85d522497c99555e2046ccf5ec /sound/isa | |
parent | d513202efd5bb9974545ef1c7f951467b21eb3a5 (diff) | |
download | op-kernel-dev-20cde9e8f83711dca532c49605914d50292d9ce5.zip op-kernel-dev-20cde9e8f83711dca532c49605914d50292d9ce5.tar.gz |
[ALSA] sb8: fix SB 1.0 capture DMA programming
Fix a wrong version check that would cause an invalid command to be sent
to SB 1.0 chips.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r-- | sound/isa/sb/sb8_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/sb/sb8_main.c b/sound/isa/sb/sb8_main.c index 6304c3a..fe03bb8 100644 --- a/sound/isa/sb/sb8_main.c +++ b/sound/isa/sb/sb8_main.c @@ -277,7 +277,7 @@ static int snd_sb8_capture_prepare(struct snd_pcm_substream *substream) } else { snd_sbdsp_command(chip, 256 - runtime->rate_den); } - if (chip->capture_format != SB_DSP_OUTPUT) { + if (chip->capture_format != SB_DSP_INPUT) { count--; snd_sbdsp_command(chip, SB_DSP_BLOCK_SIZE); snd_sbdsp_command(chip, count & 0xff); |