Skip to contentSkip to conversation

ASoC: AC97: SMDK-WM9713: Convert notes from cset to sset

PATCH Applied [email protected] 3 participants 3 messages Jan 29, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: AC97: SMDK-WM9713: Convert notes from cset to sset

From: Jassi Brar <[email protected]>

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

---
 sound/soc/s3c24xx/smdk_wm9713.c |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)
sound/soc/s3c24xx/smdk_wm9713.c +7 -16
index 6fa2c9d..24fd39f 100644
@@ -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 = {
Signature · 1 line
1.6.2.5
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · On Fri, 2010-01-29 at 10:57 +0900, [email protected] wrote:

From: Jassi Brar <[email protected]>

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

---
 sound/soc/s3c24xx/smdk_wm9713.c |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)

Btw, I have some time to finish the alsalib use case manager now, so this should further simplify your signal routing to userspace when completed.