From patchwork Fri Jan 8 08:57:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zidan Wang X-Patchwork-Id: 7983441 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 872B6BEEE5 for ; Fri, 8 Jan 2016 08:55:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9CDA92017E for ; Fri, 8 Jan 2016 08:55:40 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 79DD420108 for ; Fri, 8 Jan 2016 08:55:39 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 925A92659A5; Fri, 8 Jan 2016 09:55:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D885F265A6D; Fri, 8 Jan 2016 09:55:14 +0100 (CET) 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 A0D64265A7F; Fri, 8 Jan 2016 09:55:13 +0100 (CET) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bn0102.outbound.protection.outlook.com [157.56.110.102]) by alsa0.perex.cz (Postfix) with ESMTP id 8D29D2658CB for ; Fri, 8 Jan 2016 09:54:39 +0100 (CET) Received: from DM2PR03CA0034.namprd03.prod.outlook.com (10.141.96.33) by CY1PR0301MB1260.namprd03.prod.outlook.com (10.161.213.12) with Microsoft SMTP Server (TLS) id 15.1.361.13; Fri, 8 Jan 2016 08:54:36 +0000 Received: from BN1AFFO11FD041.protection.gbl (2a01:111:f400:7c10::187) by DM2PR03CA0034.outlook.office365.com (2a01:111:e400:2428::33) with Microsoft SMTP Server (TLS) id 15.1.365.19 via Frontend Transport; Fri, 8 Jan 2016 08:54:36 +0000 Authentication-Results: spf=permerror (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: PermError (protection.outlook.com: domain of freescale.com used an invalid SPF mechanism) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD041.mail.protection.outlook.com (10.58.52.252) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Fri, 8 Jan 2016 08:54:35 +0000 Received: from b50113.ap.freescale.net (b50113.ap.freescale.net [10.192.241.68]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u088sHIv025892; Fri, 8 Jan 2016 01:54:33 -0700 From: Zidan Wang To: Date: Fri, 8 Jan 2016 16:57:02 +0800 Message-ID: <89e05efb7792deb496f216ed9e086e9c10053ba8.1452243310.git.zidan.wang@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <3d52a0f560ed565ca81da1d041744e1814d7b561.1452243300.git.zidan.wang@freescale.com> References: <3d52a0f560ed565ca81da1d041744e1814d7b561.1452243300.git.zidan.wang@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD041; 1:I8bhfpgqbO9Z0dNehFxNlIgqch5EXMly/Vmz2IbJdUVJ4kGbegatfFJJn/21SEInAVuqh07zjvopVIEXKryErRbAtehxnIbh7UrzbZnNm1ysDkQXDEhd2QnWjUvAS3WEfOOFBM2d0QY9ewbkHQ2xMgO69o/zHyo963K7gUPiyUiAl2rtOEMmUsZvNvHWcKamnQYTh9lD6huoiTL3vNAEcGEWt15YmTbfPvXj/2L3x3O1c73yI9WJmnl1JFM/pqafANoFK6PYtrenUYaOae+vKSN01l0fJg41om2vjq+TGHxVjeYDXgO95iXobl4GbD2LTj5OByOMDAVae4eaavvvsT/UTAYjgptQOXxQdm78OQD0k7bORsvyBrVWrLHduA28+3sedLMLBDuIbrnk5nW3qjkrQ20aE+CbSxlGvfrSdpATgabY3o91TNcNLuugeR8V1L7hvepFz93oseIKobldPQ== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(3190300001)(189002)(199003)(107886002)(586003)(5008740100001)(1220700001)(6806005)(4001430100002)(104016004)(11100500001)(2950100001)(77096005)(1096002)(19580395003)(5003940100001)(189998001)(50226001)(47776003)(5001960100002)(19580405001)(2906002)(97736004)(110136002)(81156007)(106466001)(92566002)(36756003)(229853001)(87936001)(85326001)(4326007)(50986999)(76176999)(2351001)(33646002)(50466002)(118296001)(86362001)(48376002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1260; H:tx30smr01.am.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1260; 2:1ic8tsyA5lySa76beNCVM2Kw9PoNnsrsJO/608xkt42Zdm9xnqCAWjv2zJ6j+taJ8NXhL2pQtDX7k93mxkVucA6a6oFYHhUJRRDZT935oRoafunY3NoM5xNgRiN4B4BJwzhACjorfUp9lvYkkW7R/g==; 3:riBNtmH82CZlKXTu+twozQ+gDe0wE8Uujix7YIeenX8mJ16pNwA9Qk03r8gmiCqWtSKOKxGXLsIrk6hosnizzNIyjXhZb/aCRNe8MYAmRxpodDbmkBOmBO5RF96dr0TJHCW+IjuuT8AfsWsTeB6PDTBTe244Tq3KTV7CutqW41rbKrcuLXP7eqzlOIOm7/A3+hpCRZWBqndlSvIaXZYGIXk28zVBZr18vNFzovXRSoM=; 25:9OXT3RocUhvGBJj48bqBXiCjnJ0ZbMLUV+aCR9VEmg7wgLDF5LaCUi3rsynRCMxOCxhS4U0I+oubrRWYevsWbIo+OPr8f1jK80Xs58zwlBkn1XsUorGWX9D4k+MnbLKUPaZ+56Kf8lsKm1ukVnMu657u96wR1Be9R2zU35L+2JWlsMYtL8iZhI/+WsQQN7nGtJqOvIDkGkODqHDvXXW9xVLEenh9UgjKw77M3Qxcvfc7VYNHVwB+NLqIXuADGm1J X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1260; X-MS-Office365-Filtering-Correlation-Id: b947a53d-2816-4da0-5748-08d318095592 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1260; 20:mClOfPyP0nWn1UCP6HqFLC8OzknXh0FmvQLbP6fjnGKm65sczrQxhsIV/DCtKqgxnYaqsUSgTDd3qbXwLbAs70GNZ1hPrtUzDVM+W6PPSR6ncjSx9/ZHFrYeeBCP27Q3lr5PBwbhS6q3EKuZBwwVJkYlTWZI6oNMl0Y0lSJCN/370q4PTsWFc/P9+kErwd0Tu5cUNk21XMN8HOnegtLQlDDUnygrEqJuUOdUylwFjoywUW15XERni6I8u/LqbQ7lhFknTI8Nw4Hz7zXtdWvMVdwVoX7HGCIs0+9MDCr5v+pqFX/E2Epo0mancFduHBEFReU806fzyAxWMmL9LXS0RRq+wRSSqsj6tBP5MqCzNeMO3IPFSGi1smipZ5CabX9R3X0XnDthq1li89G08TSuG6F9dWtrqR9wMuEbDcOqMXiFFfpG/78X3sqTAcRhUaXD; 4:xvz5qWtww1+7FhiBO1uEN6ZnwkcYX17kqMl5G+PvFs6UYMQPXElkzIvYqVhUbRSgycCvgQatmS4AijvOa9fimw76udrbTxdidXWyBBKieQhg2sNSu18qa7oS5WIs5HBkwIH3qYIra+lfs6KeWLdcJaulAsyuZ9KZyi6snxWnrK2W8Nr1dciexU6u9hMV2fLhqq0f6AA/waCh4K9A3ru5yJo1p7sIOaM+4woQp/4bAAdJvISYejWmvdTUQkfGyt8qGPb4rZX78zxtIc5O0KFXudK8NpGCdtVG4hWkniaV6dDe14rYIhV4YxoyHLgRH36FtwttVlw6nCpWpI222jHvs7pi13ZlnQFu4bvuJz7fQsppq47sjsKdtpPrhQwldIfHatVCFzMPeePU5yURyJ1O1ABo16FOZJRXhAzkoOz//IaR4XnUTj2rhecMICsQzcHkkMtWxb9xKD8bILMN1aSeoQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13015025)(13017025)(520078)(5005006)(3002001)(10201501046); SRVR:CY1PR0301MB1260; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1260; X-Forefront-PRVS: 0815F8251E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1260; 23:wuq20Uyt7wkxGBdn/dwLGg9+416b4QBGPFOaqs+?= =?us-ascii?Q?tDKK5onPfek0QmQs/YuWgMRYx8pXIo9c1XxEA0Fijeg0SnLBYOE7xD2KaiTy?= =?us-ascii?Q?qFAXqqiywk4N0pJijyOwJLwdoIr1NrbCL/IMcKkD31QkYxY9ey9NpddQkllk?= =?us-ascii?Q?jHq05hi51LsmBW7YnSdgqTcbgPE1Edgwe30shqVLshLt0Htfw1Vsunng7gjs?= =?us-ascii?Q?Knd3U5DyNf2VBLu32tCuo0ghYDUsY9068L1O5i7I/QOyeJGbM0jI95jT3UYR?= =?us-ascii?Q?ucXH+sueAR2H57CJtziwKrUxExjPhdz2kF4O1+zppitGaWJ5Lke2/OKu3L3D?= =?us-ascii?Q?t6JCXMAOHUwiZ3uSlItJXMKOaZULBDQDYPKjlQ/ByYgFgUWeVVs3a3/V3Gmv?= =?us-ascii?Q?YA0ZhpSr3Zqdx7Iq70DD4VuThF7po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VyIbkuwA==; 24:klmqXu2HER4YGu91bBsWeHdk/QQE8wGp4q0k2vACmTIGO4XO64DVQ0UFBU5aog97+z7FwVyVLYYgBqi8ChqA2ZMuS00433a5Xdk6YkwS4sU= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2016 08:54:35.6926 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1260 Cc: alsa-devel@alsa-project.org, Zidan Wang , patches@opensource.wolfsonmicro.com, tiwai@suse.com, ckeepax@opensource.wolfsonmicro.com Subject: [alsa-devel] [PATCH] ASoC: wm8960: boost switch should be closed when using L/RINPUT1 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP L/RINPUT1 can line to Left/Right Boost Mixer through boost switch. If boost switch is open, there will be no voice when using L/RINPUT1. Signed-off-by: Zidan Wang Acked-by: Charles Keepax --- sound/soc/codecs/wm8960.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index 029031b..ff23772 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c @@ -413,8 +413,8 @@ static const struct snd_soc_dapm_route audio_paths[] = { { "Left Boost Mixer", "LINPUT2 Switch", "LINPUT2" }, { "Left Boost Mixer", "LINPUT3 Switch", "LINPUT3" }, - { "Left Input Mixer", "Boost Switch", "Left Boost Mixer", }, - { "Left Input Mixer", NULL, "LINPUT1", }, /* Really Boost Switch */ + { "Left Input Mixer", "Boost Switch", "Left Boost Mixer" }, + { "Left Input Mixer", "Boost Switch", "LINPUT1" }, /* Really Boost Switch */ { "Left Input Mixer", NULL, "LINPUT2" }, { "Left Input Mixer", NULL, "LINPUT3" }, @@ -422,8 +422,8 @@ static const struct snd_soc_dapm_route audio_paths[] = { { "Right Boost Mixer", "RINPUT2 Switch", "RINPUT2" }, { "Right Boost Mixer", "RINPUT3 Switch", "RINPUT3" }, - { "Right Input Mixer", "Boost Switch", "Right Boost Mixer", }, - { "Right Input Mixer", NULL, "RINPUT1", }, /* Really Boost Switch */ + { "Right Input Mixer", "Boost Switch", "Right Boost Mixer" }, + { "Right Input Mixer", "Boost Switch", "RINPUT1" }, /* Really Boost Switch */ { "Right Input Mixer", NULL, "RINPUT2" }, { "Right Input Mixer", NULL, "RINPUT3" }, @@ -431,11 +431,11 @@ static const struct snd_soc_dapm_route audio_paths[] = { { "Right ADC", NULL, "Right Input Mixer" }, { "Left Output Mixer", "LINPUT3 Switch", "LINPUT3" }, - { "Left Output Mixer", "Boost Bypass Switch", "Left Boost Mixer"} , + { "Left Output Mixer", "Boost Bypass Switch", "Left Boost Mixer" }, { "Left Output Mixer", "PCM Playback Switch", "Left DAC" }, { "Right Output Mixer", "RINPUT3 Switch", "RINPUT3" }, - { "Right Output Mixer", "Boost Bypass Switch", "Right Boost Mixer" } , + { "Right Output Mixer", "Boost Bypass Switch", "Right Boost Mixer" }, { "Right Output Mixer", "PCM Playback Switch", "Right DAC" }, { "LOUT1 PGA", NULL, "Left Output Mixer" },