Hi,
I tried putting it all together. The end system has the device nodes
in the correct place with valid permissions, and I even get some
promising debug messages. But if I try to play any sound or change the
volume, the AudioFlinger service crashes (and is restarted endlessly).
And of course, no sound is produced. Apparently, it's looking for a
mixer device that does not exist :
D/AudioHardwareALSA( 665): mixer initialized.
E/ALSALib ( 665): external/alsa-lib/src/pcm/pcm.c:2144:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
E/ALSALib ( 665): external/alsa-lib/src/pcm/pcm.c:2144:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
E/ALSALib ( 665): external/alsa-lib/src/pcm/pcm.c:2144:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
I/AudioHardwareALSA( 665): Initialized ALSA PLAYBACK device
AndroidPlayback
D/AudioHardwareALSA( 665): Set PLAYBACK PCM format to S16_LE (Signed
16 bit Little Endian)
D/AudioHardwareALSA( 665): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA( 665): Set PLAYBACK sample rate to 44100 HZ
E/ALSALib ( 665): external/alsa-lib/src/pcm/pcm.c:2144:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
E/ALSALib ( 665): external/alsa-lib/src/control/setup.c:555:
(add_elem) Cannot obtain info for CTL elem (MIXER,'T2 Master codec
configure Switch',0,0,0)
E/ALSALib ( 665): external/alsa-lib/src/pcm/pcm.c:2144:
(snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
I/AudioHardwareALSA( 665): Initialized ALSA PLAYBACK device
AndroidPlayback
D/AudioHardwareALSA( 665): Set PLAYBACK PCM format to S16_LE (Signed
16 bit Little Endian)
D/AudioHardwareALSA( 665): Using 2 channels for PLAYBACK.
D/AudioHardwareALSA( 665): Set PLAYBACK sample rate to 44100 HZ
W/AudioFlinger( 813): write blocked for 179
msecs
W/AudioFlinger( 813): write blocked for 55
msecs
D/VolumePanel( 684): onVolumeChanged(streamType: 3, flags:
17)
D/VolumePanel( 684): onShowVolumeChanged(streamType: 3, flags: 17),
index:
12
I/DEBUG ( 662): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** ***
***
I/DEBUG ( 662): Build fingerprint: 'generic/omap/omap/:1.0/MVA-RC1/
eng.mpetazzoni.20081126.111057:eng/test-
keys'
I/DEBUG ( 662): pid: 665, tid: 680 >>> /system/bin/mediaserver
<<<
I/DEBUG ( 662): signal 11 (SIGSEGV), fault addr
00000000
Could that be related to a mismatched ALSA driver for the TWL4030? Any
idea would help :)
Thanks!
- Maxime