aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sn95031.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2011-02-15 07:58:51 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-15 20:58:26 -0500
commit1461d0630ef74073e308a79834ba09e1bd2df08e (patch)
treed1ae49301c5cd303cd5fefce95a39d80ae0aa053 /sound/soc/codecs/sn95031.c
parentf98dedcefdbcbe8d51e77d911583ecc2c2668174 (diff)
ASoC: sn95031: make playback rails depend on actual pins they control
This patch makes the codec playback rails (headset and speaker) depend on actual pins they control. This enables better power management of the codec Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Harsha Priya <priya.harsha@intel.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/sn95031.c')
-rw-r--r--sound/soc/codecs/sn95031.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c
index d0b78020671..9c3db0d7b75 100644
--- a/sound/soc/codecs/sn95031.c
+++ b/sound/soc/codecs/sn95031.c
@@ -519,6 +519,8 @@ static const struct snd_soc_dapm_widget sn95031_dapm_widgets[] = {
519 519
520static const struct snd_soc_dapm_route sn95031_audio_map[] = { 520static const struct snd_soc_dapm_route sn95031_audio_map[] = {
521 /* headset and earpiece map */ 521 /* headset and earpiece map */
522 { "HPOUTL", NULL, "Headset Rail"},
523 { "HPOUTR", NULL, "Headset Rail"},
522 { "HPOUTL", NULL, "Headset Left Playback" }, 524 { "HPOUTL", NULL, "Headset Left Playback" },
523 { "HPOUTR", NULL, "Headset Right Playback" }, 525 { "HPOUTR", NULL, "Headset Right Playback" },
524 { "EPOUT", NULL, "Earpiece Playback" }, 526 { "EPOUT", NULL, "Earpiece Playback" },
@@ -527,18 +529,16 @@ static const struct snd_soc_dapm_route sn95031_audio_map[] = {
527 { "Earpiece Playback", NULL, "Headset Left Filter"}, 529 { "Earpiece Playback", NULL, "Headset Left Filter"},
528 { "Headset Left Filter", NULL, "HSDAC Left"}, 530 { "Headset Left Filter", NULL, "HSDAC Left"},
529 { "Headset Right Filter", NULL, "HSDAC Right"}, 531 { "Headset Right Filter", NULL, "HSDAC Right"},
530 { "HSDAC Left", NULL, "Headset Rail"},
531 { "HSDAC Right", NULL, "Headset Rail"},
532 532
533 /* speaker map */ 533 /* speaker map */
534 { "IHFOUTL", NULL, "Speaker Rail"},
535 { "IHFOUTR", NULL, "Speaker Rail"},
534 { "IHFOUTL", "NULL", "Speaker Left Playback"}, 536 { "IHFOUTL", "NULL", "Speaker Left Playback"},
535 { "IHFOUTR", "NULL", "Speaker Right Playback"}, 537 { "IHFOUTR", "NULL", "Speaker Right Playback"},
536 { "Speaker Left Playback", NULL, "Speaker Left Filter"}, 538 { "Speaker Left Playback", NULL, "Speaker Left Filter"},
537 { "Speaker Right Playback", NULL, "Speaker Right Filter"}, 539 { "Speaker Right Playback", NULL, "Speaker Right Filter"},
538 { "Speaker Left Filter", NULL, "IHFDAC Left"}, 540 { "Speaker Left Filter", NULL, "IHFDAC Left"},
539 { "Speaker Right Filter", NULL, "IHFDAC Right"}, 541 { "Speaker Right Filter", NULL, "IHFDAC Right"},
540 { "IHFDAC Left", NULL, "Speaker Rail"},
541 { "IHFDAC Right", NULL, "Speaker Rail"},
542 542
543 /* vibra map */ 543 /* vibra map */
544 { "VIB1OUT", NULL, "Vibra1 Playback"}, 544 { "VIB1OUT", NULL, "Vibra1 Playback"},