From patchwork Thu Jul 2 02:30:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: puyou.lu@gmail.com X-Patchwork-Id: 11654493 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5618413B1 for ; Thu, 9 Jul 2020 14:24:57 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DED63206A5 for ; Thu, 9 Jul 2020 14:24:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="erPFdOli"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mw0TvNWe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DED63206A5 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 757F71663; Thu, 9 Jul 2020 16:24:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 757F71663 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594304695; bh=xr9f/KPkeDlJaaznAQJH3wMwLcDfD0pus5EAoV8y7E8=; h=Resent-From:Resent-Date:Resent-To:From:To:Date:Subject:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=erPFdOli5jytb1uxllQUFulwNlWoieSq+21wyA91ACfZWo39dmt6vShOzkW0dUmkA cyCwk+rR1t5nN+5Ac3pPNkH7hS6K//LaME6quGIPfw1qpuk5KEKRc6Uck5O4SKE9m5 RFpr0Q3qY/cLC0ObG2eQZfMlFHknr3ZBKFllHyqU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 467D6F802A9; Thu, 9 Jul 2020 16:22:29 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 60C3BF8015A; Wed, 8 Jul 2020 12:24:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1BF4AF800AE for ; Wed, 8 Jul 2020 12:24:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1BF4AF800AE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mw0TvNWe" Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7E0BE206F6 for ; Wed, 8 Jul 2020 10:24:32 +0000 (UTC) Resent-From: Mark Brown Resent-Date: Wed, 8 Jul 2020 11:24:27 +0100 Resent-Message-ID: <20200708102427.GD4655@sirena.org.uk> Resent-To: alsa-devel@alsa-project.org Envelope-to: broonie@sirena.co.uk Delivery-date: Thu, 02 Jul 2020 03:30:52 +0100 Received: from mail.kernel.org ([198.145.29.99]) by cassiel.sirena.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqozx-0001lj-U7 for broonie@sirena.co.uk; Thu, 02 Jul 2020 03:30:52 +0100 Received: by mail.kernel.org (Postfix) id A9530207F5; Thu, 2 Jul 2020 02:30:48 +0000 (UTC) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7D9B4207D4 for ; Thu, 2 Jul 2020 02:30:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D9B4207D4 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=puyou.lu@gmail.com Received: by mail-pj1-f66.google.com with SMTP id cm21so2444317pjb.3 for ; Wed, 01 Jul 2020 19:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=4XsXXEYBxxHrQytaDfCbGD9jRcEQocnFGF0UdWQqVok=; b=mw0TvNWeIKKT92Q9lGDYXqikWvdc17VpfHHs6O/e0CM41Xg4bhGxAGIQqJ2binvoM+ VHDLuVrqzUdGctCB8h+bFjlxHy3j0XTaxi9inwl5R7bLXlKBkQRjJBRyPvtHXc3uEz3O QFgVUjzVj3+wme619MUT2EKQ/wnttXjvC71/kiIKGqpt1XvIwwTzw7cmefrdqxFyc1/u Ryf1AMlqdziv6dEdUN78WuMsA7phBfiePALOEFLPo3qnuYyt4WhQ0q/dxRmRpBTftf19 L5e49qLCzhdHUGWU5TGRpM5CHZ31msbDnFf3QhZ+3+kQK1GLXztI8BUje53DlfkGeRCr LWOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4XsXXEYBxxHrQytaDfCbGD9jRcEQocnFGF0UdWQqVok=; b=a+M6TEt7JD8aPkdvzPcpstdDCF8meSpNJnf0eI1mw/7+rcawQN87UlEnipUqk/j9Wf gyTvpRJQaBHferFKAau7CIX3JHmmqS7b8a9SfWBBZYtqM26RQuL2BwGg9qPyCj+O56IB JxLYpFjRyIaaPBmb0hhq1HHKM3VMdXXzaxsZB1xSJHdw7PdTyupqKu+NjEKVrthOCE3b DufSpd0slogzvTuXXtpkCwX24LMLeI9zBArlo4BnLJ1oGhf/Cpn1Yj9YQeDBryeHZ9/M +JdDsemTCN45Pm5tmOiL9wQtDd3Ji1pe8d3h99WMWvNK4KbgSL+rUNArMAbgovsWK5aC CQsw== X-Gm-Message-State: AOAM5313wbQRwZW33Yx8etWaCRIQMgFtn+Ri3KRGik9nQt9c+6tpqkOm OR7kRDZT5uTJgT+CbRbYXAgfw4VqAgLtxA== X-Google-Smtp-Source: ABdhPJxQVEkr5UH//Ri7y0DKd0SUtrXbUes0AD/XqEC2koxriXqi2vEjqpf3XsrQ2mFm6lxX1jE7zg== X-Received: by 2002:a17:90a:e60b:: with SMTP id j11mr31646564pjy.189.1593657047838; Wed, 01 Jul 2020 19:30:47 -0700 (PDT) Received: from localhost.localdomain ([183.14.30.148]) by smtp.gmail.com with ESMTPSA id t137sm7330632pgc.32.2020.07.01.19.30.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2020 19:30:47 -0700 (PDT) From: puyou.lu@gmail.com To: broonie@kernel.org, lgirdwood@gmail.com Date: Thu, 2 Jul 2020 10:30:25 +0800 Message-Id: <1593657025-4903-1-git-send-email-puyou.lu@gmail.com> X-Mailer: git-send-email 2.7.4 X-SA-Exim-Connect-IP: 198.145.29.99 X-SA-Exim-Mail-From: SRS0=U1ae=AN=gmail.com=puyou.lu@kernel.org Subject: [PATCH 1/2] ASoC: wm8974: fix Boost Mixer Aux Switch X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); Unknown failure X-TUID: ITp8EExr0cKZ X-Mailman-Approved-At: Thu, 09 Jul 2020 16:22:25 +0200 Cc: Puyou Lu , patches@opensource.cirrus.com, alsa-devel@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" From: Puyou Lu Clear BIT6 of INPPGA means not muted (Switch On). Signed-off-by: Puyou Lu --- sound/soc/codecs/wm8974.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index 06ba365..764bf93 100644 --- a/sound/soc/codecs/wm8974.c +++ b/sound/soc/codecs/wm8974.c @@ -186,7 +186,7 @@ SOC_DAPM_SINGLE("PCM Playback Switch", WM8974_MONOMIX, 0, 1, 0), /* Boost mixer */ static const struct snd_kcontrol_new wm8974_boost_mixer[] = { -SOC_DAPM_SINGLE("Aux Switch", WM8974_INPPGA, 6, 1, 0), +SOC_DAPM_SINGLE("Aux Switch", WM8974_INPPGA, 6, 1, 1), }; /* Input PGA */ From patchwork Thu Jul 2 02:30:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: puyou.lu@gmail.com X-Patchwork-Id: 11654495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D1C5C6C1 for ; Thu, 9 Jul 2020 14:25:31 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 665EC20720 for ; Thu, 9 Jul 2020 14:25:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="NK2NbW0S"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZWokDWUT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 665EC20720 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E10BE950; Thu, 9 Jul 2020 16:24:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E10BE950 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1594304730; bh=gazt5/3f2MKFUCTeOuDFO0DpnJgX5dxLA8KXm3qv6tU=; h=Resent-From:Resent-Date:Resent-To:From:To:Date:Subject:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=NK2NbW0Sliuxuto+mP3oJtWYewMvUxghWth6d9eHpnDRQEY5+HL+ixVyVEMY4RHW6 CIhhfAYxYSbhs/zhLxXhjYXF9A+okT8V+6I4tCsNihCtYtnDlXOYHkyuE9e9I1+WNK xgZAPAi8lVgfJJHre1XOd4yfLTleFHLfJBFPkTow= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 45876F802BE; Thu, 9 Jul 2020 16:22:30 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id A7EB2F80150; Wed, 8 Jul 2020 12:24:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 3387CF800AE for ; Wed, 8 Jul 2020 12:24:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3387CF800AE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZWokDWUT" Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF822206F6 for ; Wed, 8 Jul 2020 10:24:40 +0000 (UTC) Resent-From: Mark Brown Resent-Date: Wed, 8 Jul 2020 11:24:36 +0100 Resent-Message-ID: <20200708102436.GE4655@sirena.org.uk> Resent-To: alsa-devel@alsa-project.org Envelope-to: broonie@sirena.co.uk Delivery-date: Thu, 02 Jul 2020 03:31:22 +0100 Received: from mail.kernel.org ([198.145.29.99]) by cassiel.sirena.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqp0S-0001mB-H8 for broonie@sirena.co.uk; Thu, 02 Jul 2020 03:31:22 +0100 Received: by mail.kernel.org (Postfix) id 404C9207F5; Thu, 2 Jul 2020 02:31:19 +0000 (UTC) Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1F32D207D4 for ; Thu, 2 Jul 2020 02:31:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1F32D207D4 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=puyou.lu@gmail.com Received: by mail-pj1-f67.google.com with SMTP id cm21so2444793pjb.3 for ; Wed, 01 Jul 2020 19:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=OYf78Hvt9v41Wvb/o0d2/KRMTtLM2MKT/AkKuwhCFn8=; b=ZWokDWUTQDF/WgUGc2Bh2iiL1c8Uf9uEbbvhyz8NNukPrgFSPHzecIXMckZHMCvDe9 P9emOU8VY3+4dq22oYq4uBBJBOF1mJBLoJLGsJUlnDtDsX0sAwLGcw+zLWQxpnU164uP UHqzQJqiRMpCk7UwdKTI9MkxyR1LfqDCZHq7JhHLC3MEfZq+t7NSf4AhC6CoVcG5/XFM KYPTEyLWNZh/zdaVfhtATtqkrgKHEyA3QNeAhHG5YQiWDcYm8HUbBODkxNDDPBRsuSDY iGgAYKnDzVll7LljTOhTKFiV/iS/ctGkpfUWEEs838ZZRunNP2mO2Gnnj0EGRgo0tRCB dB4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OYf78Hvt9v41Wvb/o0d2/KRMTtLM2MKT/AkKuwhCFn8=; b=iMCLNpKvpigtLPcsoJuiXG7htwtNg1F7Ydg/E9rDh+4ti9jSJAlySKs07NWlN715cA Hwr9394O7IjJPiVfG17XD08DBkCPvpVjuSC3x+lW9J5QA8LBFnY33fmhNKVOAtMr2hMy yHpzARzdexHDENuLhokyck+U7Jypch9BeVajApBu4JQLSTzmE6Vqez4N5utdHS14d3oV lmuJWAAgi3UHf/IrMQt3aA5rsOeD4unHAKJ0COMSv1eTJaPKYdbsjTsHjAmVMmDgWTQ+ yE9Az988g21yyB8vC5yqZCgjecP+az8/PDwLRgRtWT64qVICBHAELm5eNFgtqZTrdNhp DJ9Q== X-Gm-Message-State: AOAM532PecEh8WxeufnKWnIJjV2oJyi1hlA9L8vEqSi4fFh/h1VmBPXA m60OJBYoNV3wzBLdLVYf5T+0fme5+HDGnw2+ X-Google-Smtp-Source: ABdhPJyw/5gTN22QLIYUw4jHFqu2ugCV6w5kYoxJ5zS3TasxYcLqXW/5qKQeMH2L2FMSwfiZt0MUXA== X-Received: by 2002:a17:902:c401:: with SMTP id k1mr3886206plk.202.1593657078159; Wed, 01 Jul 2020 19:31:18 -0700 (PDT) Received: from localhost.localdomain ([183.14.30.148]) by smtp.gmail.com with ESMTPSA id j13sm6299771pjz.8.2020.07.01.19.31.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2020 19:31:17 -0700 (PDT) From: puyou.lu@gmail.com To: broonie@kernel.org, lgirdwood@gmail.com Date: Thu, 2 Jul 2020 10:30:56 +0800 Message-Id: <1593657056-4989-1-git-send-email-puyou.lu@gmail.com> X-Mailer: git-send-email 2.7.4 X-SA-Exim-Connect-IP: 198.145.29.99 X-SA-Exim-Mail-From: SRS0=U1ae=AN=gmail.com=puyou.lu@kernel.org Subject: [PATCH 2/2] ASoC: wm8974: remove unsupported clock mode X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); Unknown failure X-TUID: sT/admsb1EbW X-Mailman-Approved-At: Thu, 09 Jul 2020 16:22:25 +0200 Cc: Puyou Lu , patches@opensource.cirrus.com, alsa-devel@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" From: Puyou Lu In DSP_A mode, BIT7 of IFACE should bit 0 according to datasheet (ie. inverted frame clock is not support in this mode). Signed-off-by: Puyou Lu --- sound/soc/codecs/wm8974.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index 764bf93..7cfc896 100644 --- a/sound/soc/codecs/wm8974.c +++ b/sound/soc/codecs/wm8974.c @@ -474,6 +474,10 @@ static int wm8974_set_dai_fmt(struct snd_soc_dai *codec_dai, iface |= 0x0008; break; case SND_SOC_DAIFMT_DSP_A: + if ((fmt & SND_SOC_DAIFMT_INV_MASK) == SND_SOC_DAIFMT_IB_IF || + (fmt & SND_SOC_DAIFMT_INV_MASK) == SND_SOC_DAIFMT_NB_IF) { + return -EINVAL; + } iface |= 0x00018; break; default: