Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1171217imu; Thu, 13 Dec 2018 10:28:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/WbiwweFvb3CO11uaWoKyfaNdxL5ImJ4u2HXvUTFOJLpP8jH8RiaIbJDfmWeEedWxeZQQG2 X-Received: by 2002:a63:83c1:: with SMTP id h184mr22586231pge.437.1544725695003; Thu, 13 Dec 2018 10:28:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544725694; cv=none; d=google.com; s=arc-20160816; b=JvabaK20CqBLX04IB2jTX5OJGW3cLKQeiREEJTT5dmmGIepIsRUaifm/UbHIM45doB kVSzg0kfhnRbAhFH7LLwyDKRz3unm9gxmfwpwyCIjohxMC2+BpijMqV49FhuTbEk+59r VyDT5HF7ZpU69faLJYCUKVqrIqPPKoNFI9RA/g5YK9gBZyl59Pud7VWu+QqSTKtQsX0j qa3+sLFnBlgt+yeZ4DBAp4iCwjCLBYbuPA6Ms/rl36AU8X28iEpfZGkry70aprVitByH 1pouDjErFV9q+SFYe85zSyXbbTGL4MODEDKuOpQh1LB2O6XIf9Wl7Hm7RVCjlrgg3zMZ /bSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=kQqCsWcCkuBNLrVD5TkOHzLsbOMO0XE5sCMDGIpEz+4=; b=F2mu3K5ym++4LdVppexgVLCOPLjCMdNmoEQlX194cqv8Y+nW6bHZEqe3JBtT66r/20 Z1EDpkXg7HliZCjw31aJQOYkXa+L1FH3gSLWTas5Rn7isu4bz5j0CzdTol2WTE/iRYQc CKlJ0l9o1/e9PA1x8fyRNhjpeR+jxLL610a/GL+grYRiIslcU7qYMF8zpPpd0YjqpHTT Qxq2YnmXRPu+jzX7WZzfw94iiKT1cbrwkJICUCivDcXHy94m7a+MnQZLZWoflVe4cCrq X2fW8OQmxn0okFlTvmOiPHmTGFuTmNbC6rCc3Fqk4yyPFdTC4Nr+wW91eSOOpU4a3ypO k4Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Pjmmt8Np; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 86si2473350pfl.46.2018.12.13.10.28.00; Thu, 13 Dec 2018 10:28:14 -0800 (PST) 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=@sirena.org.uk header.s=20170815-heliosphere header.b=Pjmmt8Np; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729417AbeLMSLX (ORCPT + 99 others); Thu, 13 Dec 2018 13:11:23 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:36974 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727659AbeLMSLW (ORCPT ); Thu, 13 Dec 2018 13:11:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=kQqCsWcCkuBNLrVD5TkOHzLsbOMO0XE5sCMDGIpEz+4=; b=Pjmmt8NpVlBW lXdeFvGq7ufyB+o2NRUaOg0eaBr6k+NuWmGxBUdH1NgK45le7shBJ8swfU/ezezMxZugO0H/vgQdk 1U6POYchJGgQ2O75IbdXJaovMjnkaK0Ervsu098hpbrfymylq0KAaLZdRZ+86mZt91NIm0oT44j82 Y65ks=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gXVS4-0002Pp-Ga; Thu, 13 Dec 2018 18:11:12 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 3561611254D1; Thu, 13 Dec 2018 18:11:12 +0000 (GMT) From: Mark Brown To: Kirill Marinushkin Cc: Mark Brown , Mark Brown , alsa-devel@alsa-project.org, Liam Girdwood , linux-kernel@vger.kernel.org, Takashi Iwai , alsa-devel@alsa-project.org Subject: Applied "ASoC: pcm3060: Add powersaving widgets for DAC and ADC" to the asoc tree In-Reply-To: <20181207190234.12040-1-kmarinushkin@birdec.tech> X-Patchwork-Hint: ignore Message-Id: <20181213181112.3561611254D1@debutante.sirena.org.uk> Date: Thu, 13 Dec 2018 18:11:12 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: pcm3060: Add powersaving widgets for DAC and ADC has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From bb9963b850ea9e1ef39f4368eae83a9462f60166 Mon Sep 17 00:00:00 2001 From: Kirill Marinushkin Date: Fri, 7 Dec 2018 20:02:34 +0100 Subject: [PATCH] ASoC: pcm3060: Add powersaving widgets for DAC and ADC Enable DAC/ADC only when playing/capturing Signed-off-by: Kirill Marinushkin Signed-off-by: Mark Brown --- sound/soc/codecs/pcm3060.c | 14 ++++++++++---- sound/soc/codecs/pcm3060.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index 1dd851a7b43b..6714aa8d9026 100644 --- a/sound/soc/codecs/pcm3060.c +++ b/sound/soc/codecs/pcm3060.c @@ -198,19 +198,25 @@ static const struct snd_kcontrol_new pcm3060_dapm_controls[] = { }; static const struct snd_soc_dapm_widget pcm3060_dapm_widgets[] = { + SND_SOC_DAPM_DAC("DAC", "Playback", PCM3060_REG64, + PCM3060_REG_SHIFT_DAPSV, 1), + SND_SOC_DAPM_OUTPUT("OUTL"), SND_SOC_DAPM_OUTPUT("OUTR"), SND_SOC_DAPM_INPUT("INL"), SND_SOC_DAPM_INPUT("INR"), + + SND_SOC_DAPM_ADC("ADC", "Capture", PCM3060_REG64, + PCM3060_REG_SHIFT_ADPSV, 1), }; static const struct snd_soc_dapm_route pcm3060_dapm_map[] = { - { "OUTL", NULL, "Playback" }, - { "OUTR", NULL, "Playback" }, + { "OUTL", NULL, "DAC" }, + { "OUTR", NULL, "DAC" }, - { "Capture", NULL, "INL" }, - { "Capture", NULL, "INR" }, + { "ADC", NULL, "INL" }, + { "ADC", NULL, "INR" }, }; /* soc component */ diff --git a/sound/soc/codecs/pcm3060.h b/sound/soc/codecs/pcm3060.h index c895cf40ee10..6a027b4a845d 100644 --- a/sound/soc/codecs/pcm3060.h +++ b/sound/soc/codecs/pcm3060.h @@ -37,7 +37,9 @@ int pcm3060_remove(struct device *dev); #define PCM3060_REG_MRST 0x80 #define PCM3060_REG_SRST 0x40 #define PCM3060_REG_ADPSV 0x20 +#define PCM3060_REG_SHIFT_ADPSV 0x05 #define PCM3060_REG_DAPSV 0x10 +#define PCM3060_REG_SHIFT_DAPSV 0x04 #define PCM3060_REG_SE 0x01 #define PCM3060_REG65 0x41 -- 2.19.0.rc2