Skip to content

Commit

Permalink
ALSA: usb-audio: don't try to get Benchmark DAC1 sample rate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong authored and Takashi Iwai committed Apr 4, 2015
1 parent 7081adf commit 9fc88ad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sound/usb/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,8 +1113,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
Expand Down

0 comments on commit 9fc88ad

Please sign in to comment.