From patchwork Sun Sep 18 18:59:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrej Krutak X-Patchwork-Id: 9338361 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C5A93607D0 for ; Sun, 18 Sep 2016 21:47:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFEE928AEC for ; Sun, 18 Sep 2016 21:47:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3BC828AF2; Sun, 18 Sep 2016 21:47:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB16228AEC for ; Sun, 18 Sep 2016 21:47:41 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 17E54266ABB; Sun, 18 Sep 2016 23:47:40 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 48F4D26048C; Sun, 18 Sep 2016 23:45:22 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 99D7626697C; Sun, 18 Sep 2016 21:01:02 +0200 (CEST) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by alsa0.perex.cz (Postfix) with ESMTP id 8DE482665FC for ; Sun, 18 Sep 2016 21:00:56 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id 133so11708399wmq.2 for ; Sun, 18 Sep 2016 12:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=56M0Hb0exoCQfMU+JHCnz60c+G7QsxoZcOdH66nRq7Y=; b=aJWdDra+iiOudN4U+QAwNzEUmWlmW0QLeDTgF8uvsl4lMAfbJEDvA62SF5g+Wu7PXz ijMJKdJS3nGt1nPnoEBwkmNKsGAXaJ78VtgPigN1XIOnb3RVIt0nOu6qd1W0cFhouc0V m9TZXy99WzjR1x201hhsULICbM7teTqWaNTClBrPYAffcGb915hE8lA1y3OjpbNM2Wf7 LWcu3PJ7sNx+pYP1xMUyloiRD7+gGorQ4xE2HVON8uVuQzuyh7A3U6DQy7inklE0NH7l SX9pJyNfOD50yuZ0baLZuX7vbQuffpeKkSBaqK4TCgm3XAQt4mfAG5ktBM16MYkW91Ri x9Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=56M0Hb0exoCQfMU+JHCnz60c+G7QsxoZcOdH66nRq7Y=; b=YOkH68PD/Yfq6JozDLg568FE3i4LurOngvF9iPIOYpUz411RX52PGYENbF+LxtbzRK c7I6UwNA+P2nG9DB9uZxyCKg2EyEb8LidtcW3yamqv1anBG4IY9VDgKm/dCuQsDVGnT7 G63CpLgX3edsjygtlJ8o71jRDFv3dd7SCn17kNLSA/E7qltvHoe+kY8t6CZD9Y0jeRas qJwEbHWd7hFFUtA0vO7/ngJrCXMOewfptqHrcWsKAagFJMySK/YctSbovtUbxZ89Fwfi s4RbLcTinNCFMoJnJLSCBPc6JMsKRR4usErMEfvpInwRtxTzQSg+7A3103NRcrbW1JSC nuPA== X-Gm-Message-State: AE9vXwNIzZsiap8n8FtOlTPLg1t+OdmvjMXWGAoPj7qoflqEGkhui+IBXEjyVIXc4Ao+BA== X-Received: by 10.194.30.97 with SMTP id r1mr20593764wjh.8.1474225256287; Sun, 18 Sep 2016 12:00:56 -0700 (PDT) Received: from andree.lan ([217.30.74.231]) by smtp.gmail.com with ESMTPSA id 142sm18158112wmh.12.2016.09.18.12.00.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 12:00:55 -0700 (PDT) From: Andrej Krutak To: tiwai@suse.com, perex@perex.cz, stefanha@gmail.com, grabner@icg.tugraz.at, alsa-devel@alsa-project.org Date: Sun, 18 Sep 2016 20:59:29 +0200 Message-Id: <1474225172-32081-10-git-send-email-dev@andree.sk> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474225172-32081-1-git-send-email-dev@andree.sk> References: <1470942147-19848-1-git-send-email-dev@andree.sk> <1474225172-32081-1-git-send-email-dev@andree.sk> Cc: Andrej Krutak Subject: [alsa-devel] [PATCH v4 09/12] ALSA: line6: Add support for POD X3 Live (only USB ID differs from POD X3) X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Andrej Krutak --- sound/usb/line6/podhd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c index 8cf0a98..8246ea5 100644 --- a/sound/usb/line6/podhd.c +++ b/sound/usb/line6/podhd.c @@ -37,6 +37,7 @@ enum { LINE6_PODHD500_0, LINE6_PODHD500_1, LINE6_PODX3, + LINE6_PODX3LIVE }; struct usb_line6_podhd { @@ -348,6 +349,7 @@ static const struct usb_device_id podhd_id_table[] = { { LINE6_IF_NUM(0x414D, 0), .driver_info = LINE6_PODHD500_0 }, { LINE6_IF_NUM(0x414D, 1), .driver_info = LINE6_PODHD500_1 }, { LINE6_IF_NUM(0x414A, 0), .driver_info = LINE6_PODX3 }, + { LINE6_IF_NUM(0x414B, 0), .driver_info = LINE6_PODX3LIVE }, {} }; @@ -409,6 +411,17 @@ static const struct line6_properties podhd_properties_table[] = { .ep_audio_r = 0x86, .ep_audio_w = 0x02, }, + [LINE6_PODX3LIVE] = { + .id = "PODX3LIVE", + .name = "POD X3 LIVE", + .capabilities = LINE6_CAP_CONTROL + | LINE6_CAP_PCM | LINE6_CAP_HWMON | LINE6_CAP_IN_NEEDS_OUT, + .altsetting = 1, + .ep_ctrl_r = 0x81, + .ep_ctrl_w = 0x01, + .ep_audio_r = 0x86, + .ep_audio_w = 0x02, + }, }; /*