[ALSA] sb8: fix SB 1.0 capture DMA programming
[sfrench/cifs-2.6.git] / sound / isa / sb / sb8_main.c
index 6304c3a89ba0650b5a644c555f81dfded2cd2620..fe03bb820532beed11afd25dbfe8c67959ead1fa 100644 (file)
@@ -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);