All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jie Yang <yang.jie@intel.com>
To: tiwai@suse.de
Cc: alsa-devel@alsa-project.org, broonie@kernel.org,
	liam.r.girdwood@intel.com
Subject: [PATCH] conf/ucm: broadwell-rt286: change to set capture volume and capture device
Date: Fri,  8 May 2015 15:18:47 +0800	[thread overview]
Message-ID: <1431069527-9336-1-git-send-email-yang.jie@intel.com> (raw)

Set 'Mic Capture Volume' in capture device EnableSequence, to fix
capture no volume by default issue.

Also add JackHWMute Value item to mute onboard dmic while headset
mic is plugged in.

Signed-off-by: Jie Yang <yang.jie@intel.com>
---
 src/conf/ucm/broadwell-rt286/HiFi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/conf/ucm/broadwell-rt286/HiFi b/src/conf/ucm/broadwell-rt286/HiFi
index 58983ea..c09a01c 100644
--- a/src/conf/ucm/broadwell-rt286/HiFi
+++ b/src/conf/ucm/broadwell-rt286/HiFi
@@ -86,6 +86,7 @@ SectionDevice."Handset" {
 	EnableSequence [
 		cdev "hw:broadwellrt286"
 
+		cset "name='Mic Capture Volume' 28"
 		cset "name='ADC 0 Mux' 0"
 		cset "name='ADC0 Capture Switch' on"
 		cset "name='ADC0 Capture Volume' 127"
@@ -99,6 +100,9 @@ SectionDevice."Handset" {
 
 	Value {
 		CaptureChannels "2"
+		JackDev "rt286-jack"
+		JackControl "Mic Jack"
+		JackHWMute "Mainmic"
 	}
 }
 
@@ -112,6 +116,7 @@ SectionDevice."Mainmic" {
 	EnableSequence [
 		cdev "hw:broadwellrt286"
 
+		cset "name='Mic Capture Volume' 30"
 		cset "name='ADC 0 Mux' 2"
 		cset "name='ADC0 Capture Switch' on"
 		cset "name='ADC0 Capture Volume' 127"
-- 
1.9.1

             reply	other threads:[~2015-05-08  7:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08  7:18 Jie Yang [this message]
2015-05-11 14:22 ` [PATCH] conf/ucm: broadwell-rt286: change to set capture volume and capture device Mark Brown
2015-05-18  8:44 ` 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=1431069527-9336-1-git-send-email-yang.jie@intel.com \
    --to=yang.jie@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=liam.r.girdwood@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.