* TWL4030 Line In/Out Loopback issue
@ 2011-08-08 0:27 Almohanad Fayez
2011-08-08 8:56 ` Péter Ujfalusi
0 siblings, 1 reply; 5+ messages in thread
From: Almohanad Fayez @ 2011-08-08 0:27 UTC (permalink / raw)
To: alsa-devel
I'verealized that there is a loopback dependency between the audioinput/output dependency with the 2.6.38 kernel running on a gumstix overo and also using the 2.6.35 kernel running on the Beaglenboard.
You can replicate this issue by plugging some music into the Line injack and then fire up alsamixer. Then you would need to modify theDAC2 Dig level, the one on the right no the left. As you lower thevolume you'll hear your music input decreasing and as you increase itthe music level would increase. If you lower it enough you can captureaudio from the input jack without hearing it out of your speaker butthe bad thing is that also controls your speaker output so if you tryto play some sound out of gumstix/beagleboard you won't be able to do because youneed to increase your DAC2 Dig level in alsamixer ... it's a catch22!! I couldn't find any solutions readily.
I am running a console-only Angstrom image on both boards. I've used the Beagleboard's line in/out capabilities with no issues using the 2.6.29 kernel in the past so is there an update in the TWL4030 ALSA driver that I should take into account? thanks
al fayez
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TWL4030 Line In/Out Loopback issue
2011-08-08 0:27 TWL4030 Line In/Out Loopback issue Almohanad Fayez
@ 2011-08-08 8:56 ` Péter Ujfalusi
2011-08-08 15:01 ` Almohanad Fayez
0 siblings, 1 reply; 5+ messages in thread
From: Péter Ujfalusi @ 2011-08-08 8:56 UTC (permalink / raw)
To: alsa-devel; +Cc: Almohanad Fayez
Hi,
On Monday 08 August 2011 02:27:45 Almohanad Fayez wrote:
> I'verealized that there is a loopback dependency between the
> audioinput/output dependency with the 2.6.38 kernel running on a gumstix
> overo and also using the 2.6.35 kernel running on the Beaglenboard.
I can not recall seeing such an issue.
> You can replicate this issue by plugging some music into the Line injack and
> then fire up alsamixer. Then you would need to modify theDAC2 Dig level,
> the one on the right no the left. As you lower thevolume you'll hear your
> music input decreasing and as you increase itthe music level would
> increase. If you lower it enough you can captureaudio from the input jack
> without hearing it out of your speaker butthe bad thing is that also
> controls your speaker output so if you tryto play some sound out of
> gumstix/beagleboard you won't be able to do because youneed to increase
> your DAC2 Dig level in alsamixer ... it's a catch22!! I couldn't find any
> solutions readily.
Have you checked the state of the Left/Right Digital Loopback? Is it set to 0?
> I am running a console-only Angstrom image on both boards. I've used the
> Beagleboard's line in/out capabilities with no issues using the 2.6.29
> kernel in the past so is there an update in the TWL4030 ALSA driver that I
> should take into account? thanks
Could you post the content of the
/sys/devices/platform/soc-audio/wl4030-codec/dapm_widget
file to see what's going on?
--
Péter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TWL4030 Line In/Out Loopback issue
2011-08-08 8:56 ` Péter Ujfalusi
@ 2011-08-08 15:01 ` Almohanad Fayez
2011-08-09 6:40 ` Péter Ujfalusi
0 siblings, 1 reply; 5+ messages in thread
From: Almohanad Fayez @ 2011-08-08 15:01 UTC (permalink / raw)
To: peter.ujfalusi, alsa-devel
Péter,
I can't seem to find a Left/Right Digital Loopback the mention of a loop I found is an FM Loop Enable. The following is the dapm_widget enable output from my Gumstix Overo running the 2.6.38 Kernel. Thanks for your help.
al fayez
root@usrp-e1xx:~# cat /sys/devices/platform/soc-audio/TWL4030/dapm_widget
Headset Mic Bias: Off
Mic Bias 2: Off
Mic Bias 1: Off
micbias2 select: Off
micbias1 select: Off
Digimic1 Enable: Off
Digimic0 Enable: Off
ADC Physical Right: On
ADC Physical Left: On
Analog Right: On
Analog Left: On
ADC Virtual Right2: Off
ADC Virtual Left2: Off
ADC Virtual Right1: Off
ADC Virtual Left1: Off
HandsfreeR PGA: Off
HandsfreeL PGA: Off
CarkitR PGA: Off
CarkitR Mixer: Off
CarkitL PGA: Off
CarkitL Mixer: Off
HeadsetR PGA: On
HeadsetR Mixer: On
HeadsetL PGA: On
HeadsetL Mixer: On
PredriveR PGA: Off
PredriveR Mixer: Off
PredriveL PGA: Off
PredriveL Mixer: Off
Earpiece PGA: Off
Earpiece Mixer: Off
AIF Enable: On
APLL Enable: Off
Analog Voice Playback Mixer: Off
Analog L2 Playback Mixer: On
Analog R2 Playback Mixer: On
Analog L1 Playback Mixer: Off
Analog R1 Playback Mixer: Off
Digital Voice Playback Mixer: Off
Digital L2 Playback Mixer: On
Digital R2 Playback Mixer: On
Digital L1 Playback Mixer: Off
Digital R1 Playback Mixer: Off
FM Loop Enable: Off
DAC Voice: Off
DAC Left2: Off
DAC Right2: Off
DAC Left1: Off
DAC Right1: Off
PM State: On
-----Original Message-----
From: Péter Ujfalusi <peter.ujfalusi@ti.com>
To: alsa-devel <alsa-devel@alsa-project.org>
Cc: Almohanad Fayez <alfayez@aol.com>
Sent: Mon, Aug 8, 2011 4:56 am
Subject: Re: [alsa-devel] TWL4030 Line In/Out Loopback issue
Hi,
On Monday 08 August 2011 02:27:45 Almohanad Fayez wrote:
> I'verealized that there is a loopback dependency between the
> audioinput/output dependency with the 2.6.38 kernel running on a gumstix
> overo and also using the 2.6.35 kernel running on the Beaglenboard.
I can not recall seeing such an issue.
> You can replicate this issue by plugging some music into the Line injack and
> then fire up alsamixer. Then you would need to modify theDAC2 Dig level,
> the one on the right no the left. As you lower thevolume you'll hear your
> music input decreasing and as you increase itthe music level would
> increase. If you lower it enough you can captureaudio from the input jack
> without hearing it out of your speaker butthe bad thing is that also
> controls your speaker output so if you tryto play some sound out of
> gumstix/beagleboard you won't be able to do because youneed to increase
> your DAC2 Dig level in alsamixer ... it's a catch22!! I couldn't find any
> solutions readily.
Have you checked the state of the Left/Right Digital Loopback? Is it set to 0?
> I am running a console-only Angstrom image on both boards. I've used the
> Beagleboard's line in/out capabilities with no issues using the 2.6.29
> kernel in the past so is there an update in the TWL4030 ALSA driver that I
> should take into account? thanks
Could you post the content of the
/sys/devices/platform/soc-audio/wl4030-codec/dapm_widget
file to see what's going on?
--
Péter
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TWL4030 Line In/Out Loopback issue
2011-08-08 15:01 ` Almohanad Fayez
@ 2011-08-09 6:40 ` Péter Ujfalusi
2011-08-09 16:12 ` Almohanad Fayez
0 siblings, 1 reply; 5+ messages in thread
From: Péter Ujfalusi @ 2011-08-09 6:40 UTC (permalink / raw)
To: Almohanad Fayez; +Cc: alsa-devel@alsa-project.org
On Monday 08 August 2011 17:01:11 Almohanad Fayez wrote:
> Péter,
>
> I can't seem to find a Left/Right Digital Loopback the mention of a loop I
> found is an FM Loop Enable. The following is the dapm_widget enable output
> from my Gumstix Overo running the 2.6.38 Kernel. Thanks for your help.
Look for the control:
amixer -c0
Look for the Left/Right Digital Loopback in the list, and check the value
> root@usrp-e1xx:~# cat /sys/devices/platform/soc-audio/TWL4030/dapm_widget
> Headset Mic Bias: Off
> Mic Bias 2: Off
> Mic Bias 1: Off
> micbias2 select: Off
> micbias1 select: Off
> Digimic1 Enable: Off
> Digimic0 Enable: Off
> ADC Physical Right: On
> ADC Physical Left: On
> Analog Right: On
> Analog Left: On
> ADC Virtual Right2: Off
> ADC Virtual Left2: Off
> ADC Virtual Right1: Off
> ADC Virtual Left1: Off
> HandsfreeR PGA: Off
> HandsfreeL PGA: Off
> CarkitR PGA: Off
> CarkitR Mixer: Off
> CarkitL PGA: Off
> CarkitL Mixer: Off
> HeadsetR PGA: On
> HeadsetR Mixer: On
> HeadsetL PGA: On
> HeadsetL Mixer: On
> PredriveR PGA: Off
> PredriveR Mixer: Off
> PredriveL PGA: Off
> PredriveL Mixer: Off
> Earpiece PGA: Off
> Earpiece Mixer: Off
> AIF Enable: On
> APLL Enable: Off
> Analog Voice Playback Mixer: Off
> Analog L2 Playback Mixer: On
> Analog R2 Playback Mixer: On
> Analog L1 Playback Mixer: Off
> Analog R1 Playback Mixer: Off
> Digital Voice Playback Mixer: Off
> Digital L2 Playback Mixer: On
> Digital R2 Playback Mixer: On
> Digital L1 Playback Mixer: Off
> Digital R1 Playback Mixer: Off
> FM Loop Enable: Off
> DAC Voice: Off
> DAC Left2: Off
> DAC Right2: Off
> DAC Left1: Off
> DAC Right1: Off
> PM State: On
Hrm,
It does seams that the digital loopback is enabled from this.
You had only capture running while taken this, right?
--
Péter
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TWL4030 Line In/Out Loopback issue
2011-08-09 6:40 ` Péter Ujfalusi
@ 2011-08-09 16:12 ` Almohanad Fayez
0 siblings, 0 replies; 5+ messages in thread
From: Almohanad Fayez @ 2011-08-09 16:12 UTC (permalink / raw)
To: peter.ujfalusi; +Cc: alsa-devel
Péter,
Using "amixer -c0" I was able to find that Digital Loopback was set 86% I set it to 0 and now everything works great! Thanks for your help I didn't realize that alsamixer doesn't reveal all the controls. Regarding the dapm_widget values, I copied them without running play nor record the reason being I was hearing the Loopbacked audio without having to run any utilities. I'm including the new dapm_widget output during record after I set the Loopback value to 0.
Thanks again for your help I really appreciate it.
al fayez
root@usrp-e1xx:~# cat /sys/devices/platform/soc-audio/TWL4030/dapm_widget
Headset Mic Bias: Off
Mic Bias 2: Off
Mic Bias 1: Off
micbias2 select: Off
micbias1 select: Off
Digimic1 Enable: Off
Digimic0 Enable: Off
ADC Physical Right: On
ADC Physical Left: On
Analog Right: On
Analog Left: On
ADC Virtual Right2: On
ADC Virtual Left2: On
ADC Virtual Right1: On
ADC Virtual Left1: On
HandsfreeR PGA: Off
HandsfreeL PGA: Off
CarkitR PGA: Off
CarkitR Mixer: Off
CarkitL PGA: Off
CarkitL Mixer: Off
HeadsetR PGA: Off
HeadsetR Mixer: Off
HeadsetL PGA: Off
HeadsetL Mixer: Off
PredriveR PGA: Off
PredriveR Mixer: Off
PredriveL PGA: Off
PredriveL Mixer: Off
Earpiece PGA: Off
Earpiece Mixer: Off
AIF Enable: On
APLL Enable: Off
Analog Voice Playback Mixer: Off
Analog L2 Playback Mixer: Off
Analog R2 Playback Mixer: Off
Analog L1 Playback Mixer: Off
Analog R1 Playback Mixer: Off
Digital Voice Playback Mixer: Off
Digital L2 Playback Mixer: Off
Digital R2 Playback Mixer: Off
Digital L1 Playback Mixer: Off
Digital R1 Playback Mixer: Off
FM Loop Enable: Off
DAC Voice: Off
DAC Left2: Off
DAC Right2: Off
DAC Left1: Off
DAC Right1: Off
PM State: On
-----Original Message-----
From: Péter Ujfalusi <peter.ujfalusi@ti.com>
To: Almohanad Fayez <alfayez@aol.com>
Cc: alsa-devel <alsa-devel@alsa-project.org>
Sent: Tue, Aug 9, 2011 2:40 am
Subject: Re: Re: [alsa-devel] TWL4030 Line In/Out Loopback issue
On Monday 08 August 2011 17:01:11 Almohanad Fayez wrote:
> Péter,
>
> I can't seem to find a Left/Right Digital Loopback the mention of a loop I
> found is an FM Loop Enable. The following is the dapm_widget enable output
> from my Gumstix Overo running the 2.6.38 Kernel. Thanks for your help.
Look for the control:
amixer -c0
Look for the Left/Right Digital Loopback in the list, and check the value
> root@usrp-e1xx:~# cat /sys/devices/platform/soc-audio/TWL4030/dapm_widget
> Headset Mic Bias: Off
> Mic Bias 2: Off
> Mic Bias 1: Off
> micbias2 select: Off
> micbias1 select: Off
> Digimic1 Enable: Off
> Digimic0 Enable: Off
> ADC Physical Right: On
> ADC Physical Left: On
> Analog Right: On
> Analog Left: On
> ADC Virtual Right2: Off
> ADC Virtual Left2: Off
> ADC Virtual Right1: Off
> ADC Virtual Left1: Off
> HandsfreeR PGA: Off
> HandsfreeL PGA: Off
> CarkitR PGA: Off
> CarkitR Mixer: Off
> CarkitL PGA: Off
> CarkitL Mixer: Off
> HeadsetR PGA: On
> HeadsetR Mixer: On
> HeadsetL PGA: On
> HeadsetL Mixer: On
> PredriveR PGA: Off
> PredriveR Mixer: Off
> PredriveL PGA: Off
> PredriveL Mixer: Off
> Earpiece PGA: Off
> Earpiece Mixer: Off
> AIF Enable: On
> APLL Enable: Off
> Analog Voice Playback Mixer: Off
> Analog L2 Playback Mixer: On
> Analog R2 Playback Mixer: On
> Analog L1 Playback Mixer: Off
> Analog R1 Playback Mixer: Off
> Digital Voice Playback Mixer: Off
> Digital L2 Playback Mixer: On
> Digital R2 Playback Mixer: On
> Digital L1 Playback Mixer: Off
> Digital R1 Playback Mixer: Off
> FM Loop Enable: Off
> DAC Voice: Off
> DAC Left2: Off
> DAC Right2: Off
> DAC Left1: Off
> DAC Right1: Off
> PM State: On
Hrm,
It does seams that the digital loopback is enabled from this.
You had only capture running while taken this, right?
--
Péter
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-09 16:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-08 0:27 TWL4030 Line In/Out Loopback issue Almohanad Fayez
2011-08-08 8:56 ` Péter Ujfalusi
2011-08-08 15:01 ` Almohanad Fayez
2011-08-09 6:40 ` Péter Ujfalusi
2011-08-09 16:12 ` Almohanad Fayez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.