[ALSA] usb-audio - fix capture of non-48k sample rates on Audigy 2 NX
authorClemens Ladisch <clemens@ladisch.de>
Mon, 27 Jun 2005 06:18:27 +0000 (08:18 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 28 Jul 2005 10:09:26 +0000 (12:09 +0200)
USB generic driver
On the SB Audigy 2 NX, capturing with sample rates that are not a
multiple of 48 kHz does not seem to work, so disable it.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/usbaudio.c

index facd9fc11c3cebb3b36a26505dbe4bf8217313cc..c57b44511b54c266da872faefa6d6bd866d6e03c 100644 (file)
@@ -2408,10 +2408,9 @@ static int parse_audio_format(snd_usb_audio_t *chip, struct audioformat *fp,
        if (chip->usb_id == USB_ID(0x041e, 0x3000) ||
            chip->usb_id == USB_ID(0x041e, 0x3020)) {
                if (fmt[3] == USB_FORMAT_TYPE_I &&
-                   stream == SNDRV_PCM_STREAM_PLAYBACK &&
                    fp->rates != SNDRV_PCM_RATE_48000 &&
                    fp->rates != SNDRV_PCM_RATE_96000)
-                       return -1; /* use 48k only */
+                       return -1;
        }
 #endif
        return 0;