* [PATCH] ASoC: TWL4030: Add control for digimic Left Right swap
@ 2010-05-12 7:35 Peter Ujfalusi
2010-05-12 8:49 ` Mark Brown
2010-05-12 8:59 ` Liam Girdwood
0 siblings, 2 replies; 3+ messages in thread
From: Peter Ujfalusi @ 2010-05-12 7:35 UTC (permalink / raw)
To: alsa-devel; +Cc: broonie, lrg
The codec has support for swapping the left and right
channels in the digimic interface.
New kcontrol to handle this bit.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
---
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 0fe74d1..6a34f56 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 =
ARRAY_SIZE(twl4030_vibradir_texts),
twl4030_vibradir_texts);
+/* Digimic Left and right swapping */
+static const char *twl4030_digimicswap_texts[] = {
+ "Not swapped", "Swapped",
+};
+
+static const struct soc_enum twl4030_digimicswap_enum =
+ SOC_ENUM_SINGLE(TWL4030_REG_MISC_SET_1, 0,
+ ARRAY_SIZE(twl4030_digimicswap_texts),
+ twl4030_digimicswap_texts);
+
static const struct snd_kcontrol_new twl4030_snd_controls[] = {
/* Codec operation mode control */
SOC_ENUM_EXT("Codec Operation Mode", twl4030_op_modes_enum,
@@ -1178,6 +1188,8 @@ static const struct snd_kcontrol_new twl4030_snd_controls[] = {
SOC_ENUM("Vibra H-bridge mode", twl4030_vibradirmode_enum),
SOC_ENUM("Vibra H-bridge direction", twl4030_vibradir_enum),
+
+ SOC_ENUM("Digimic LR Swap", twl4030_digimicswap_enum),
};
static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: TWL4030: Add control for digimic Left Right swap
2010-05-12 7:35 [PATCH] ASoC: TWL4030: Add control for digimic Left Right swap Peter Ujfalusi
@ 2010-05-12 8:49 ` Mark Brown
2010-05-12 8:59 ` Liam Girdwood
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2010-05-12 8:49 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: alsa-devel, lrg
On Wed, May 12, 2010 at 10:35:36AM +0300, Peter Ujfalusi wrote:
> The codec has support for swapping the left and right
> channels in the digimic interface.
> New kcontrol to handle this bit.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: TWL4030: Add control for digimic Left Right swap
2010-05-12 7:35 [PATCH] ASoC: TWL4030: Add control for digimic Left Right swap Peter Ujfalusi
2010-05-12 8:49 ` Mark Brown
@ 2010-05-12 8:59 ` Liam Girdwood
1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2010-05-12 8:59 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: alsa-devel, broonie
On Wed, 2010-05-12 at 10:35 +0300, Peter Ujfalusi wrote:
> The codec has support for swapping the left and right
> channels in the digimic interface.
> New kcontrol to handle this bit.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
> ---
> sound/soc/codecs/twl4030.c | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
>
Applied.
Thanks
Liam
--
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-12 8:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-12 7:35 [PATCH] ASoC: TWL4030: Add control for digimic Left Right swap Peter Ujfalusi
2010-05-12 8:49 ` Mark Brown
2010-05-12 8:59 ` Liam Girdwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).