From patchwork Wed Nov 21 05:17:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 10691953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1ECE913BF for ; Wed, 21 Nov 2018 05:19:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AEEF2B394 for ; Wed, 21 Nov 2018 05:19:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F37372B443; Wed, 21 Nov 2018 05:19:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A96562B394 for ; Wed, 21 Nov 2018 05:19:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yrsNNa5ZrupXfthEeOTTKP70VgiqLX37cC3KkLIXi0A=; b=YNi71Y7CqUEWGv tHJqBsgM809r0C+nLxxhpY5qP2zUAKKUnPVwp8eTS5aVK5K7pHHuRNnyU9x/d43GtNo6jT7aiV8x5 39BzaPBm/HVXhc3A+DIfMHvKIzF/r0HKjxSSQxZzDfigeDG2p9+EPx1J/HAZjHlO10D199hXWBWE1 80VKfltvXuHgxwpXOUAgsME2dFhpmHBNSOnlXa7ZAzNr95U7BAcEPsnvk1xDXIYmac235j5JjrnFm LuZA6oQkwQV5Wo4z4m6O1BbTODNa1RXjc2t5m02Uy5oOAjloOorGPSUWhzInyia8Rm+vFbZU00e4m g1kMpX/c1qAlbLQm6Tng==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPKvK-0004K4-7w; Wed, 21 Nov 2018 05:19:38 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPKv5-00042T-Uw for linux-arm-kernel@lists.infradead.org; Wed, 21 Nov 2018 05:19:25 +0000 Received: by mail-pl1-x642.google.com with SMTP id t13so3699802ply.13 for ; Tue, 20 Nov 2018 21:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=c5ACpoD2UZl/p5wzu0TvL3JZAh9jYTkIM1xjKhA9lyM=; b=t+YssYgTqO3VAAFO1+yK6FA0O9fsYvtOkwPxy7KrhcuVahB3NQ+8ekqyOp8S0e5y0y FwZP6dpDFyLmTf+UXy4b0qRwrEz09ApijHbrrkVDz+9KyUNBhB4wvasysPwIcafyAhJd fR6YlzMdXd/TkwEiLgvjxBjxcq/1yokki0XZLoMiWGO54Zes4PFQRpSKEJNV7YOFieFN e/fAjPR2yEhWZTxwkr8a4Mwa2UR+b97bQb04P/ERy/IM1tI46py1GMBspwLAEAdmkh+l 1mXfUqpp6Lve9IXDJ2rWjHFeCYgGFgoseUxDUpz+ymrgSAPkYG0PFiYxHHEoIvGglHpX OW/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=c5ACpoD2UZl/p5wzu0TvL3JZAh9jYTkIM1xjKhA9lyM=; b=NcYbAFSrwk8TvzQp0Wq4kOQGCpLC2k+Lu7FghGddQni3chCC58ZCb+9clYsf3PMQPc +2+KAOoz/W4mJobqU0gDWJ0b+Eq3J9RvU3crOBwhqy8W5qviNoqxeNGRULFP/2/QpKYE aMND2kyB1lUGp+Ie3qMUFu7DrAx8iTlNVkf/xs80Ed+eg1mwUmz3A9H2j8xZPLBHXTNd 7VCdQcVNnT0gXMOYf+FrXVizOHIBSJhbc8hz7tieRkdubaUau/2NNgSLrcSpC9yXh1hU 2JuxOHf9E66VAGKvcgfrpkpi4NTC2NrXJd9eokznf7RSCbObyORMueGIut0BQ0xjQ/AE nz4g== X-Gm-Message-State: AGRZ1gIDPNKTHlFc5N5lEv0IVTyRVAhkF/2RjrCvaD0AIEtjWF4QKXV3 +vM/xivkedCUBASodqaGBE0= X-Google-Smtp-Source: AJdET5fqO17nZA/emN4EsFTGvQFOg4mbNRwepdKhLiukGMbF3p4hmBNpPIdc3tYBKyn+sNTI6YahHg== X-Received: by 2002:a62:6085:: with SMTP id u127-v6mr5539821pfb.147.1542777552938; Tue, 20 Nov 2018 21:19:12 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id v70sm8293074pfa.152.2018.11.20.21.19.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 21:19:12 -0800 (PST) From: Vasily Khoruzhick To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Jaroslav Kysela , Takashi Iwai , Vasily Khoruzhick , Jerome Brunet , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 2/7] ASoC: simple-amplifier: add VCC regulator widget Date: Tue, 20 Nov 2018 21:17:47 -0800 Message-Id: <20181121051752.18387-3-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121051752.18387-1-anarsoul@gmail.com> References: <20181121051752.18387-1-anarsoul@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181120_211924_004713_FE5DA949 X-CRM114-Status: GOOD ( 11.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Amplifier may have assosicated regulator, so add a widget for it and appropriate route. Signed-off-by: Vasily Khoruzhick --- sound/soc/codecs/simple-amplifier.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/codecs/simple-amplifier.c b/sound/soc/codecs/simple-amplifier.c index 85524acf3e9c..c07e8a80b4b7 100644 --- a/sound/soc/codecs/simple-amplifier.c +++ b/sound/soc/codecs/simple-amplifier.c @@ -19,6 +19,7 @@ #include #include +#include #include #define DRV_NAME "simple-amplifier" @@ -58,11 +59,14 @@ static const struct snd_soc_dapm_widget simple_amp_dapm_widgets[] = { (SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD)), SND_SOC_DAPM_OUTPUT("OUTL"), SND_SOC_DAPM_OUTPUT("OUTR"), + SND_SOC_DAPM_REGULATOR_SUPPLY("VCC", 20, 0), }; static const struct snd_soc_dapm_route simple_amp_dapm_routes[] = { { "DRV", NULL, "INL" }, { "DRV", NULL, "INR" }, + { "OUTL", NULL, "VCC" }, + { "OUTR", NULL, "VCC" }, { "OUTL", NULL, "DRV" }, { "OUTR", NULL, "DRV" }, };