hi Sean,
I have read about asound.conf file, but I don't know how to make sure that
the sound will output to the appointed device, such as headset. Could you
give me example for the asound.conf according to android device name? Thanks
!

2009/3/21 Sean McNeil <seanmcne...@gmail.com>

>
> You need to create an appropriate asound.conf. It goes into /system/etc/.
>
> liaojunsh...@gmail.com wrote:
> > 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: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to