Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5966172imu; Wed, 30 Jan 2019 06:37:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4hIr65PPiWThdew1XEoFINmJQ8/toZxnHWftuMWVpysT4CnodHsi4NHpUBUYiR1TGkA0u6 X-Received: by 2002:a17:902:9691:: with SMTP id n17mr31488059plp.9.1548859054874; Wed, 30 Jan 2019 06:37:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548859054; cv=none; d=google.com; s=arc-20160816; b=qNdQOnSosDDTupa6NYOpCVJ6dLuDypP1FQ6KQrDw+T3U/yzkd33FbAONeeMrizh9XI 0Kfsr2jXUDJ0NKdMuMf4FB6eGpoNXMtS9AB7qv3jsjvzD4eE8GG0mcriYDY4RxzG22xy z6fy5T6MXw/jJ0J83ED+PlSNUchHJtLpApKLYbg45e73firhHXDreXGUvzBFmt6fGfHN YkS09y4t7wfTS/LbAKuz1zVo/sCKP43EiZVz7xXkEfZsGFLshsTwekTSTrSJqYLDndon 2kwkQx0QELGTMF4AcA4QwA/AufMtonlBs3sXjMg1V+v+EAjcvrl8NYGAKdJvOD5OKV+q dp2g== 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:tags :mime-version:references:in-reply-to:message-id:date:subject:to:from; bh=xzWSejx5jamds/3XDx+b7Nidv/xGPpPeVGnaO800evA=; b=SRsWwz5UfZbHzjPXN4pRISD896KmXLnVS5wDikld5mzvU9sO2mE037g7bsyhN5mhuJ +AsQI3AfYfX3BErfXQh5jZL9YPVZ3iiL33eEpcySkP5tikJwh36jFOAwWziSClQ7j44z jkc5HS4S7CctUMkWnGZo5NoDst5y+WJIpJTUgc+mnZR8oAyZuD2ApRXM4McYOFlL411R rR5Y/JWgO3xhLgSYEPurVk3a+xGMkV+cyq57wgIQwdDb0idaOlAJHka5nTikMDu/q6hh 80T4xtvCxEN0EcS7+OUkT952wwRUMrAiIpg2I1J+EDqjyZQirVCo97gV1MvEwuq4iYXH vj3w== ARC-Authentication-Results: i=1; mx.google.com; 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 e6si1562223pgl.471.2019.01.30.06.37.19; Wed, 30 Jan 2019 06:37:34 -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; 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 S1731467AbfA3OgT (ORCPT + 99 others); Wed, 30 Jan 2019 09:36:19 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:49006 "EHLO dd26836.kasserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731323AbfA3Ofz (ORCPT ); Wed, 30 Jan 2019 09:35:55 -0500 Received: from dayas.3.home (77.116.173.211.wireless.dyn.drei.com [77.116.173.211]) by dd26836.kasserver.com (Postfix) with ESMTPSA id AFE393362C1F; Wed, 30 Jan 2019 15:26:03 +0100 (CET) From: Danny Milosavljevic To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Maxime Ripard , Chen-Yu Tsai , Danny Milosavljevic , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v15 2/8] ASoC: sun4i-codec: Add Mic Playback Volume Date: Wed, 30 Jan 2019 11:39:38 +0100 Message-Id: <20190130103945.26692-3-dannym@scratchpost.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190130103945.26692-1-dannym@scratchpost.org> References: <20190130103945.26692-1-dannym@scratchpost.org> MIME-Version: 1.0 Tags: patch Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a control "Mic Playback Volume" that allows the user to control the MIC gain stage (common for Mic1 and Mic2) leading to the output mixer. Signed-off-by: Danny Milosavljevic --- sound/soc/sunxi/sun4i-codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 7b965bc50..060a40b45 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -681,6 +681,9 @@ static const struct snd_kcontrol_new sun4i_codec_controls[] = { SOC_SINGLE_TLV("Power Amplifier Volume", SUN4I_CODEC_DAC_ACTL, SUN4I_CODEC_DAC_ACTL_PA_VOL, 0x3F, 0, sun4i_codec_pa_volume_scale), + SOC_SINGLE_TLV("Mic Playback Volume", SUN4I_CODEC_DAC_ACTL, + SUN4I_CODEC_DAC_ACTL_MICG, 7, 0, + sun4i_codec_micin_loopback_gain_scale), }; static const struct snd_kcontrol_new sun4i_codec_left_mixer_controls[] = {