Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7281840ybp; Wed, 16 Oct 2019 06:34:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiadz37rlyqNSX1Nf9+023PSAOu/WXRe++bEj+9GnleNBbHPEzOSRBTAMLnjE0iRrdEPLw X-Received: by 2002:a05:6402:3051:: with SMTP id bu17mr38917616edb.4.1571232868802; Wed, 16 Oct 2019 06:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571232868; cv=none; d=google.com; s=arc-20160816; b=zHbWvaPFTdxD6e1WhrCekwqY7NhV0DhSUGz0h3JXwAZirJIHDf4946j1Pi4gxlGWLb hXAGgY27a/GEpDXX/SFwTJugHOUli4Oo6E2ukNp+sclgl29AKuzS2nSHr+b29Noa7bhr 9yUkxdqeb1wS69pv1YZFY3sBh+XaY1KDuf0viQnv2iXeKops7m9Qj2z7pIQj5SOUREl9 bZLEg6juip+OnlNeceSuduc4oYmrQq7luss50nreDnzcqHl7KlLQMeoZHCNxTf1kA7zb JuJGDh10ZLYpTF4gbg1ZTfJ8sBvJ8OcDXnz3olmrNjg73AtX+p8PWLtH4r4jhz8f/bZG GDCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=R3Kl7vU+Xs+Jj/i5E2pkMSosefU3DG6gA/cvZfFm/Xs=; b=O5FLVllSQQP5pDL2N2dDDn9cjFLHX8wG7i+DQto7lQbsdbkB1cqT7oMF99R6dmxtsL rXDL5KA1MucNDsJYfbSXAngt2X8M47x5VuzHaqxvYiPFLGAC56XLZKL+tePfyUW/UNsX W0w5IndXdma9lZ2ki0qW6u3XpUr/1lk8W2JY4OfMP2zwx2HRlzLgymPEPSS47qIB13+x SOrdQBfw9E2RNK8F+lSFEvFwxWSrwlaKclYizjl67y0/Bf7g62+79KsE8qzO/nA0zyjz BoFo1AHr/xQyTrXdEV/5JeLU6RxSUXsG/W+Jrrcyi/AmMIPbXFQHugVsVVJ3PoOCwPFr bFdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b="FXSR/VSc"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q35si18845663eda.122.2019.10.16.06.34.05; Wed, 16 Oct 2019 06:34:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@skidata.com header.s=selector1 header.b="FXSR/VSc"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731482AbfJPJUc (ORCPT + 99 others); Wed, 16 Oct 2019 05:20:32 -0400 Received: from mail1.skidata.com ([91.230.2.99]:19987 "EHLO mail1.skidata.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfJPJUb (ORCPT ); Wed, 16 Oct 2019 05:20:31 -0400 X-Greylist: delayed 430 seconds by postgrey-1.27 at vger.kernel.org; Wed, 16 Oct 2019 05:20:31 EDT DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=skidata.com; i=@skidata.com; q=dns/txt; s=selector1; t=1571217631; x=1602753631; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=kKIuy6KHImHHQv8CRduIvGuN6BHhgWA18/nOgMiEItI=; b=FXSR/VScbb5tNM8MrimcwM3Q7tm6rhZSNuUIRFcxht8nf7CEav/bDEZl Of1/qsSt4hsNbYOU0SCpBd0yKuyl76HxHTQZsy7cytRX/+umNoodxWQhq 5Cw4RfKvYY097TIyo7xA+8FT1eoI1PRwUCxiyfP+6zmHja5ItQsw2bjAO er6MF/wAykqrxaMVMTdYgKSHnlf756/DPYGDQrJ9atlY/cJN64+qNx+Zc 5GAXOIYwiTSl0D+dXhUgofTPZSazkkyNmEjflZgg9L/vXH56arp2o+Q9U L4qoI8wIP6yUhFC5YauyVzSxNnVfOtRnR4d2QOqnDYepH+NWqI5faPgzk A==; IronPort-SDR: qNGUlV/AfLiwMs+w8r2vA/UExC2ZaWjO5V1PGrkkN2PW4suNle81PyESJSG1SHJoEx1+Cccpmq rb+mimXGlno5cekbWkx+/zEepLdrMNkoVJAARODs5e5rB9QZV5g/cCT/2VOq7lF8OKfE1KvGwn b8TLl7EIsFA9yvU6BteH1gx99B8yElHm1LK2vmz0wbmCkG9eMWbXdjYsJTN7Mwzg7vhMHUl3xi ra/UI6lVoyvtiDB6DtLVLVimLTfeNRgzJobvrhLnunlSsBYBfTTQzK0LCwm6QG+aNpwCPG618L o+E= X-IronPort-AV: E=Sophos;i="5.67,303,1566856800"; d="scan'208";a="20289456" From: Richard Leitner To: CC: , , , , , , , Oleksandr Suvorov , Marcel Ziswiler , Igor Opaniuk , Richard Leitner Subject: [PATCH v5.3] ASoC: sgtl5000: add ADC mute control Date: Wed, 16 Oct 2019 11:13:04 +0200 Message-ID: <20191016091304.15870-1-richard.leitner@skidata.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [192.168.111.252] X-ClientProxiedBy: sdex5srv.skidata.net (192.168.111.83) To sdex5srv.skidata.net (192.168.111.83) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oleksandr Suvorov Upstream commit 631bc8f0134a ("ASoC: sgtl5000: Fix of unmute outputs on probe"), which is e9f621efaebd in v5.3 replaced snd_soc_component_write with snd_soc_component_update_bits and therefore no longer cleared the MUTE_ADC flag. This caused the ADC to stay muted and recording doesn't work any longer. This patch fixes this problem by adding a Switch control for MUTE_ADC. commit 694b14554d75 ("ASoC: sgtl5000: add ADC mute control") upstream This control mute/unmute the ADC input of SGTL5000 using its CHIP_ANA_CTRL register. Signed-off-by: Oleksandr Suvorov Reviewed-by: Marcel Ziswiler Reviewed-by: Igor Opaniuk Reviewed-by: Fabio Estevam Link: https://lore.kernel.org/r/20190719100524.23300-5-oleksandr.suvorov@toradex.com Signed-off-by: Mark Brown Signed-off-by: Richard Leitner Fixes: e9f621efaebd ("ASoC: sgtl5000: Fix of unmute outputs on probe") --- sound/soc/codecs/sgtl5000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 3f28e7862b5b..b65232521ea8 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc/codecs/sgtl5000.c @@ -720,6 +720,7 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = { SGTL5000_CHIP_ANA_ADC_CTRL, 8, 1, 0, capture_6db_attenuate), SOC_SINGLE("Capture ZC Switch", SGTL5000_CHIP_ANA_CTRL, 1, 1, 0), + SOC_SINGLE("Capture Switch", SGTL5000_CHIP_ANA_CTRL, 0, 1, 1), SOC_DOUBLE_TLV("Headphone Playback Volume", SGTL5000_CHIP_ANA_HP_CTRL, -- 2.21.0