All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlo Caione <carlo@caione.org>
To: tiwai@suse.de, linux@endlessm.com, bardliao@realtek.com,
	oder_chiou@realtek.com, pierre-louis.bossart@linux.intel.com,
	alsa-devel@alsa-project.org
Cc: Carlo Caione <carlo@endlessm.com>
Subject: [PATCH] conf/ucm: rt5651: Mute speakers on boot
Date: Wed,  8 Nov 2017 12:33:30 +0000	[thread overview]
Message-ID: <20171108123330.12102-2-carlo@caione.org> (raw)
In-Reply-To: <20171108123330.12102-1-carlo@caione.org>

From: Carlo Caione <carlo@endlessm.com>

The UCM configuration is enabling the speakers in the SectionDefaults.
This is a problem when booting with an headset already connected since
the audio output is routed at the same time both on speakers and
heaphones until the jack is disconnected and reconnected again.

Fix this disabling all the outputs in the default mixer configuration.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
---
 src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf b/src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf
index 60798ce7..069427b7 100644
--- a/src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf
+++ b/src/conf/ucm/bytcr-rt5651/bytcr-rt5651.conf
@@ -99,11 +99,11 @@ SectionDefaults [
 
 	# default state
 	cset "name='ADC Capture Volume' 126"
-	cset "name='HP Playback Volume' 29"
-	cset "name='HPO L Playback Switch' on"
+	cset "name='HP Playback Volume' 0"
+	cset "name='HPO L Playback Switch' off"
 	cset "name='HPO MIX DAC1 Switch' on"
 	cset "name='HPO MIX HPVOL Switch' on"
-	cset "name='HPO R Playback Switch' on"
+	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"
@@ -123,6 +123,8 @@ SectionDefaults [
 	cset "name='Stereo2 ADC MIXL ADC2 Switch' on"
 	cset "name='Stereo2 ADC MIXR ADC1 Switch' on"
 	cset "name='Stereo2 ADC MIXR ADC2 Switch' on"
+	cset "name='Headphone Switch' off"
+	cset "name='Speaker Switch' off"
 
 	# input
 	cset "name='Stereo1 ADC L1 Mux' ADC"
-- 
2.14.2

  reply	other threads:[~2017-11-08 12:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-08 12:33 [PATCH] conf/ucm: rt5651: Add missing cdev Carlo Caione
2017-11-08 12:33 ` Carlo Caione [this message]
2017-11-08 14:10   ` [PATCH] conf/ucm: rt5651: Mute speakers on boot Takashi Iwai
2017-11-08 14:10 ` [PATCH] conf/ucm: rt5651: Add missing cdev Takashi Iwai

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=20171108123330.12102-2-carlo@caione.org \
    --to=carlo@caione.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=bardliao@realtek.com \
    --cc=carlo@endlessm.com \
    --cc=linux@endlessm.com \
    --cc=oder_chiou@realtek.com \
    --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.