From patchwork Sun Sep 23 23:08:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Flax X-Patchwork-Id: 10611865 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 D2A6D1390 for ; Sun, 23 Sep 2018 23:08:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B72D829D2B for ; Sun, 23 Sep 2018 23:08:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA4DB29D2D; Sun, 23 Sep 2018 23:08:55 +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 CB70B29D2B for ; Sun, 23 Sep 2018 23:08:54 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 767012677F9; Mon, 24 Sep 2018 01:08:52 +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 ACDA32677FE; Mon, 24 Sep 2018 01:08:49 +0200 (CEST) Received: from mx.flatmax.org (mx.flatmax.org [13.55.16.222]) by alsa0.perex.cz (Postfix) with ESMTP id 89206267736 for ; Mon, 24 Sep 2018 01:08:45 +0200 (CEST) Received: from flatmax by mx.flatmax.org with local (Exim 4.89) (envelope-from ) id 1g4DUY-0004oo-5J; Mon, 24 Sep 2018 09:08:42 +1000 From: Matt Flax To: alsa-devel@alsa-project.org Date: Mon, 24 Sep 2018 09:08:35 +1000 Message-Id: <20180923230835.18483-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. route 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 The cs4265 driver is missing a microphone preamp enable. This patch enables/disables the microphone preamp when mic selection is made using the kcontrol. Signed-off-by: Matt Flax --- sound/soc/codecs/cs4265.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index 275677de..332d714a 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -230,6 +230,10 @@ static const struct snd_soc_dapm_route cs4265_audio_map[] = { {"DAI1 Capture", NULL, "DOUT"}, {"DAI2 Capture", NULL, "DOUT"}, + { "Pre-amp MIC", NULL, "MICL" }, + { "Pre-amp MIC", NULL, "MICR" }, + { "ADC Mux", "MIC", "Pre-amp MIC" }, + /* Loopback */ {"Loopback", "Switch", "ADC"}, {"DAC", NULL, "Loopback"},