dear all,

I'm developing telephony feature on MID.
I need to switch audio route to enable ring tone while there is an
incoming call.
The way I did is to access audio driver directly via I/O control.
So I modified the function named "doRouting" of "hardware/alsa_sound/
AudioHardwareALSA.cpp".
It finally generated the share library named "libaudio.so".
I found that it would fail to open the specific device node named "/
dev/snd/hwC0D0", and the error is "Permission Denied".
I've checked the GID/UID of "/dev/snd/hwC0D0" and it belongs to system/
audio(1000/1005).
So I changed the the permission by "chmod 777 /dev/snd/hwC0D0" and it
didn't work. Even I tried the "chown" and "chgrp".
It's weird that it works if I wrote a particular executable file to
open the same device node (as root).
Any suggestion?

Regards,


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" 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-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to