alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: jassisinghbrar@gmail.com
To: alsa-devel@alsa-project.org
Cc: broonie@opensource.wolfsonmicro.com,
	Jassi Brar <jassi.brar@samsung.com>,
	ben-linux@fluff.org, lrg@slimlogic.co.uk
Subject: [PATCH] ASoC: AC97: SMDK-WM9713: Convert notes from cset to sset
Date: Fri, 29 Jan 2010 10:57:07 +0900	[thread overview]
Message-ID: <1264730227-855-1-git-send-email-jassisinghbrar@gmail.com> (raw)

From: Jassi Brar <jassi.brar@samsung.com>

It's more robust when references are provided in control names
rather than numid.

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
---
 sound/soc/s3c24xx/smdk_wm9713.c |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/sound/soc/s3c24xx/smdk_wm9713.c b/sound/soc/s3c24xx/smdk_wm9713.c
index 6fa2c9d..24fd39f 100644
--- a/sound/soc/s3c24xx/smdk_wm9713.c
+++ b/sound/soc/s3c24xx/smdk_wm9713.c
@@ -29,24 +29,15 @@ static struct snd_soc_card smdk;
 
 /*
  Playback (HeadPhone):-
-	Headphone Playback Switch - On
-	$ amixer cset numid=4 1
-
-	Right Headphone Out Mux - Headphone
-	$ amixer cset numid=92 2
-	Left Headphone Out Mux - Headphone
-	$ amixer cset numid=93 2
-
-	Right HP Mixer PCM Playback Switch - On
-	$ amixer cset numid=75 1
-	Left HP Mixer PCM Playback Switch - On
-	$ amixer cset numid=81 1
+	$ amixer sset 'Headphone' unmute
+	$ amixer sset 'Right Headphone Out Mux' 'Headphone'
+	$ amixer sset 'Left Headphone Out Mux' 'Headphone'
+	$ amixer sset 'Right HP Mixer PCM' unmute
+	$ amixer sset 'Left HP Mixer PCM' unmute
 
  Capture (LineIn):-
-	Right Capture Source - Line
-	$ amixer cset numid=86 2
-	Left Capture Source - Line
-	$ amixer cset numid=87 2
+	$ amixer sset 'Right Capture Source' 'Line'
+	$ amixer sset 'Left Capture Source' 'Line'
 */
 
 static struct snd_soc_dai_link smdk_dai = {
-- 
1.6.2.5

             reply	other threads:[~2010-01-29  2:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-29  1:57 jassisinghbrar [this message]
2010-01-29 10:58 ` [PATCH] ASoC: AC97: SMDK-WM9713: Convert notes from cset to sset Liam Girdwood
2010-01-29 14:03 ` Mark Brown

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=1264730227-855-1-git-send-email-jassisinghbrar@gmail.com \
    --to=jassisinghbrar@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=ben-linux@fluff.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=jassi.brar@samsung.com \
    --cc=lrg@slimlogic.co.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).