Hi, As particular need, I want to route the Audio data to both HEADSET and SPEAKER. For example if I play a Music file, I want that the output should come on speaker and on headset as well. My first question is weather is it possible or not in the current éclair SDK.
As per my understanding, the Headset plugging/unplugging is detected by the kernel’s switch driver and the event is sent to HeadsetObserver.java. Then HeadsetObserver.java broadcasts the intent Intent.ACTION_HEADSET_PLUG with information about state as plugged/ unplugged. This intent is received by PhoneApps.java and the audiomanager/audioFlinger is informed to turn on/off the speaker. The audioManager/AudioFlinger further passes the information to Libaudio.so (AudioHardware.cpp). Then in the end the information is passed to kernel to switch between the speakerphone and Headset. I have found a case in AudioHardware.cpp as SND_DEVICE_HEADSET_AND_SPEAKER. That being said, please tells me how I can enable both the Headset and Speakerphone. Incase required, I can furnish more investigation, what I have done so far. Thanks Anand -- 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

