Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2649153imj; Mon, 11 Feb 2019 06:27:31 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibv+x5C7K9wuQnjPltRC7fEeHdIlcyLzZnIoYQRxEEnkgRIBZiMZRjY1RJ2I367CYi8syXo X-Received: by 2002:a65:614a:: with SMTP id o10mr6911401pgv.387.1549895251836; Mon, 11 Feb 2019 06:27:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895251; cv=none; d=google.com; s=arc-20160816; b=XXXpLkT3CT2nH+a7qWZyPFeEjaz4LpD+n8NAQeidHZm6zXHX98ssV4oOtMQquuaTVN wnMwVkHmFUg5QczZ3Fw3Ao7Zlmd/i8M4BUc1K2pOxU6GGPzvrg/B8f3oXKV4xCOjuSjf hlP0k6vzzbQETPiy/q4IxAR4Z4Kt0nwShEjwzoGEfRDvCxBZOmuDx2AxTCsooan4rBwF 104CIseUMYfgeVQiZ7ais4vroQKUiWfvtBQLFyWdGfr/+p+PD4IzK9zuya6YyUmSNveJ NCvRB0ro8bn7N21snwcsddcJOsthnBIDToTN2KG3ilcTJWhgmz8Mm1HHNV9+H9zlcKry ZkZA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cEwFOfOjQb+ALKhrq8kLhnIMLIWPl2gB6nn7SLYUYLE=; b=uY/qCsSAG/rrcg8KHUnE1QwAdtOhZrRKFDe9wTdDvfHbZCgpSy90QoNPT/XiX2ybWV BIyWM8J8kaqFnX2AZZGEVZGzJJxv3+SuNzfHFXzG4Xh2BXuBf+SC3nmhjOWN6+Ghh3MK VqK19ZRmfiONSfi8oZanGBUO9NA2fGGrlKO4rklfrbrnH8S2+mk0h46GIOdFFxiQC20v dJa3uwInyMpkEIqmMa+Dp+fwSkp0mODXAhYfGC6uGtwgEqk1YjNILlh0+4LVP4gbqSXW gjyw08BMiyjGhRe2rOSAlV+VLByIleJly60asPpwmNKzbKG7s5wFjvhUEhOcf+V2uRKd 47gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="mXjS/ac1"; 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 y1si9921817plt.356.2019.02.11.06.27.16; Mon, 11 Feb 2019 06:27:31 -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=pass header.i=@kernel.org header.s=default header.b="mXjS/ac1"; 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 S1728341AbfBKOXv (ORCPT + 99 others); Mon, 11 Feb 2019 09:23:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:56844 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727932AbfBKOXq (ORCPT ); Mon, 11 Feb 2019 09:23:46 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 BE723222A1; Mon, 11 Feb 2019 14:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895026; bh=uRUPajl/UDhS5+zK1uXjxNruKuHrapUPjTqeP7I4JeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mXjS/ac1iOlrGEeEdtTPYftA6XiTID7sTn+h/4O9K/JzKU/7a7OYY+SbOqIIlS1MB HcKryziMguFwuK1DvC67lDehKGONF6nbkJq1aj5mHpNkozcGJXv5VSqB8kUbO+xXg/ mUsiyDwz5WF5arptD1jkD0NngzRtTx4IKo7JGRQI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , Maxime Ripard , Mark Brown , Sasha Levin Subject: [PATCH 4.20 066/352] ASoC: sunxi: sun50i-codec-analog: Add support for cpvdd regulator supply Date: Mon, 11 Feb 2019 15:14:53 +0100 Message-Id: <20190211141850.315232314@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit ca0412a05756cd0b94751ca4d54fe6522f00b1f4 ] On the Allwinner A64 SoCs, the audio codec has a built-in headphone amplifier. This amplifier has a power supply separate from the rest of the analog audio circuitry, labeled cpvdd. This patch adds a DAPM widget for this supply, and ties it to the headphone amp widget. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sunxi/sun50i-codec-analog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/sunxi/sun50i-codec-analog.c b/sound/soc/sunxi/sun50i-codec-analog.c index 8f5f999df631..df1fed0aa001 100644 --- a/sound/soc/sunxi/sun50i-codec-analog.c +++ b/sound/soc/sunxi/sun50i-codec-analog.c @@ -274,6 +274,7 @@ static const struct snd_soc_dapm_widget sun50i_a64_codec_widgets[] = { * stream widgets at the card level. */ + SND_SOC_DAPM_REGULATOR_SUPPLY("hpvcc", 0, 0), SND_SOC_DAPM_MUX("Headphone Source Playback Route", SND_SOC_NOPM, 0, 0, sun50i_codec_hp_src), SND_SOC_DAPM_OUT_DRV("Headphone Amp", SUN50I_ADDA_HP_CTRL, @@ -361,6 +362,7 @@ static const struct snd_soc_dapm_route sun50i_a64_codec_routes[] = { { "Headphone Source Playback Route", "Mixer", "Left Mixer" }, { "Headphone Source Playback Route", "Mixer", "Right Mixer" }, { "Headphone Amp", NULL, "Headphone Source Playback Route" }, + { "Headphone Amp", NULL, "hpvcc" }, { "HP", NULL, "Headphone Amp" }, /* Microphone Routes */ -- 2.19.1