From patchwork Thu May 31 15:10:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 10441291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E052B602BD for ; Thu, 31 May 2018 15:11:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEDB828595 for ; Thu, 31 May 2018 15:11:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2F7A2859A; Thu, 31 May 2018 15:11:04 +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 EE24D28595 for ; Thu, 31 May 2018 15:11:03 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 148F7267946; Thu, 31 May 2018 17:10:44 +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 DDE5B267936; Thu, 31 May 2018 17:10:36 +0200 (CEST) Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by alsa0.perex.cz (Postfix) with ESMTP id 3E5FD26792D for ; Thu, 31 May 2018 17:10:32 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9E47281663C4; Thu, 31 May 2018 15:10:31 +0000 (UTC) Received: from shalem.localdomain.com (ovpn-116-177.ams2.redhat.com [10.36.116.177]) by smtp.corp.redhat.com (Postfix) with ESMTP id E74CC208C6C1; Thu, 31 May 2018 15:10:30 +0000 (UTC) From: Hans de Goede To: alsa-devel@alsa-project.org Date: Thu, 31 May 2018 17:10:24 +0200 Message-Id: <20180531151026.29521-4-hdegoede@redhat.com> In-Reply-To: <20180531151026.29521-1-hdegoede@redhat.com> References: <20180531151026.29521-1-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 31 May 2018 15:10:31 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 31 May 2018 15:10:31 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'hdegoede@redhat.com' RCPT:'' Cc: Takashi Iwai , Hans de Goede , Pierre-Louis Bossart Subject: [alsa-devel] [PATCH 3/5] conf/ucm: bytcr-rt5640: Add default DisableSequence 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 Add a disable sequence powering off the SST mixer elements, loosely based on the default DisableSequence from: https://github.com/plbossart/UCM/blob/master/chtnau8824/HiFi.conf Signed-off-by: Hans de Goede --- .../bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf | 2 ++ .../bytcr-rt5640-mono-spk-in1-mic/HiFi.conf | 2 ++ .../bytcr-rt5640-mono-spk-in3-mic/HiFi.conf | 2 ++ .../HiFi.conf | 2 ++ .../bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf | 2 ++ .../bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf | 2 ++ src/conf/ucm/bytcr-rt5640/HiFi.conf | 2 ++ src/conf/ucm/bytcr/Makefile.am | 2 +- src/conf/ucm/bytcr/PlatformDisableSeq.conf | 20 +++++++++++++++++++ 9 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/conf/ucm/bytcr/PlatformDisableSeq.conf diff --git a/src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf b/src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf index 47ca04f0..938b3592 100644 --- a/src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf +++ b/src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf @@ -11,6 +11,8 @@ SectionVerb { ] DisableSequence [ + cdev "hw:bytcrrt5640" + ] Value { diff --git a/src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf b/src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf index e280843d..f36b245e 100644 --- a/src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf +++ b/src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf @@ -11,6 +11,8 @@ SectionVerb { ] DisableSequence [ + cdev "hw:bytcrrt5640" + ] Value { diff --git a/src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf b/src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf index 511b7c98..1a08eded 100644 --- a/src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf +++ b/src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf @@ -11,6 +11,8 @@ SectionVerb { ] DisableSequence [ + cdev "hw:bytcrrt5640" + ] Value { diff --git a/src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf b/src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf index 8cf5cb7c..4587b2e1 100644 --- a/src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf +++ b/src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf @@ -11,6 +11,8 @@ SectionVerb { ] DisableSequence [ + cdev "hw:bytcrrt5640" + ] Value { diff --git a/src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf b/src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf index a617ba19..decd3960 100644 --- a/src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf +++ b/src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf @@ -11,6 +11,8 @@ SectionVerb { ] DisableSequence [ + cdev "hw:bytcrrt5640" + ] Value { diff --git a/src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf b/src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf index 83b31795..d243bf82 100644 --- a/src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf +++ b/src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf @@ -11,6 +11,8 @@ SectionVerb { ] DisableSequence [ + cdev "hw:bytcrrt5640" + ] Value { diff --git a/src/conf/ucm/bytcr-rt5640/HiFi.conf b/src/conf/ucm/bytcr-rt5640/HiFi.conf index 130671ca..c833fe74 100644 --- a/src/conf/ucm/bytcr-rt5640/HiFi.conf +++ b/src/conf/ucm/bytcr-rt5640/HiFi.conf @@ -11,6 +11,8 @@ SectionVerb { ] DisableSequence [ + cdev "hw:bytcrrt5640" + ] Value { diff --git a/src/conf/ucm/bytcr/Makefile.am b/src/conf/ucm/bytcr/Makefile.am index a0e5545e..f7a54cbd 100644 --- a/src/conf/ucm/bytcr/Makefile.am +++ b/src/conf/ucm/bytcr/Makefile.am @@ -1,4 +1,4 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ ucmdir = $(alsaconfigdir)/ucm/bytcr -ucm_DATA = PlatformEnableSeq.conf +ucm_DATA = PlatformEnableSeq.conf PlatformDisableSeq.conf EXTRA_DIST = $(ucm_DATA) diff --git a/src/conf/ucm/bytcr/PlatformDisableSeq.conf b/src/conf/ucm/bytcr/PlatformDisableSeq.conf new file mode 100644 index 00000000..9bb018bc --- /dev/null +++ b/src/conf/ucm/bytcr/PlatformDisableSeq.conf @@ -0,0 +1,20 @@ +# disable audio output path +cset "name='codec_out0 mix 0 pcm0_in Switch' off" +cset "name='modem_out mix 0 pcm0_in Switch' off" + +cset "name='media0_out mix 0 media0_in Switch' off" +cset "name='media0_out mix 0 media1_in Switch' off" +cset "name='media0_out mix 0 media3_in Switch' off" + +cset "name='media0_in Gain 0 Switch' off" +cset "name='media1_in Gain 0 Switch' off" +cset "name='media3_in Gain 0 Switch' off" + +cset "name='pcm0_in Gain 0 Switch' off" +cset "name='codec_out0 Gain 0 Switch' off" +cset "name='modem_out Gain 0 Switch' off" + +# disable audio input path +cset "name='pcm1_out Gain 0 Switch' off" +cset "name='codec_in0 Gain 0 Switch' off" +cset "name='modem_in Gain 0 Switch' off"