Hi, all, in AudioHardwareALSA.cpp, look at the function ALSAStreamOps::open(int mode, int device) , when i need to do routing to earpiece, headset, or other output device.
function snd_pcm_open will open the device by passing devName to it, but i will return error that unable to open the device "devName". see below: snd_pcm_open(&mHandle, devName, mDefaults->direction, 0); snd_pcm_open will open the device successfully only at by passing parameter "hw:00,0" to it. see below: snd_pcm_open(&mHandle, "hw:00,0", mDefaults->direction, 0); in this scenario, we will hear sound from all the output device , such as earpiece, speaker and headset, but except bluetooth headset . So can anyone tell me how to configure the alsa to let it can work correct? Thanks a lot ! --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
