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 <[email protected]> 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 about alsa before 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): Initialized ALSA PLAYBACK 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): Initialized ALSA PLAYBACK 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 <[email protected]> wrote: > > > Alsa amixer will not work correcly. > > Never worked. > > > Remember that if you built before without ALSA support, do a > > > $ make clean > > > There's something wrong in build phase: without clean libraries are > > not linked correctly. > > > On 16 Giu, 10:52, ehung <[email protected]> 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 <[email protected]> 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 <[email protected]> wrote: > > > > > > Hi Luca. > > > > > I have follow your tips on wiki to implment alsa function. > > > > > I have built the libaudio.so, alsa_ctl, alsa_amixer and alsa_aplay on > > > > > android system. > > > > > I use a aplayer application to test the alsa function, 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 <[email protected]> wrote: > > > > > > >http://code.google.com/p/patch-hosting-for-android-x86-support/wiki/A...citato > > > > > - Mostra testo citato -- Nascondi testo citato > > > - Mostra testo citato - --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
