[alsa-devel] [PATCH 2/5] snd-usb-caiaq: Set default input mode of A4DJ
Mark Hills
mark at pogo.org.uk
Wed Feb 4 23:34:31 CET 2009
Do not start the device with input mode undefined. Mimic the behaviour of
the Audio 8 DJ and start in phono input mode.
Signed-off-by: Mark Hills <mark at pogo.org.uk>
Acked-by: Daniel Mack <daniel at caiaq.de>
---
usb/caiaq/caiaq-device.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/usb/caiaq/caiaq-device.c b/usb/caiaq/caiaq-device.c
index 2464614..769321d 100644
--- a/usb/caiaq/caiaq-device.c
+++ b/usb/caiaq/caiaq-device.c
@@ -312,6 +312,12 @@ static void __devinit setup_card(struct snd_usb_caiaqdev *dev)
}
break;
+ case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO4DJ):
+ /* Audio 4 DJ - default input mode to phono */
+ dev->control_state[0] = 2;
+ snd_usb_caiaq_send_command(dev, EP1_CMD_WRITE_IO,
+ dev->control_state, 1);
+ break;
}
if (dev->spec.num_analog_audio_out +
--
1.6.1.2
More information about the Alsa-devel
mailing list