From patchwork Fri Jun 16 18:14:16 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: 9792723 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 D363360326 for ; Fri, 16 Jun 2017 18:14:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEBFD2625B for ; Fri, 16 Jun 2017 18:14:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C36BD2866B; Fri, 16 Jun 2017 18:14:34 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,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 72C3A2625B for ; Fri, 16 Jun 2017 18:14:33 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 96D6B266D09; Fri, 16 Jun 2017 20:14:30 +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 B278B266D10; Fri, 16 Jun 2017 20:14:29 +0200 (CEST) Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by alsa0.perex.cz (Postfix) with ESMTP id 6EADA266CFE for ; Fri, 16 Jun 2017 20:14:26 +0200 (CEST) Received: by mail-qt0-f195.google.com with SMTP id s33so12073859qtg.3 for ; Fri, 16 Jun 2017 11:14:26 -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=e03h2KdNi1/4WGPw03Ki+0kUcmm9N02LwBxOGtKBYqA=; b=MUaEr6Q/WX+zjafyA+SAHirxBkXAV4hzcRnDaw4MyT+NgDVFHisZcAkRQyLJP8Ztgz FAcGp6bweC6wqPdfVRd5msPBkC8fmf96mSd2tEF5lyWwXYpZn4ayL4HBSf6xUgBlxBBQ Hjy6AEllcMCjJB5sKi8nCHVUYbk6J2MCMFc1GQF2ZiPkD4ALgwdHqRnAWQse883Soxff sWNEROxu8N8+9/1RFwuxGiZxU8k+hTpAO0/+CS6ARHEIq9XvgO55i1vR54ThaSZTE7Wj G9Z+Cb/5x/svkKonzPmFYuVPoJGykpUzovE2I/wUV82CXU0+rmt/WjY3hjNbg8CMZeSt kpuA== 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=e03h2KdNi1/4WGPw03Ki+0kUcmm9N02LwBxOGtKBYqA=; b=cKVibX7jlNpgrBFDp1HTew2HVAARTSrFb7T4fNb3e5zPxTARP8wKnuRYpZbKYM5XUQ QXviVns1CPbDwTSOR8Agvj4RHT97aOklcFUrmSpblrXIlRHXXNvdhAizY+/2sAmfLM6A kumeZHGB1wZ181PimAxLwxnfxf+fYWTjPy0+lF4xSheeTBLofszSZ71YwMOd+QlPI9Ly oXuQP9weyG1OBxIK1aTA6CvyiOT2UCtl4hAgFzUrBmU58rjzOd01vRHDY5GpD7snyFSV hZ1rGdLvElfcYgBngAXT4Sqfjk6vPnuxwDMN3GRrWlJOCx4ziY4qI2t55KiCFB+XPsJo AT/w== X-Gm-Message-State: AKS2vOzdd6Z6uP8eWrtEpXk7ye/x+ZwcXPrJvyDYUgCQ0VJKqG2MbvjO 0dqEFR+rc1QVtfna X-Received: by 10.200.55.148 with SMTP id d20mr13865822qtc.94.1497636865564; Fri, 16 Jun 2017 11:14:25 -0700 (PDT) Received: from localhost.localdomain (pc-182-206-241-201.cm.vtr.net. [201.241.206.182]) by smtp.googlemail.com with ESMTPSA id o3sm2083628qtb.57.2017.06.16.11.14.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Jun 2017 11:14:25 -0700 (PDT) From: =?UTF-8?q?Hans=20P=2E=20M=C3=B6ller=20Ebner?= To: alsa-devel@alsa-project.org Date: Fri, 16 Jun 2017 14:14:16 -0400 Message-Id: <1497636857-13944-1-git-send-email-hmoller@uc.cl> X-Mailer: git-send-email 2.7.4 Cc: stefanha@gmail.com, "Hans P . Moller" , dev@andree.sk, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 1/2] ALSA: line6: add support for POD HD500X 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 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c index 6ab23e5..e389f92 100644 --- a/sound/usb/line6/podhd.c +++ b/sound/usb/line6/podhd.c @@ -3,6 +3,7 @@ * * Copyright (C) 2011 Stefan Hajnoczi * Copyright (C) 2015 Andrej Krutak + * Copyright (C) 2015 Hans P. Moller * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -37,7 +38,8 @@ enum { LINE6_PODHD500_0, LINE6_PODHD500_1, LINE6_PODX3, - LINE6_PODX3LIVE + LINE6_PODX3LIVE, + LINE6_PODHD500X }; struct usb_line6_podhd { @@ -372,6 +374,7 @@ static const struct usb_device_id podhd_id_table[] = { { 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 }, + { LINE6_IF_NUM(0x4159, 0), .driver_info = LINE6_PODHD500X }, {} }; @@ -446,6 +449,18 @@ static const struct line6_properties podhd_properties_table[] = { .ep_audio_r = 0x86, .ep_audio_w = 0x02, }, + [LINE6_PODHD500X] = { + .id = "PODHD500X", + .name = "POD HD500X", + .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, + }, }; /*