All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: alsa-devel@alsa-project.org
Cc: Takashi Iwai <tiwai@suse.de>, Hans de Goede <hdegoede@redhat.com>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: [PATCH v2 04/13] conf/ucm: bytcr-rt5651: Start with all outputs and inputs disabled
Date: Wed,  8 Aug 2018 11:05:34 +0200	[thread overview]
Message-ID: <20180808090543.15181-4-hdegoede@redhat.com> (raw)
In-Reply-To: <20180808090543.15181-1-hdegoede@redhat.com>

Start with all switches disabled, so that e.g. the
LOUT L/R Playback Switches are not left enabled when starting with
headphones plugged in.

This fixes the platform clock being kept on by these in some cases.

While at also move the IN? Boost and IF1 ASRC Switch lines around
a bit to match the order from https://github.com/plbossart/UCM so
the profiles can be more easily compared.

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf b/src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf
index 27a7b5c6..d3148b3d 100644
--- a/src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf
+++ b/src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf
@@ -104,14 +104,13 @@ SectionDefaults [
 	cset "name='HPO R Playback Switch' off"
 	cset "name='HPOVOL L Switch' on"
 	cset "name='HPOVOL R Switch' on"
-	cset "name='IF1 ASRC Switch' on"
-	cset "name='IN2 Boost' 1"
-	cset "name='IN1 Boost' 1"
-	cset "name='LOUT L Playback Switch' on"
 	cset "name='LOUT MIX DAC L1 Switch' on"
 	cset "name='LOUT MIX DAC R1 Switch' on"
-	cset "name='LOUT R Playback Switch' on"
-	cset "name='OUT Playback Volume' 33"
+	cset "name='IN1 Boost' 1"
+	cset "name='IN2 Boost' 1"
+	cset "name='IF1 ASRC Switch' on"
+	cset "name='LOUT L Playback Switch' off"
+	cset "name='LOUT R Playback Switch' off"
 	cset "name='Stereo DAC MIXL DAC L1 Switch' on"
 	cset "name='Stereo DAC MIXR DAC R1 Switch' on"
 	cset "name='Stereo1 ADC MIXR ADC1 Switch' on"
@@ -141,4 +140,7 @@ SectionDefaults [
 	cset "name='RECMIXR BST3 Switch' off"
 	cset "name='RECMIXL BST2 Switch' off"
 	cset "name='RECMIXR BST2 Switch' off"
+	cset "name='Headset Mic Switch' off"
+	cset "name='Internal Mic Switch' off"
+	cset "name='Line In Switch' off"
 ]
-- 
2.18.0

  parent reply	other threads:[~2018-08-08  9:05 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-08  9:05 [PATCH v2 01/13] conf/ucm: bytcr-rt5645: Use the generic bytcr/PlatformEnableSeq.conf Hans de Goede
2018-08-08  9:05 ` [PATCH v2 02/13] conf/ucm: bytcr-rt5651: Do not use both DAC1 and HPVOL inputs for HP Hans de Goede
2018-08-08  9:05 ` [PATCH v2 03/13] conf/ucm: bytcr-rt5651: Configure all volumes at 0dB Hans de Goede
2018-08-08  9:05 ` Hans de Goede [this message]
2018-08-08  9:05 ` [PATCH v2 05/13] conf/ucm: bytcr-rt5651: Change Speaker/Headphone en/disable sequences to fix switching Hans de Goede
2018-08-08  9:05 ` [PATCH v2 06/13] conf/ucm: bytcr-rt5651: Use generic SSP enable + disable sequence, support SSP0 Hans de Goede
2018-08-08  9:05 ` [PATCH v2 07/13] conf/ucm: bytcr-rt5651: Fix ADC and Mic capture volumes Hans de Goede
2018-08-08  9:05 ` [PATCH v2 08/13] conf/ucm: bytcr-rt5651: Add support for mic input on various pins Hans de Goede
2018-08-08  9:05 ` [PATCH v2 09/13] conf/ucm: bytcr-rt5651: Split into 1 .conf file per input / output Hans de Goede
2018-08-08  9:05 ` [PATCH v2 10/13] conf/ucm: bytcr-rt5651: Add mono speaker output profile Hans de Goede
2018-08-08  9:05 ` [PATCH v2 11/13] conf/ucm: bytcr-rt5651: Add long-name UCM profiles Hans de Goede
2018-08-08  9:05 ` [PATCH v2 12/13] conf/ucm: bytcr-rt5651: Add bytcr-rt5651-mono-spk-in2-mic-hp-swapped config Hans de Goede
2018-08-08  9:05 ` [PATCH v2 13/13] conf/ucm: bytcr-rt5640: Improve human readable input/output names Hans de Goede
2018-08-08  9:46 ` [PATCH v2 01/13] conf/ucm: bytcr-rt5645: Use the generic bytcr/PlatformEnableSeq.conf Jaroslav Kysela
2018-11-25 11:11 ` youling257
2018-11-26  8:25   ` Takashi Iwai
2018-11-26  9:37     ` youling 257
2018-11-26  9:49 ` youling257
2018-11-26 10:07   ` Takashi Iwai
2018-11-26 13:40     ` Hans de Goede
2018-11-26 14:18       ` Takashi Iwai
2018-11-26 15:28         ` Jaroslav Kysela
2018-11-26 17:20           ` Pierre-Louis Bossart
2018-11-27 13:08             ` Takashi Iwai
2018-11-27 17:08               ` Pierre-Louis Bossart
2018-11-27 17:12                 ` Takashi Iwai
2018-11-28  4:35                   ` youling 257
2018-11-28  9:51                     ` Takashi Iwai
2018-11-28  2:53       ` youling 257
2018-11-28  3:04       ` youling 257
2018-11-28  3:27       ` youling 257

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180808090543.15181-4-hdegoede@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.