Skip to content

Commit

Permalink
[ALSA] sb8: fix SB 1.0 capture DMA programming
Browse files Browse the repository at this point in the history
Fix a wrong version check that would cause an invalid command to be sent
to SB 1.0 chips.

Signed-off-by: Clemens Ladisch <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
cladisch authored and tiwai committed Feb 29, 2008
1 parent d513202 commit 20cde9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/isa/sb/sb8_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 20cde9e

Please sign in to comment.