Commit df11ce29 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: twl6040: Use consistent names for Handsfree path

Use "Handsfree XYZ" for user visible controls, while the internal DAPM
widgets can use "HF XYZ".
In this way we can group the Handsfree related controls in UI
(alsamixer for example).
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 317596a6
...@@ -1158,9 +1158,9 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = { ...@@ -1158,9 +1158,9 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = {
twl6040_power_mode_event, twl6040_power_mode_event,
SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD), SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
SND_SOC_DAPM_MUX("HF Left Playback", SND_SOC_DAPM_MUX("Handsfree Left Playback",
SND_SOC_NOPM, 0, 0, &hfl_mux_controls), SND_SOC_NOPM, 0, 0, &hfl_mux_controls),
SND_SOC_DAPM_MUX("HF Right Playback", SND_SOC_DAPM_MUX("Handsfree Right Playback",
SND_SOC_NOPM, 0, 0, &hfr_mux_controls), SND_SOC_NOPM, 0, 0, &hfr_mux_controls),
/* Analog playback Muxes */ /* Analog playback Muxes */
SND_SOC_DAPM_MUX("HS Left Playback", SND_SOC_DAPM_MUX("HS Left Playback",
...@@ -1172,11 +1172,11 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = { ...@@ -1172,11 +1172,11 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = {
&ep_path_enable_control), &ep_path_enable_control),
/* Analog playback drivers */ /* Analog playback drivers */
SND_SOC_DAPM_OUT_DRV_E("Handsfree Left Driver", SND_SOC_DAPM_OUT_DRV_E("HF Left Driver",
TWL6040_REG_HFLCTL, 4, 0, NULL, 0, TWL6040_REG_HFLCTL, 4, 0, NULL, 0,
pga_event, pga_event,
SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD), SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
SND_SOC_DAPM_OUT_DRV_E("Handsfree Right Driver", SND_SOC_DAPM_OUT_DRV_E("HF Right Driver",
TWL6040_REG_HFRCTL, 4, 0, NULL, 0, TWL6040_REG_HFRCTL, 4, 0, NULL, 0,
pga_event, pga_event,
SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD), SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
...@@ -1194,9 +1194,9 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = { ...@@ -1194,9 +1194,9 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = {
SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD), SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
/* Analog playback PGAs */ /* Analog playback PGAs */
SND_SOC_DAPM_PGA("HFDAC Left PGA", SND_SOC_DAPM_PGA("HF Left PGA",
TWL6040_REG_HFLCTL, 1, 0, NULL, 0), TWL6040_REG_HFLCTL, 1, 0, NULL, 0),
SND_SOC_DAPM_PGA("HFDAC Right PGA", SND_SOC_DAPM_PGA("HF Right PGA",
TWL6040_REG_HFRCTL, 1, 0, NULL, 0), TWL6040_REG_HFRCTL, 1, 0, NULL, 0),
}; };
...@@ -1238,20 +1238,20 @@ static const struct snd_soc_dapm_route intercon[] = { ...@@ -1238,20 +1238,20 @@ static const struct snd_soc_dapm_route intercon[] = {
{"Earphone Driver", NULL, "Earphone Playback"}, {"Earphone Driver", NULL, "Earphone Playback"},
{"EP", NULL, "Earphone Driver"}, {"EP", NULL, "Earphone Driver"},
{"HF Left Playback", "HF DAC", "HFDAC Left"}, {"Handsfree Left Playback", "HF DAC", "HFDAC Left"},
{"HF Left Playback", "Line-In amp", "AFMAmpL"}, {"Handsfree Left Playback", "Line-In amp", "AFMAmpL"},
{"HF Right Playback", "HF DAC", "HFDAC Right"}, {"Handsfree Right Playback", "HF DAC", "HFDAC Right"},
{"HF Right Playback", "Line-In amp", "AFMAmpR"}, {"Handsfree Right Playback", "Line-In amp", "AFMAmpR"},
{"HFDAC Left PGA", NULL, "HF Left Playback"}, {"HF Left PGA", NULL, "Handsfree Left Playback"},
{"HFDAC Right PGA", NULL, "HF Right Playback"}, {"HF Right PGA", NULL, "Handsfree Right Playback"},
{"Handsfree Left Driver", "Switch", "HFDAC Left PGA"}, {"HF Left Driver", NULL, "HF Left PGA"},
{"Handsfree Right Driver", "Switch", "HFDAC Right PGA"}, {"HF Right Driver", NULL, "HF Right PGA"},
{"HFL", NULL, "Handsfree Left Driver"}, {"HFL", NULL, "HF Left Driver"},
{"HFR", NULL, "Handsfree Right Driver"}, {"HFR", NULL, "HF Right Driver"},
}; };
static int twl6040_add_widgets(struct snd_soc_codec *codec) static int twl6040_add_widgets(struct snd_soc_codec *codec)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment