Problem with SOC MPC5121 and auto conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I'm new to ALSA and am trying to get my audio interface on a ADS5121
Rev4.0 (MPC5121e based) to work.

I'm using Kernel 2.6.24.6 with ALSA 1.0.15.
Looking at the source, the AC97 driver supports S32_BE format only.

I am now able to record and play raw data in this format like this:
$ arecord -traw -c2 -fS32_BE -Dhw:0,0 testfile
$ aplay -traw -c2 -fS32_BE -Dhw:0,0 testfile

I now expected to be able to play wav files of any format using plughw
but this is getting me this error:

$ aplay -Dplughw:0,0 test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
ALSA lib pcm_plug.c:773:(snd_pcm_plug_hw_refine_schange) Unable to find
an usable access for 'plughw:0,0'
aplay: set_params:901: Sample format non available

I'm not sure, but I expect this to be a problem of my ALSA configuration
and this is where I'm stuck.
Does anyone have a working configuration for the ads5121 or any hint on
what I'm doing wrong?
How can I convert LE wav files to S32_BE?

I tried this configuration but without success.
> pcm.mpc5121 {
>   type hw
>   card 0
>   device 0
> }
>
> pcm_slave.sl1 {
>   pcm
>   format S32_BE
>   channels 2
>   rate 44100
> }
>
> pcm.convert {
>   type plug
>   slave sl1
> }

Using above configuration I get this error:
$ aplay -D convert test.wav
ALSA lib conf.c:1588:(snd_config_load1) _toplevel_:14:1:Unexpected char
ALSA lib conf.c:2849:(snd_config_hook_load) /etc/asound.conf may be old
or corrupted: consider to remove or fix it
ALSA lib conf.c:2713:(snd_config_hooks_call) function
snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:3076:(snd_config_update_r) hooks failed, removing
configuration
aplay: main:546: audio open error: Invalid argument

Many thanks
Stefan.

-----
Here some more information that may be of help:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ADS [MPC5121 ADS], device 0: AC97 AC97 HiFi-<NULL>-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ aplay -L
default:CARD=ADS
    MPC5121 ADS,
    Default Audio Device
null
    Discard all samples (playback) or generate zero samples (capture)

$ cat /proc/asound/devices
  0: [ 0]   : control
  1:        : sequencer
 16: [ 0- 0]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer

$ cat /proc/asound/cards
 0 [ADS            ]: AC97 - MPC5121 ADS
                      MPC5121 ADS (AC97)



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux