Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1771645yba; Fri, 17 May 2019 05:13:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSvsXc3s0cNF/DIbulqVgieU1buMMxhudl85ylJ/ehO/TEaWMHqce/APJgyIkOGp4u8obs X-Received: by 2002:a62:4118:: with SMTP id o24mr30106315pfa.17.1558095211638; Fri, 17 May 2019 05:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558095211; cv=none; d=google.com; s=arc-20160816; b=Xs7JFClwUOwheDrC+uK98gvxnG0PMRehZznepqjaVXNk09A0l0I8xYLqYuBwOaE6ho b8p70PrSpIxlp6isyTexK0JreO2minyh31hPXPtOMCYzeyc8ApRu7NSYsuJjyaldWRXL HTjipXHy0O25Wp0opANlHEPVTN6e3g3mmr+aVlNWqAsdfs29aAzLJKtnRbZVzINz5pkA 6wdjewFm1XZExh8dZlsW36CQb/eq79KxpxCp2TQ9jIkktq16dk6qGPQLx37aQ56AIeKt PtCHAwuDuoXaYcGp/9LwAZjCxpo6YH9nuQxHZmaFxTbOiI8umdV439X2Oe90yVLJL6EB MsFg== 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=3yIQ0AOdHWQzC6rb+WwEefXqE5Fe2rpIMJ7AF7EUJtw=; b=0oWYJwcQIIBsb8EE7vFWXYYwVedwwRQncXF01A5OQTIFGsoeW4fCZSQ6OldKhkg+p8 80hEn8k2Yi3T+5QE8xM9SbCCQjYAXtyYNsshsB1/LDSOE0j3vfLjc9qlNUgW4e6uzubj nqC5SoQLONpDgz4rSC9liv9DCq46nPalwrync8ooj9i/a95VoR7rthS61N3YBDGdZWhk cCY+B4Vj4RDwTbO97MT4CFLlIedKgqcMlA+EyHsuU6AM9FN9KqPPf9wR6D1rGWyHayTo Lp/deqvLG4D801PBRJk8SetngPvv+JiIiN6R4HhrX3CWpj1Cwe+bmsZB4/Btrg0EtTY9 Y0bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=xzM81uaI; 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 a9si7956165pgw.14.2019.05.17.05.13.16; Fri, 17 May 2019 05:13:31 -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=@sirena.org.uk header.s=20170815-heliosphere header.b=xzM81uaI; 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 S1728694AbfEQKfU (ORCPT + 99 others); Fri, 17 May 2019 06:35:20 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:44356 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfEQKfU (ORCPT ); Fri, 17 May 2019 06:35:20 -0400 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=3yIQ0AOdHWQzC6rb+WwEefXqE5Fe2rpIMJ7AF7EUJtw=; b=xzM81uaIt0Li BcSEi6QrUIpncpFHkiGp6XrwzooGpWZW+3wtdbV/+Kc6ViPDNMiO93nn+obBkuP5J/X6I3YOhsCx8 E6hxSA2B4Pfxbiy5/QkNZQCq6CyeCCZTjY0xT9ogofS5EwFg6L3y/d91nCwiwchk3vjaRSZ0DW0B1 OXddA=; 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 1hRaCI-0001gY-F7; Fri, 17 May 2019 10:34:42 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id D58891126D64; Fri, 17 May 2019 11:34:38 +0100 (BST) From: Mark Brown To: Saravanan Sekar Cc: alsa-devel@alsa-project.org, broonie@kernel.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Mark Brown , perex@perex.cz, sravanhome@gmail.com, tiwai@suse.com Subject: Applied "ASoC: tlv320aic3x: Add support for high power analog output" to the asoc tree In-Reply-To: <20190511151149.28823-1-sravanhome@gmail.com> X-Patchwork-Hint: ignore Message-Id: <20190517103438.D58891126D64@debutante.sirena.org.uk> Date: Fri, 17 May 2019 11:34:38 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: tlv320aic3x: Add support for high power analog output 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 bfa8130f50a63563eae10ef933fe01b50b3e87a0 Mon Sep 17 00:00:00 2001 From: Saravanan Sekar Date: Sat, 11 May 2019 17:11:49 +0200 Subject: [PATCH] ASoC: tlv320aic3x: Add support for high power analog output Add support to output level control for the analog high power output drivers HPOUT and HPCOM. Signed-off-by: Saravanan Sekar Signed-off-by: Mark Brown --- sound/soc/codecs/tlv320aic3x.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c index 516d17cb2182..599e4ed3850b 100644 --- a/sound/soc/codecs/tlv320aic3x.c +++ b/sound/soc/codecs/tlv320aic3x.c @@ -324,6 +324,9 @@ static DECLARE_TLV_DB_SCALE(adc_tlv, 0, 50, 0); */ static DECLARE_TLV_DB_SCALE(output_stage_tlv, -5900, 50, 1); +/* Output volumes. From 0 to 9 dB in 1 dB steps */ +static const DECLARE_TLV_DB_SCALE(out_tlv, 0, 100, 0); + static const struct snd_kcontrol_new aic3x_snd_controls[] = { /* Output */ SOC_DOUBLE_R_TLV("PCM Playback Volume", @@ -386,11 +389,17 @@ static const struct snd_kcontrol_new aic3x_snd_controls[] = { DACL1_2_HPLCOM_VOL, DACR1_2_HPRCOM_VOL, 0, 118, 1, output_stage_tlv), - /* Output pin mute controls */ + /* Output pin controls */ + SOC_DOUBLE_R_TLV("Line Playback Volume", LLOPM_CTRL, RLOPM_CTRL, 4, + 9, 0, out_tlv), SOC_DOUBLE_R("Line Playback Switch", LLOPM_CTRL, RLOPM_CTRL, 3, 0x01, 0), + SOC_DOUBLE_R_TLV("HP Playback Volume", HPLOUT_CTRL, HPROUT_CTRL, 4, + 9, 0, out_tlv), SOC_DOUBLE_R("HP Playback Switch", HPLOUT_CTRL, HPROUT_CTRL, 3, 0x01, 0), + SOC_DOUBLE_R_TLV("HPCOM Playback Volume", HPLCOM_CTRL, HPRCOM_CTRL, + 4, 9, 0, out_tlv), SOC_DOUBLE_R("HPCOM Playback Switch", HPLCOM_CTRL, HPRCOM_CTRL, 3, 0x01, 0), @@ -472,6 +481,9 @@ static const struct snd_kcontrol_new aic3x_mono_controls[] = { 0, 118, 1, output_stage_tlv), SOC_SINGLE("Mono Playback Switch", MONOLOPM_CTRL, 3, 0x01, 0), + SOC_SINGLE_TLV("Mono Playback Volume", MONOLOPM_CTRL, 4, 9, 0, + out_tlv), + }; /* -- 2.20.1