mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[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>
This commit is contained in:
parent
d513202efd
commit
20cde9e8f8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue