From patchwork Fri Sep 7 03:27:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Flax X-Patchwork-Id: 10591573 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 BF178139B for ; Fri, 7 Sep 2018 03:27:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE6B62B112 for ; Fri, 7 Sep 2018 03:27:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A03CD2B124; Fri, 7 Sep 2018 03:27:49 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18F142B112 for ; Fri, 7 Sep 2018 03:27:48 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 471AF267818; Fri, 7 Sep 2018 05:27:47 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id AEDE4267819; Fri, 7 Sep 2018 05:27:45 +0200 (CEST) Received: from mx.flatmax.org (mx.flatmax.org [13.55.16.222]) by alsa0.perex.cz (Postfix) with ESMTP id 9B8B6267815 for ; Fri, 7 Sep 2018 05:27:42 +0200 (CEST) Received: from flatmax by mx.flatmax.org with local (Exim 4.89) (envelope-from ) id 1fy7Qo-0006v0-Nx; Fri, 07 Sep 2018 13:27:38 +1000 From: Matt Flax To: alsa-devel@alsa-project.org Date: Fri, 7 Sep 2018 13:27:29 +1000 Message-Id: <20180907032729.26532-1-flatmax@flatmax.org> X-Mailer: git-send-email 2.11.0 Cc: brian.austin@cirrus.com, broonie@kernel.org, ckeepax@opensource.cirrus.com, paul.handrigan@cirrus.com, Matt Flax Subject: [alsa-devel] [PATCH] ASoC: cs4265: Add a MIC pre. switch X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds a MIC preamp enable switch as a SOC_SINGLE. Signed-off-by: Matt Flax --- sound/soc/codecs/cs4265.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index d9eebf6a..03476f93 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -161,6 +161,7 @@ static const struct snd_kcontrol_new cs4265_snd_controls[] = { SOC_SINGLE("MMTLR Data Switch", CS4265_SPDIF_CTL2, 0, 1, 0), SOC_ENUM("Mono Channel Select", spdif_mono_select_enum), SND_SOC_BYTES("C Data Buffer", CS4265_C_DATA_BUFF, 24), + SOC_SINGLE("MIC Preamp", CS4265_PWRCTL, 3, 1, 1), }; static const struct snd_soc_dapm_widget cs4265_dapm_widgets[] = {