This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ALSA Playback failure on SDP4430 Panda board

Hi,

I am trying to get the music player to work on the TI OMAP Panda board with Android Gingerbread.
The logs during boot up indicated a failure while registering ALSA playback.
01-01 00:27:30.023: ERROR/Omap4ALSA(1377): Failed to initialize ALSA PLAYBACK device 'hw:0,6': Unknown error: -22

They I tried doing an alsa_aplay -v filename.pcm from the shell to find out that it is using hw:0,0 to playback. I changed the value of MM_LP_DEVICE to "hw:0,0" in file /hardware/ti/omap3/modules/alsa/alsa_omap4.h . I can hear PCM data being rendered when I use alsa_aplay. It just doesn't work with the music player.

However after this I "guess" I am able to register the playback device, but I am facing the below errors. Could you please suggest how should I get rid of "Control 'DL2 Left Equalizer' cannot get element info: -2"

01-01 00:13:24.257: INFO/(1377): ServiceManager: 0xada8
01-01 00:13:24.281: ERROR/ALSALib(1377): external/alsa-lib/src/control/control.c:902:(snd_ctl_open_noupdate) Invalid CTL AndroidOut
01-01 00:13:24.281: WARN/AudioHardwareALSA(1377): Unable to attach mixer to device AndroidOut: No such file or directory
01-01 00:13:24.281: DEBUG/dalvikvm(1376): DexOpt: --- BEGIN 'core.jar' (bootstrap=1) ---
01-01 00:13:24.289: ERROR/ALSALib(1377): external/alsa-lib/src/control/control.c:902:(snd_ctl_open_noupdate) Invalid CTL AndroidIn
01-01 00:13:24.289: WARN/AudioHardwareALSA(1377): Unable to attach mixer to device AndroidIn: No such file or directory
01-01 00:13:24.554: DEBUG/Omap4ALSAModem(1377): Initializing devices for Modem OMAP4 ALSA module
01-01 00:13:24.554: WARN/Omap4ALSAModem(1377): Use generic Modem interface
01-01 00:13:24.554: DEBUG/dalvikvm(1426): creating instr width table
01-01 00:13:24.554: VERBOSE/AudioModemGeneric(1377): AudioModemInterfaceGeneric
01-01 00:13:24.554: VERBOSE/AudioModemGeneric(1377): Build date: Jul 28 2011 time: 16:50:29
01-01 00:13:24.554: VERBOSE/AudioModemGeneric(1377): initCheck
01-01 00:13:24.554: INFO/CameraService(1377): CameraService started (pid=1377)
01-01 00:13:24.570: VERBOSE/AudioFlinger(1377): registerClient() client 0x42e28, pid 1377
01-01 00:13:24.570: VERBOSE/AudioFlinger(1377): openOutput(), Device 2, SamplingRate 0, Format 0, Channels 0, flags 0
01-01 00:13:24.570: DEBUG/AudioHardwareALSA(1377): openOutputStream called for devices: 0x00000002
01-01 00:13:24.585: ERROR/ALSAControl(1377): Control 'DL2 Left Equalizer' cannot get element info: -2
01-01 00:13:24.585: ERROR/ALSAControl(1377): Control 'DL2 Right Equalizer' cannot get element info: -2
01-01 00:13:24.593: VERBOSE/AudioFlinger(1377): openOutput() openOutputStream returned output 0x0, SamplingRate 0, Format 0, Channels 0, status -22
01-01 00:13:24.593: ERROR/AudioPolicyManagerBase(1377): Failed to initialize hardware output stream, samplingRate: 0, format 0, channels 0
01-01 00:13:24.593: VERBOSE/AudioPolicyManagerBase(1377): getDeviceForStrategy() strategy 0, device 2

 

// Output for # alsa_aplay -v alabama_08k.pcm

Playing WAVE 'alabama_08k.pcm' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Plug PCM: Rate conversion PCM (48000, sformat=S32_LE)
Converter: linear-interpolation
Protocol version: 10002
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 1
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 16
  buffer_size  : 4000
  period_size  : 1000
  period_time  : 125000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 1000
  period_event : 0
  start_threshold  : 4000
  stop_threshold   : 4000
  silence_threshold: 0
  silence_size : 0
  boundary     : 262144000
Slave: Hardware PCM card 0 'SDP4430' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S32_LE
  subformat    : STD
  channels     : 1
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 32
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 6000
  period_event : 0
  start_threshold  : 24000
  stop_threshold   : 24000
  silence_threshold: 0
  silence_size : 0
  boundary     : 1572864000
  appl_ptr     : 0
  hw_ptr       : 0