Re: [alsa-devel] HELP:How to power down TWL5030 Voice/Bluetooth sidetone PGA?
On Thursday 09 June 2011 16:40:15 onlyfever wrote:
Hello, I want to power down Voice/Bluetooth sidetone PGA of TWL5030. I set the VSTPGA Register/BTSTPGA Register to 0x00,but it seems that the Voice/Bluetooth sidetone PGA still work, and even set VSTPGA/BTSTPGA to Mute,there still have sidetone come out.
How can I power down Voice/Bluetooth sidetone PGA? I don't need sidetone.
Are you sure, that the sidetone is added by the VSTPGA/BTSTPGA? Could you check, if you accidentally left either the analog loopbacks enabled (or digital loopbacks)? Check for these: Right1/2 Analog Loopback, Left1/2 Analog Loopback, Voice Analog Loopback, Left/Right/Voice Digital Loopback
Could you describe your scenario (uplink, downlink routing, etc)?
2011/6/10 Péter Ujfalusi peter.ujfalusi@ti.com:
On Thursday 09 June 2011 16:40:15 onlyfever wrote:
Hello, I want to power down Voice/Bluetooth sidetone PGA of TWL5030. I set the VSTPGA Register/BTSTPGA Register to 0x00,but it seems that the Voice/Bluetooth sidetone PGA still work, and even set VSTPGA/BTSTPGA to Mute,there still have sidetone come out.
How can I power down Voice/Bluetooth sidetone PGA? I don't need sidetone.
Are you sure, that the sidetone is added by the VSTPGA/BTSTPGA? Could you check, if you accidentally left either the analog loopbacks enabled (or digital loopbacks)? Check for these: Right1/2 Analog Loopback, Left1/2 Analog Loopback, Voice Analog Loopback, Left/Right/Voice Digital Loopback
Could you describe your scenario (uplink, downlink routing, etc)?
-- Péter
1. when use Headset: uplink routing:HSMIC --> AVTXR2PGA & AVTXL2PGA --> VDXS & VDXM --> PCM_VDX downlink routing:PCM_VDR --> VDR --> VRXPGA Fine gain --> DAC voice --> VDL_GAIN Analog PGA --> HSOL/HSOR
I check the loopbacks,it seems that all Loopbacks have been disabled. bash-3.2# alsa_amixer |grep Loopback Simple mixer control 'Left Digital Loopback',0 Simple mixer control 'Left1 Analog Loopback',0 Simple mixer control 'Left2 Analog Loopback',0 Simple mixer control 'Right Digital Loopback',0 Simple mixer control 'Right1 Analog Loopback',0 Simple mixer control 'Right2 Analog Loopback',0 Simple mixer control 'Voice Analog Loopback',0 Simple mixer control 'Voice Digital Loopback',0
The sidetone is become louder if I increase the VSTPGA, and when I increase the VDL_GAIN Analog PGA,the sidetone is become louder too. But the VRXPGA seems don't affect the sidetone,so I think VSTPGA cause the sidetone.
2.when use Bluetooth: uplink routing:BT_PCM_VDR --> BTTXPGA --> VDXM --> PCM_VDX downlink routing:PCM_VDR --> VDR --> BTRXPGA --> BT_PCM_VDX
When use Bluetooth interface,I don't know if something else can cause sidetone except BTSTPGA.
thanks!
2011/6/10 Péter Ujfalusi peter.ujfalusi@ti.com:
- when use Headset:
uplink routing:HSMIC --> AVTXR2PGA & AVTXL2PGA --> VDXS & VDXM --> PCM_VDX downlink routing:PCM_VDR --> VDR --> VRXPGA Fine gain --> DAC voice --> VDL_GAIN Analog PGA --> HSOL/HSOR
Thanks
I check the loopbacks,it seems that all Loopbacks have been disabled. bash-3.2# alsa_amixer |grep Loopback Simple mixer control 'Left Digital Loopback',0 Simple mixer control 'Left1 Analog Loopback',0 Simple mixer control 'Left2 Analog Loopback',0 Simple mixer control 'Right Digital Loopback',0 Simple mixer control 'Right1 Analog Loopback',0 Simple mixer control 'Right2 Analog Loopback',0 Simple mixer control 'Voice Analog Loopback',0 Simple mixer control 'Voice Digital Loopback',0
Can you check with: amixer | grep -A 6 Loopback
The sidetone is become louder if I increase the VSTPGA, and when I increase the VDL_GAIN Analog PGA,the sidetone is become louder too. But the VRXPGA seems don't affect the sidetone,so I think VSTPGA cause the sidetone.
2.when use Bluetooth: uplink routing:BT_PCM_VDR --> BTTXPGA --> VDXM --> PCM_VDX downlink routing:PCM_VDR --> VDR --> BTRXPGA --> BT_PCM_VDX
When use Bluetooth interface,I don't know if something else can cause sidetone except BTSTPGA.
I don't have a board, which have this feature, but I'll check the TRM and the code, if I can find something. Probably worth to find the ERRATA document as well...
Can you check with: amixer | grep -A 6 Loopback
Simple mixer control 'Left Digital Loopback',0 Capabilities: volume volume-joined penum Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 0 [0%] [-99999.99dB] Simple mixer control 'Left1 Analog Loopback',0 Capabilities: pswitch pswitch-joined penum Playback channels: Mono Mono: Playback [off] Simple mixer control 'Left2 Analog Loopback',0 Capabilities: pswitch pswitch-joined penum Playback channels: Mono Mono: Playback [off] Simple mixer control 'PreDriv',0 Capabilities: pvolume penum Playback channels: Front Left - Front Right -- Simple mixer control 'Right Digital Loopback',0 Capabilities: volume volume-joined penum Playback channels: Mono Capture channels: Mono Limits: 0 - 7 Mono: 0 [0%] [-99999.99dB] Simple mixer control 'Right1 Analog Loopback',0 Capabilities: pswitch pswitch-joined penum Playback channels: Mono Mono: Playback [off] Simple mixer control 'Right2 Analog Loopback',0 Capabilities: pswitch pswitch-joined penum Playback channels: Mono Mono: Playback [off] Simple mixer control 'TX1',0 Capabilities: cenum Items: 'Analog' 'Digimic0' -- Simple mixer control 'Voice Analog Loopback',0 Capabilities: pswitch pswitch-joined penum Playback channels: Mono Mono: Playback [off] Simple mixer control 'Voice Digital Loopback',0 Capabilities: volume volume-joined penum Playback channels: Mono Capture channels: Mono Limits: 0 - 41 Mono: 0 [0%] [-99999.99dB]
participants (2)
-
onlyfever
-
Péter Ujfalusi