From patchwork Wed Oct 5 15:46:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrej Krutak X-Patchwork-Id: 9363255 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 BC26E600C8 for ; Wed, 5 Oct 2016 17:12:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A513228CC1 for ; Wed, 5 Oct 2016 17:12:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9972728CCB; Wed, 5 Oct 2016 17:12:45 +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 4256B28CC2 for ; Wed, 5 Oct 2016 17:12:43 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7C8D92669C1; Wed, 5 Oct 2016 19:12:42 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 71A942668D2; Wed, 5 Oct 2016 19:10:18 +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 1D01226683C; Wed, 5 Oct 2016 17:46:21 +0200 (CEST) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by alsa0.perex.cz (Postfix) with ESMTP id B5DD0261740 for ; Wed, 5 Oct 2016 17:46:16 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id b184so25185821wma.3 for ; Wed, 05 Oct 2016 08:46:16 -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; bh=f6CaxhdN9pVjScvvZ1fkO8SFxHjb6GLYp/I6puwn0hU=; b=fkgeWnZ/+mDg3ohvNgIESz+BaOTERW4kbzLeA8Rrn6XKQ4GB2vQlExMeWcQl2aeLLY XENswRChZixN63cUvGQ62JHU6nL+zvJdZyY/3eRV5AM8GSiIgj9WzZ5yMV9ycXl2PSCP Ki010m7HJ6jtyt9wm1KkhEmLJNrgPL1zbwPwkCukrvRlxSILdy2PXjONGH6EoZLCay9H ZLZiKZrn97RKEBvtMmHkq7ImLAex4SIIEPR8S4K2jbEirXiuYunLJHCVVWhP6c3LsEjT TnAmJTiHR0OKTm2mFrwHgK9zLftAqFVv5OOcmDZZ4vEXz9ZKn4hoNq+KUcgOzDr7Dq2a 9Org== 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; bh=f6CaxhdN9pVjScvvZ1fkO8SFxHjb6GLYp/I6puwn0hU=; b=m4VRjSoTobh9IU2fLgVBA/qnOpuBk3ojuo8ozgRsWdVfHox+CoqmvYw6TJlFN26cSi K4tzYHa9H4BYtNP9MWMMo+tCpqB2xQe8x0ztpQyRST7bi8NnsyMZZuDdxVLSAD4GGMd0 k4rCHBWOO4pxQV+vk17UYNRDs1wN5lEVKqoqxyCX4/vEQhWtgIH099PL+3GvKktJU85G TWJvyyoiqnZB5yFoINDLRYJEUTE6crNP6kgQsNOHJHLrFdg8rbF0za+xz+qQ1EhuwyKz fw+bYi656CNgi8xvCfwlwd0u95MRCjTWgA6EBmiyIAHNTTx5FGnhMWXhZGx12t20xqCh FJFw== X-Gm-Message-State: AA6/9RkC9WnAL6U1yGA3tVgZ/KoU1b+lSbgKik3FlTJtT/ExnlhYmm9Rzedx+AbxJnYUrA== X-Received: by 10.28.150.211 with SMTP id y202mr22673214wmd.6.1475682376177; Wed, 05 Oct 2016 08:46:16 -0700 (PDT) Received: from localhost.localdomain ([217.30.74.231]) by smtp.gmail.com with ESMTPSA id a84sm30541402wme.6.2016.10.05.08.46.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Oct 2016 08:46:15 -0700 (PDT) From: Andrej Krutak To: tiwai@suse.com, perex@perex.cz, stefanha@gmail.com, grabner@icg.tugraz.at, alsa-devel@alsa-project.org, eddi@depieri.net Date: Wed, 5 Oct 2016 17:46:09 +0200 Message-Id: <1475682369-5084-1-git-send-email-dev@andree.sk> X-Mailer: git-send-email 1.7.10.4 Cc: Andrej Krutak Subject: [alsa-devel] [PATCH] ALSA: line6: Fix POD X3 Live audio input 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 The commit c039aaa77a7d1d9375665a8b59ec16dc7d23e259 was incomplete, missing part of the setup for Live. This makes also audio input work, in addition to audio output. Signed-off-by: Andrej Krutak Reported-by: Eddi De Pieri Fixes: c039aaa77a7d1d9375665a8b59ec16dc7d23e259 --- sound/usb/line6/podhd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c index 193eb29..ac40525 100644 --- a/sound/usb/line6/podhd.c +++ b/sound/usb/line6/podhd.c @@ -317,7 +317,8 @@ static int podhd_init(struct usb_line6 *line6, if (pod->line6.properties->capabilities & LINE6_CAP_PCM) { /* initialize PCM subsystem: */ err = line6_init_pcm(line6, - (id->driver_info == LINE6_PODX3) ? &podx3_pcm_properties : + (id->driver_info == LINE6_PODX3 || + id->driver_info == LINE6_PODX3LIVE) ? &podx3_pcm_properties : &podhd_pcm_properties); if (err < 0) return err;