ASoC: SDP4430: Add support for Earphone speaker
authorJorge Eduardo Candelaria <jorge.candelaria@ti.com>
Tue, 18 May 2010 17:44:17 +0000 (12:44 -0500)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 19 May 2010 13:07:15 +0000 (14:07 +0100)
Enable earphone speaker in sdp4430 machine driver.

Signed-off-by: Jorge Eduardo Candelaria <jorge.candelaria@ti.com>
Signed-off-by: Margarita Olaya Cabrera <magi.olaya@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/omap/sdp4430.c

index 83831ee35d07b5b0252e36bfcae1c7cdb544cc42..3a0c198661217c922d5c7d277e0ddaf3dd762fcc 100644 (file)
@@ -101,6 +101,7 @@ static const struct snd_soc_dapm_widget sdp4430_twl6040_dapm_widgets[] = {
        SND_SOC_DAPM_SPK("Ext Spk", NULL),
        SND_SOC_DAPM_MIC("Headset Mic", NULL),
        SND_SOC_DAPM_HP("Headset Stereophone", NULL),
+       SND_SOC_DAPM_SPK("Earphone Spk", NULL),
 };
 
 static const struct snd_soc_dapm_route audio_map[] = {
@@ -120,6 +121,9 @@ static const struct snd_soc_dapm_route audio_map[] = {
        /* Headset Stereophone (Headphone): HSOL, HSOR */
        {"Headset Stereophone", NULL, "HSOL"},
        {"Headset Stereophone", NULL, "HSOR"},
+
+       /* Earphone speaker */
+       {"Earphone Spk", NULL, "EP"},
 };
 
 static int sdp4430_twl6040_init(struct snd_soc_codec *codec)