summaryrefslogtreecommitdiffstats
path: root/sound/usb/clock.c
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2021-06-10 10:35:28 +0200
committerTakashi Iwai <tiwai@suse.de>2021-06-10 10:38:33 +0200
commit7fdabab8f56239466275adea5d2f0a6fff27527b (patch)
treeab5bcd241d4a0100b809188adfc4ffd6ed66cc70 /sound/usb/clock.c
parentALSA: core: Add continuous and vmalloc mmap ops (diff)
downloadlinux-7fdabab8f56239466275adea5d2f0a6fff27527b.tar.xz
linux-7fdabab8f56239466275adea5d2f0a6fff27527b.zip
ALSA: usb-audio: Add support for Denon DN-X1600
This provides support for Denon DN-X1600 hardware mixer. The device itself supports 44100, 48000 and 96000 (Hz) sample rates, but switching rates via software is currently not working. Therefore, this patch hardcodes the sample rate to 48000Hz which enables all 8 channels to function correctly when the correct sample rate is selected on the hardware itself. MIDI also tested and works. Signed-off-by: Damien Zammit <damien@zamaudio.com> Tested-by: xalmoxis@gmail.com Link: https://lore.kernel.org/r/20210610083528.603942-2-damien@zamaudio.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/clock.c')
-rw-r--r--sound/usb/clock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/usb/clock.c b/sound/usb/clock.c
index 0afae839d295..52de52288e10 100644
--- a/sound/usb/clock.c
+++ b/sound/usb/clock.c
@@ -534,6 +534,13 @@ static int set_sample_rate_v2v3(struct snd_usb_audio *chip,
* rate.
*/
clock = snd_usb_clock_find_source(chip, fmt, false);
+
+ /* Denon DN-X1600 hardcoded
+ * Sample rate seems to be set on the hardware itself
+ */
+ if (chip->usb_id == USB_ID(0x154e, 0x500e))
+ return 0;
+
if (clock < 0)
return clock;
}