diff options
author | Joe Turner <joe@oampo.co.uk> | 2015-02-16 20:44:33 +0000 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-06-09 14:31:47 -0400 |
commit | b978d2f62a4c2385b2991a9c73eb70943706bb45 (patch) | |
tree | 14e078a207b55e4d488cb30c23dcd4df0a272e8c /sound/usb/quirks.c | |
parent | 320bb9ecddd1b02b5010c8ec1a9bb47849ac003c (diff) | |
download | lwn-b978d2f62a4c2385b2991a9c73eb70943706bb45.tar.gz lwn-b978d2f62a4c2385b2991a9c73eb70943706bb45.zip |
ALSA: usb-audio: Don't attempt to get Lifecam HD-5000 sample rate
[ Upstream commit b62b998010028c4dfd7db7c26990efb2a0985a1e ]
Adds a quirk to disable the check that the sample rate has been set correctly, as the Lifecam does not support getting the sample rate.
This means that we don't need to wait for the USB timeout when attempting to get the sample rate. Waiting for the timeout causes problems in some applications, which give up on the device acquisition process before it has had time to complete, resulting in no sound.
[minor tidy up by tiwai]
Signed-off-by: Joe Turner <joe@oampo.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'sound/usb/quirks.c')
-rw-r--r-- | sound/usb/quirks.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index bf5870c21e8e..5940bd50fca8 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1102,6 +1102,11 @@ void snd_usb_set_format_quirk(struct snd_usb_substream *subs, } } +bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip) +{ + /* MS Lifecam HD-5000 doesn't support reading the sample rate. */ + return chip->usb_id == USB_ID(0x045E, 0x076D); +} /* Marantz/Denon USB DACs need a vendor cmd to switch * between PCM and native DSD mode |