Both alsa_amixer and alsa_play will not work. I did not investigated about it, but the business is to get the card recognized correctly by the ALSA layer. Once you are sure of that and placed a first "stub" of alsa.conf, at bootup you should see something in logcat notifying what is working and if there are issues.
On 23 Giu, 16:11, Ravishankar Haranath <rav...@gmail.com> wrote: > One wild guess is alsa_amixer might be segfaulting because of lack of > ncurses support (Not sure though). Default argument to alsa_amixer is > 'controls' which should show up an ncurses based interface. > But, it should not prevent ALSA from working properly. Double check your > asound.conf, if you believe it is perfect, your Music player should respond > :-) > > 2009/6/23 ehung <ehung1...@gmail.com> > > > > > > > Hi Luca . > > Sorry to bother you again. > > My sound still not work. > > I has used alsa_aplay command to play a mp3 file or wav file but it > > doesn't work. > > > # alas_aplay -f cd /data/123.mp3 > > # Playing raw data '/data/123.mp3': signed 16 bit Little Endian, Rate > > 44100 Hz, Stereo. > > > And launching alsa_amixer -c 0, it still has show Segmentation fault. > > Simple mixer control 'Master' ,0 > > Capabilities: pvolume pvolume-joined pswitch pswitch-joined > > Playback channels: Mono > > Limits: Playback 0 - 13 > > [1] Segmentation fault alsa_mixer -c 0 > > > Could you give me a hint for that? > > Thank in advance. > > > Best regards, > > ehung > > > On 6月19日, 下午5時03分, Luca Belluccini <lucabellucc...@gmail.com> wrote: > > > Exactly what happened to me: > > > I have been struggling on it for 2 weeks! > > > > A very strange error happened: it was printing an error but not > > > printing a test printf I placed in a code section which MUST be > > > executed. > > > > On 19 Giu, 05:03, ehung <ehung1...@gmail.com> wrote: > > > > > Hi Luca . > > > > Thanks your help. > > > > I have made "make clean" and "make" again. > > > > The libraries seems to link correctly. > > > > Because I got the some log information aboutalsabefore I have never > > > > seen. > > > > The log message is showing below. > > > > > ...... > > > > I/ServiceManager( 2106): service 'media.audio_flinger' died > > > > I/ServiceManager( 2106): service 'media.player' died > > > > I/ServiceManager( 2106): service 'media.camera' died > > > > W/AudioSystem( 2119): AudioFlinger server died! > > > > W/MediaPlayer( 2300): MediaPlayer server died! > > > > E/MediaPlayer( 2300): error (100, 0) > > > > E/MediaPlayer( 2300): Error (100,0) > > > > D/VideoView( 2300): Error: 100,0 > > > > I/ ( 2459): ServiceManager: 0x804ac38 > > > > D/AudioHardwareALSA( 2459): Mixer: element name: 'Master' > > > > D/AudioHardwareALSA( 2459): Mixer: master 'Master' found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Master' found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Master' found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Bluetooth' not found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Master' found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Bluetooth A2DP' not found. > > > > D/AudioHardwareALSA( 2459): Mixer: element name: 'Front Mic Boost' > > > > D/AudioHardwareALSA( 2459): Mixer: element name: 'Mic Boost' > > > > D/AudioHardwareALSA( 2459): Mixer: element name: 'Capture' > > > > D/AudioHardwareALSA( 2459): Mixer: master 'Capture' found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Capture' found. > > > > D/AudioHardwareALSA( 2459): Mixer: route '' not found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Bluetooth Capture' not > > > > found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Capture' found. > > > > D/AudioHardwareALSA( 2459): Mixer: route 'Bluetooth A2DP Capture' not > > > > found. > > > > D/AudioHardwareALSA( 2459): mixer initialized. > > > > E/ALSALib ( 2459): external/alsa-lib/src/control/setup.c:555: > > > > (add_elem) Cannot obtain info for CTL elem (MIXER,'Line-Out Playback > > > > Volume',0,0,0): No such file or directory > > > > E/ALSALib ( 2459): external/alsa-lib/src/pcm/pcm_hw.c:1445: > > > > (_snd_pcm_hw_open) Invalid type for subdevice > > > > E/ALSALib ( 2459): external/alsa-lib/src/pcm/pcm.c:2201: > > > > (snd_pcm_open_noupdate) Unknown PCM NULL_Device > > > > I/AudioHardwareALSA( 2459): InitializedALSAPLAYBACK device > > > > NULL_Device > > > > W/AudioHardwareALSA( 2459): AudioMixer expects two channels, but only > > > > -1 found! > > > > W/AudioHardwareALSA( 2459): AudioMixer expects two channels, but only > > > > -1 found! > > > > E/ALSALib ( 2459): external/alsa-lib/src/control/setup.c:555: > > > > (add_elem) Cannot obtain info for CTL elem (MIXER,'Line-Out Playback > > > > Volume',0,0,0): No such file or directory > > > > E/ALSALib ( 2459): external/alsa-lib/src/control/setup.c:555: > > > > (add_elem) Cannot obtain info for CTL elem (MIXER,'Line-Out Playback > > > > Volume',0,0,0): No such file or directory > > > > I/AudioFlinger( 2459): AudioFlinger's thread ready to run for output 0 > > > > E/ALSALib ( 2459): external/alsa-lib/src/control/setup.c:555: > > > > (add_elem) Cannot obtain info for CTL elem (MIXER,'Line-Out Playback > > > > Volume',0,0,0): No such file or directory > > > > E/ALSALib ( 2459): external/alsa-lib/src/pcm/pcm_hw.c:1445: > > > > (_snd_pcm_hw_open) Invalid type for subdevice > > > > E/ALSALib ( 2459): external/alsa-lib/src/pcm/pcm.c:2201: > > > > (snd_pcm_open_noupdate) Unknown PCM NULL_Device > > > > I/AudioHardwareALSA( 2459): InitializedALSAPLAYBACK device > > > > NULL_Device > > > > I/CameraService( 2459): CameraService started: pid=2459 > > > > E/AudioService( 2119): Media server died. > > > > E/AudioService( 2119): Media server started. > > > > ..... > > > > > I got the some error. > > > > Could you give me some suggestion about that? > > > > Sorry to trouble you again. > > > > Thanks in advance. > > > > > Best Regards, > > > > ehung > > > > > On 16 Giu, 18:11, Luca Belluccini <lucabellucc...@gmail.com> wrote: > > > > > >Alsaamixer will not work correcly. > > > > > Never worked. > > > > > > Remember that if you built before withoutALSAsupport, do a > > > > > > $ make clean > > > > > > There's something wrong in build phase: without clean libraries are > > > > > not linked correctly. > > > > > > On 16 Giu, 10:52, ehung <ehung1...@gmail.com> wrote: > > > > > > > Hi Androidphan. > > > > > > > I can launch alsa_aplay -l and audio card is listed. > > > > > > > Launching alsa_aplay file.mp3 and it tells me "unable to install hw > > > > > > params". > > > > > > > Launching alsa_amixer -c 0, it has show some information below. > > > > > > Simple mixer control 'Master' ,0 > > > > > > Capabilities: pvolume pvolume-joined pswitch > > pswitch-joined > > > > > > Playback channels: Mono > > > > > > Limits: Playback 0 - 13 > > > > > > [1] Segmentation fault alsa_mixer -c 0 > > > > > > > When I set the Audible selection on settings of UI, the logcat > > message > > > > > > will show > > > > > > E/MediaPlayer: Unable to to create media player. > > > > > > > That's all for my test that I can do it what I know. > > > > > > Could you give me some suggestion? > > > > > > > Thanks in advance again. > > > > > > Best Regards, > > > > > > ehung > > > > > > > On 16 Giu, 15:56, Androidphan <niels.kee...@tass.nl> wrote: > > > > > > > > If you give some more information on your soundcard, errors, > > logcat > > > > > > > etc. > > > > > > > We can't do anything with more information. > > > > > > > > On Jun 16, 9:22 am, ehung <ehung1...@gmail.com> wrote: > > > > > > > > > Hi Luca. > > > > > > > > I have follow your tips on wiki to implmentalsafunction. > > > > > > > > I have built the libaudio.so, alsa_ctl, alsa_amixer and > > alsa_aplay on > > > > > > > > android system. > > > > > > > > I use a aplayer application to test thealsafunction, but the > > audio > > > > > > > > still not work. > > > > > > > > Could you give me some suggestion? > > > > > > > > Thank in advance. > > > > > > > > > Best Regards, > > > > > > > > ehung > > > > > > > > > On 12 Giu, 17:03, Luca Belluccini <lucabellucc...@gmail.com> > > wrote: > > >http://code.google.com/p/patch-hosting-for-android-x86-support/wiki/A... > > > > > > > > - Mostra testo citato -- Nascondi testo citato > > > > > > - Mostra testo citato -- 隱藏被引用文字 - > > > > - 顯示被引用文字 - > > -- > Ravishankar Haranathhttp://www.linmaya.net --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---