diff options
| -rw-r--r-- | sound/soc/codecs/twl4030.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 0fe74d1e2c5f..6a34f562b563 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
| @@ -1102,6 +1102,16 @@ static const struct soc_enum twl4030_vibradir_enum = | |||
| 1102 | ARRAY_SIZE(twl4030_vibradir_texts), | 1102 | ARRAY_SIZE(twl4030_vibradir_texts), |
| 1103 | twl4030_vibradir_texts); | 1103 | twl4030_vibradir_texts); |
| 1104 | 1104 | ||
| 1105 | /* Digimic Left and right swapping */ | ||
| 1106 | static const char *twl4030_digimicswap_texts[] = { | ||
| 1107 | "Not swapped", "Swapped", | ||
| 1108 | }; | ||
| 1109 | |||
| 1110 | static const struct soc_enum twl4030_digimicswap_enum = | ||
| 1111 | SOC_ENUM_SINGLE(TWL4030_REG_MISC_SET_1, 0, | ||
| 1112 | ARRAY_SIZE(twl4030_digimicswap_texts), | ||
| 1113 | twl4030_digimicswap_texts); | ||
| 1114 | |||
| 1105 | static const struct snd_kcontrol_new twl4030_snd_controls[] = { | 1115 | static const struct snd_kcontrol_new twl4030_snd_controls[] = { |
| 1106 | /* Codec operation mode control */ | 1116 | /* Codec operation mode control */ |
| 1107 | SOC_ENUM_EXT("Codec Operation Mode", twl4030_op_modes_enum, | 1117 | SOC_ENUM_EXT("Codec Operation Mode", twl4030_op_modes_enum, |
| @@ -1178,6 +1188,8 @@ static const struct snd_kcontrol_new twl4030_snd_controls[] = { | |||
| 1178 | 1188 | ||
| 1179 | SOC_ENUM("Vibra H-bridge mode", twl4030_vibradirmode_enum), | 1189 | SOC_ENUM("Vibra H-bridge mode", twl4030_vibradirmode_enum), |
| 1180 | SOC_ENUM("Vibra H-bridge direction", twl4030_vibradir_enum), | 1190 | SOC_ENUM("Vibra H-bridge direction", twl4030_vibradir_enum), |
| 1191 | |||
| 1192 | SOC_ENUM("Digimic LR Swap", twl4030_digimicswap_enum), | ||
| 1181 | }; | 1193 | }; |
| 1182 | 1194 | ||
| 1183 | static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = { | 1195 | static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = { |
