Skip to contentSkip to conversation

ASoC: omap: rx51: Add FM transmitter support

PATCH Applied Jarkko Nikula 4 participants 5 messages Feb 21, 2011 – Feb 22, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: omap: rx51: Add FM transmitter support

Si4713 FM transmitter on Nokia RX-51/N900 is connected to same Line out signals of TLV320AIC34 than TPA6130 headphone amplifier.

This patch adds route to transmitter and "FM Transmitter" control to keep route active when needed.

---
- Liam: This goes on top of previous rx51 update (I didn't find those from your tree):
http://mailman.alsa-project.org/pipermail/alsa-devel/2011-February/036972.html
- For those who are keen to try you need following patch in order to be able to activate the FM transmitter:
http://marc.info/?l=linux-omap&m=129827572706543&w=2
Otherwise there is no any build or runtime dependency to Si4713 driver.

---
 sound/soc/omap/rx51.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
sound/soc/omap/rx51.c +4 -0
index e28f089..055e447 100644
@@ -251,6 +251,7 @@ static const struct snd_soc_dapm_widget aic34_dapm_widgets[] = {
 	SND_SOC_DAPM_MIC("DMic", NULL),
 	SND_SOC_DAPM_HP("Headphone Jack", rx51_hp_event),
 	SND_SOC_DAPM_MIC("HS Mic", NULL),
+	SND_SOC_DAPM_LINE("FM Transmitter", NULL),
 };
 
 static const struct snd_soc_dapm_widget aic34_dapm_widgetsb[] = {
@@ -262,6 +263,8 @@ static const struct snd_soc_dapm_route audio_map[] = {
 	{"Ext Spk", NULL, "HPROUT"},
 	{"Headphone Jack", NULL, "LLOUT"},
 	{"Headphone Jack", NULL, "RLOUT"},
+	{"FM Transmitter", NULL, "LLOUT"},
+	{"FM Transmitter", NULL, "RLOUT"},
 
 	{"DMic Rate 64", NULL, "Mic Bias 2V"},
 	{"Mic Bias 2V", NULL, "DMic"},
@@ -292,6 +295,7 @@ static const struct snd_kcontrol_new aic34_rx51_controls[] = {
 		     rx51_get_input, rx51_set_input),
 	SOC_ENUM_EXT("Jack Function", rx51_enum[2],
 		     rx51_get_jack, rx51_set_jack),
+	SOC_DAPM_PIN_SWITCH("FM Transmitter"),
 };
 
 static const struct snd_kcontrol_new aic34_rx51_controlsb[] = {
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#2 lore raw
In reply to Jarkko Nikula
Quoted 7 lines · ext Jarkko Nikula

Si4713 FM transmitter on Nokia RX-51/N900 is connected to same Line out signals of TLV320AIC34 than TPA6130 headphone amplifier.

This patch adds route to transmitter and "FM Transmitter" control to keep route active when needed.

...

sound/soc/omap/rx51.c static const struct snd_kcontrol_new aic34_rx51_controls[] = { · line 297

Quoted 6 lines
sound/soc/omap/rx51.c +0 -0
 	{"DMic Rate 64", NULL, "Mic Bias 2V"},
 	{"Mic Bias 2V", NULL, "DMic"},
@@ -292,6 +295,7 @@ static const struct snd_kcontrol_new aic34_rx51_controls[] = {
 		     rx51_get_input, rx51_set_input),
 	SOC_ENUM_EXT("Jack Function", rx51_enum[2],
 		     rx51_get_jack, rx51_set_jack),

Have you thought of converting the 'Jack Function' to DAPM_PIN_SWITCH as well?

sound/soc/omap/rx51.c static const struct snd_kcontrol_new aic34_rx51_controls[] = { · line 301

Quoted 4 lines
sound/soc/omap/rx51.c +1 -0
+	SOC_DAPM_PIN_SWITCH("FM Transmitter"),
 };
 
 static const struct snd_kcontrol_new aic34_rx51_controlsb[] = {
#3 lore raw
Quoted 10 lines · On Tue, 22 Feb 2011 08:59:11 +0200 Peter Ujfalusi <[email protected]>…

sound/soc/omap/rx51.c static const struct snd_kcontrol_new aic34_rx51_controls[] = { · line 297

Quoted 6 lines
sound/soc/omap/rx51.c +0 -0
 	{"DMic Rate 64", NULL, "Mic Bias 2V"},
 	{"Mic Bias 2V", NULL, "DMic"},
@@ -292,6 +295,7 @@ static const struct snd_kcontrol_new aic34_rx51_controls[] = {
 		     rx51_get_input, rx51_set_input),
 	SOC_ENUM_EXT("Jack Function", rx51_enum[2],
 		     rx51_get_jack, rx51_set_jack),

Have you thought of converting the 'Jack Function' to DAPM_PIN_SWITCH as well?

Yes, but then I realized it has multiple functions (that I implemented) :-)

Signature · 1 line
Jarkko
#4 lore raw
In reply to Jarkko Nikula
Quoted 10 lines · Jarkko Nikula

Si4713 FM transmitter on Nokia RX-51/N900 is connected to same Line out signals of TLV320AIC34 than TPA6130 headphone amplifier.

This patch adds route to transmitter and "FM Transmitter" control to keep route active when needed.

---
- Liam: This goes on top of previous rx51 update (I didn't find those from your tree):

Sorry, just been travelling and have now pushed.

Quoted 8 lines

http://mailman.alsa-project.org/pipermail/alsa-devel/2011-February/036972.html
- For those who are keen to try you need following patch in order to be able to activate the FM transmitter:
http://marc.info/?l=linux-omap&m=129827572706543&w=2
Otherwise there is no any build or runtime dependency to Si4713 driver.

---
 sound/soc/omap/rx51.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Applied.

Thanks

Liam