Hi all. I'm trying to change the audio path to earpiece from
speakerphone, and I cannot get it to work on the G1: the audio always
goes through the speakerphone. Here's the code snippet:

/************************/
private AudioManager am;
am.setRouting(am.MODE_NORMAL, am.ROUTE_EARPIECE, am.ROUTE_ALL);
/************************/

I took logs for this issue and compared them to logs from the calling
app when I turn off the speakerphone there and they look similar:

(from calling app)
D/AudioFlinger(   35): setRouting 2 1 -1, tid 57, calling tid 58
E/AudioFlinger(   35): mA2dpDisableCount is already zero
I/AudioHardwareMSM72XX(   35): Routing audio to Handset
D/HTC Acoustic(   35): msm72xx_enable_audpp: 0x0000

(from my app)
D/AudioFlinger(   35): setRouting 0 1 -1, tid 54, calling tid 58
I/AudioHardwareMSM72XX(   35): Routing audio to Handset
D/HTC Acoustic(   35): msm72xx_enable_audpp: 0x0000

The main difference here is that I'm trying to change the audio path
for MODE_NORMAL, while the calling app is changing the audio path for
MODE_IN_CALL. Any suggestions or observations are helpful. Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to