staging: line6: use source select control for UX2 devices
authorMarkus Grabner <grabner@icg.tugraz.at>
Thu, 19 Jan 2012 23:09:08 +0000 (00:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 17:14:35 +0000 (09:14 -0800)
Signed-off-by: Markus Grabner <grabner@icg.tugraz.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/toneport.c

index f31057830dbc37769fc70cb982076369d0462feb..b776130058ca8d2a3f218d5e81089d9c4194eebb 100644 (file)
@@ -320,7 +320,9 @@ static void toneport_setup(struct usb_line6_toneport *toneport)
        /* initialize source select: */
        switch (usbdev->descriptor.idProduct) {
        case LINE6_DEVID_TONEPORT_UX1:
+       case LINE6_DEVID_TONEPORT_UX2:
        case LINE6_DEVID_PODSTUDIO_UX1:
+       case LINE6_DEVID_PODSTUDIO_UX2:
                toneport_send_cmd(usbdev,
                                  toneport_source_info[toneport->source].code,
                                  0x0000);
@@ -363,7 +365,9 @@ static int toneport_try_init(struct usb_interface *interface,
        /* register source select control: */
        switch (usbdev->descriptor.idProduct) {
        case LINE6_DEVID_TONEPORT_UX1:
+       case LINE6_DEVID_TONEPORT_UX2:
        case LINE6_DEVID_PODSTUDIO_UX1:
+       case LINE6_DEVID_PODSTUDIO_UX2:
                err =
                    snd_ctl_add(line6->card,
                                snd_ctl_new1(&toneport_control_source,