summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2015-03-31 07:34:05 +0000
committerSasha Levin <sasha.levin@oracle.com>2015-06-09 14:31:49 -0400
commitca6f8915064f0add7894eb0f04419f5bc37a4a5d (patch)
treee0e43d2beedb34c8a1f31e2156c61d1acda2796c /sound
parent352ca4dd2af1ece77eedb42bb092fc527fbce3ec (diff)
ALSA: usb-audio: don't try to get Benchmark DAC1 sample rate
[ Upstream commit 9fc88ad6fd86ff6ce979105c633c58cc3980129c ] Adding this quirk allows us to avoid the noisy "cannot get freq at ep 0x1" message in dmesg output every time playback starts. This ought to affect other Benchmark DAC1 variations using the same "Microchip Technology, Inc." chip as well, but I have only tested with the "Pre" variant. Signed-off-by: Eric Wong <normalperson@yhbt.net> Cc: 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')
-rw-r--r--sound/usb/quirks.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 1861f233d40c..b92f4035e1d2 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1104,8 +1104,13 @@ 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);
+ /* devices which do not support reading the sample rate. */
+ switch (chip->usb_id) {
+ case USB_ID(0x045E, 0x076D): /* MS Lifecam HD-5000 */
+ case USB_ID(0x04D8, 0xFEEA): /* Benchmark DAC1 Pre */
+ return true;
+ }
+ return false;
}
/* Marantz/Denon USB DACs need a vendor cmd to switch