AnsweredAssumed Answered

AD193X Driver Problem:  Get aplay error msg 'Slave PCM not usable'

Question asked by ShutEyeThinkin on Aug 6, 2013
Latest reply on Jan 14, 2014 by mhennerich

I am using the uClinux 2011R1, BF537, and am trying to setup and communicate with the ad1939  4-IN,8-OUT CODEC.
The ad1939 is SPI-controlled (SPI_SSEL4), uses I2S (TDM mode), and uses SPORT 0 (for I2S).


Get same error msgs using app func calls to driver, aplay and arecord.




  If using App calls to driver:

  After successfully calling snd_pcm_open(), I am getting an error returned after calling snd_pcm_hw_params_any().

  Error:  'Invalid argument'


  The kernel also prints:

    'ALSA lib /home/smv/blackfin/sa2912/uClinux/lib/alsa-lib/alsa-lib-1.0.24/src/pcm/pcm_params.c:2166:(snd1_pcm_hw_refine_sl
    ave) Slave PCM not usable'


   In alsa-lib-1.0.24/src/pcm/pcm_params.c, I enabled RULES_DEBUG and REFINE_DEBUG to get the snd_outputxxx() prints. I added

   the file containing these prints.



  Or, if using aplay, I get the same prints and errors. See attached file.

  NOTE at end of attached file:  'aplay: set_params:1037: Broken configuration for this PCM: no configurations available'


Helpful cats


# cat /proc/asound/card0/pcm0p/info
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: AD193X ad193x-hifi-0
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1

# cat proc/asound/cards
0 [bfinad193x     ]: bfin-ad193x - bfin-ad193x



Please see attached file(s).


Thanks for your help (it's needed badly, folks),


Steven Vacca