From patchwork Tue Sep 19 15:45:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans P Moller X-Patchwork-Id: 9963463 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 A4016601D5 for ; Thu, 21 Sep 2017 08:21:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9291B29354 for ; Thu, 21 Sep 2017 08:21:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 875302936C; Thu, 21 Sep 2017 08:21:13 +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=-0.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, RDNS_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (unknown [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A4B529354 for ; Thu, 21 Sep 2017 08:21:12 +0000 (UTC) Received: from alsa.alsa-project.org (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9922A2671F3; Thu, 21 Sep 2017 10:20:15 +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 1EC4626737E; Tue, 19 Sep 2017 17:45:52 +0200 (CEST) Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by alsa0.perex.cz (Postfix) with ESMTP id 4626E266819 for ; Tue, 19 Sep 2017 17:45:48 +0200 (CEST) Received: by mail-qt0-f194.google.com with SMTP id q8so21007qtb.1 for ; Tue, 19 Sep 2017 08:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=bifpipEwUs+5bHQXEchel036KYCqFb9lIzYKA9FsiS4=; b=RCEOn9sx9ZopcR1S77fj3GqVVBEulB4plhcI8kKvCJbYYs0074edrfs+rEv7oP2Pg3 9LHUrs1nq3u6Xeq0o9wSSifSnXGUUm22EShOVIjO1f3/9oZXOkHs/1fWnyXdjP3wjzuY n+rdZ/Fw8QpX/m/dt76VdrnbMl+oh+esgM9SAceZv0HIfmrKQow/Ytaz1klMcPNX0mY3 rRHeN5lzeoJ0+g17Gt3Uxml1tT0nZfp7+rP82+ZVld7sCElluXRZw+x2mJdsHpp/vkj+ +kUPA0JOjVyqnfXRL5RWx4Tqe4+OKZ6ip2VXCJUKMto1qkN36lueImjZOIidc2qU9ZaZ 9W2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=bifpipEwUs+5bHQXEchel036KYCqFb9lIzYKA9FsiS4=; b=ZlM6OTfx0PFhJXcov3GaxyDWWrypA5qO40jjeylvT45wXx8bmxCIPKcUCrXvNGuwOt 5brCl6HZj6YTR57IuShkhFmvCTkgP69W1aIvp767ey1lL+l3fKjLjHuiLAlQExKV1oZr lkY7PS02Q+rBG3l6nqnfeuXGEUDLq5xSoRLu/rFL/8XwIuMoZD6fUIHntFZHs1yRW76r +RH2+lXAqx7lFx86738fPbKKCjCCz5tZRFc9KaXQoJWZEkozpJs9/qTG0vNV4cI4ySPy EfqFUmOW0LwbAAUeG93Ym/eTujXy9bTk8ubAiXH7GRvZeIl9N4AzzaZTODbWhrUBz8pI 07cQ== X-Gm-Message-State: AHPjjUiLYfWWL6Dd48CbKAo8N7Po7ugSx9rMBLr+148HRIecVyPemRqA kdbmN9lFBaEcUGLnp089OL8= X-Google-Smtp-Source: AOwi7QAJWYa4ylvnDau07E3W6EYSSGvpIw4ieDGycGBoHGzIHajXHciutPgKTVqC09OECsaRQsW2ZQ== X-Received: by 10.200.52.232 with SMTP id x37mr2740424qtb.85.1505835946563; Tue, 19 Sep 2017 08:45:46 -0700 (PDT) Received: from localhost.localdomain (pc-115-176-83-200.cm.vtr.net. [200.83.176.115]) by smtp.gmail.com with ESMTPSA id h58sm7056610qta.82.2017.09.19.08.45.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Sep 2017 08:45:45 -0700 (PDT) From: =?UTF-8?q?Hans=20P=2E=20M=C3=B6ller=20Ebner?= To: perex@perex.cz, tiwai@suse.com Date: Tue, 19 Sep 2017 12:45:34 -0300 Message-Id: <1505835934-3226-1-git-send-email-hmoller@uc.cl> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Thu, 21 Sep 2017 10:19:53 +0200 Cc: alsa-devel@alsa-project.org, dev@andree.sk, linux-kernel@vger.kernel.org, "Hans P . Moller" Subject: [alsa-devel] [PATCH] ALSA: line6: add support for POD HD DESKTOP 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 Add support for the Line6 POD HD500X multi effect processor for playback and capture (in/out audio) through USB. Signed-off-by: Hans P. Moller --- sound/usb/line6/podhd.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c index 956f847..ba4f71f 100644 --- a/sound/usb/line6/podhd.c +++ b/sound/usb/line6/podhd.c @@ -39,7 +39,8 @@ enum { LINE6_PODHD500_1, LINE6_PODX3, LINE6_PODX3LIVE, - LINE6_PODHD500X + LINE6_PODHD500X, + LINE6_PODHDDESKTOP }; struct usb_line6_podhd { @@ -377,6 +378,7 @@ static const struct usb_device_id podhd_id_table[] = { { LINE6_IF_NUM(0x414A, 0), .driver_info = LINE6_PODX3 }, { LINE6_IF_NUM(0x414B, 0), .driver_info = LINE6_PODX3LIVE }, { LINE6_IF_NUM(0x4159, 0), .driver_info = LINE6_PODHD500X }, + { LINE6_IF_NUM(0x4156, 0), .driver_info = LINE6_PODHDDESKTOP }, {} }; @@ -463,6 +465,18 @@ static const struct line6_properties podhd_properties_table[] = { .ep_audio_r = 0x86, .ep_audio_w = 0x02, }, + [LINE6_PODHDDESKTOP] = { + .id = "PODHDDESKTOP", + .name = "POD HDDESKTOP", + .capabilities = LINE6_CAP_CONTROL + | LINE6_CAP_PCM | LINE6_CAP_HWMON, + .altsetting = 1, + .ep_ctrl_r = 0x81, + .ep_ctrl_w = 0x01, + .ctrl_if = 1, + .ep_audio_r = 0x86, + .ep_audio_w = 0x02, + }, }; /*