Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230401
b: refs/heads/master
c: 23ac3b6
h: refs/heads/master
i:
  230399: 650b1a5
v: v3
  • Loading branch information
Jorge Eduardo Candelaria authored and Liam Girdwood committed Dec 9, 2010
1 parent 779a852 commit 12f251e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3ee4fe15aba7531f75be4dcc331caa8f0c6369ec
refs/heads/master: 23ac3b61331137355064d8b22a3624fe1cd8527a
11 changes: 7 additions & 4 deletions trunk/sound/soc/omap/sdp4430.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ static const struct snd_soc_dapm_widget sdp4430_twl6040_dapm_widgets[] = {
SND_SOC_DAPM_MIC("Headset Mic", NULL),
SND_SOC_DAPM_HP("Headset Stereophone", NULL),
SND_SOC_DAPM_SPK("Earphone Spk", NULL),
SND_SOC_DAPM_INPUT("Aux/FM Stereo In"),
};

static const struct snd_soc_dapm_route audio_map[] = {
Expand All @@ -123,6 +124,10 @@ static const struct snd_soc_dapm_route audio_map[] = {

/* Earphone speaker */
{"Earphone Spk", NULL, "EP"},

/* Aux/FM Stereo In: AFML, AFMR */
{"AFML", NULL, "Aux/FM Stereo In"},
{"AFMR", NULL, "Aux/FM Stereo In"},
};

static int sdp4430_twl6040_init(struct snd_soc_pcm_runtime *rtd)
Expand All @@ -149,13 +154,11 @@ static int sdp4430_twl6040_init(struct snd_soc_pcm_runtime *rtd)
/* SDP4430 connected pins */
snd_soc_dapm_enable_pin(dapm, "Ext Mic");
snd_soc_dapm_enable_pin(dapm, "Ext Spk");
snd_soc_dapm_enable_pin(dapm, "AFML");
snd_soc_dapm_enable_pin(dapm, "AFMR");
snd_soc_dapm_enable_pin(dapm, "Headset Mic");
snd_soc_dapm_enable_pin(dapm, "Headset Stereophone");

/* TWL6040 not connected pins */
snd_soc_dapm_nc_pin(dapm, "AFML");
snd_soc_dapm_nc_pin(dapm, "AFMR");

ret = snd_soc_dapm_sync(dapm);

return ret;
Expand Down

0 comments on commit 12f251e

Please sign in to comment.