[alsa-devel] [RFC] [PATCH 0/2] ASoC sound support forSMDK2440boards

Jose Henrique Spahn Torres jose.torres at eldorado.org.br
Tue May 29 19:42:06 CEST 2007


-----Original Message-----
From: Zoltan Devai [mailto:zdevai at gmail.com] 
Sent: sexta-feira, 25 de Maio de 2007 14:40
To: Jose Henrique Spahn Torres
Subject: Re: [alsa-devel] [RFC] [PATCH 0/2] ASoC sound support
forSMDK2440boards

2007/5/25, Jose Henrique Spahn Torres <jose.torres at eldorado.org.br>:
> > 2007/5/24, Jose Henrique Spahn Torres <jose.torres at eldorado.org.br>:
> usbcore: registered new interface driver hci_usb Advanced Linux Sound 
> Architecture Driver Version 1.0.14rc4 (Wed May 16
> 09:45:46 2007 UTC).
> ASoC version 0.13.1
> SMDK2440 ALSA SoC Audio driver
> UDA1341 SoC Audio Codec
> L3 write
> L3 transfer
> L3 sendbyte: 16
> L3 sendbyte: 40
> asoc: UDA1341 <-> s3c24xx-i2s mapping ok ALSA device list:
>   #0: SMDK2440 (UDA1341)
> TCP cubic registered
> ...

Fine.

> However, when triyng to play something I get this:
>
> asoc: machine hw_params failed
>
> This is in sound/soc/soc-core.c, line 494.
> I couldn't go any futher then this.
> Any hint?

This combination of processor, crystal and codec only supports the
following rates:
11.025 Khz, 22.050Khz and 44.100 Khz

Please try to play a file with these sample rates.
(If you have alsa-tools, you could try 'speaker-test -r 44.100').

BTW, could you tell me the freq of the crystal on the processor board ?
(Is it 16.934 Mhz?)

Zoltan


Hi,

I used speaker-test as indicated above and the result is:

pendrive $ ./speaker-test -r 44100

speaker-test 1.0.11

Playback device is default
Stream parameters are 44100Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory
ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No such file or directory

I have also tried:

/pendrive $ ./aplay -f cd 01-jack_johnson-times_like_these-rns.wav
ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:547: audio open error: No such file or directory
/pendrive $

so I don't know what is happening here.
Does anyone have any idea?

Thanks,
Henrique


More information about the Alsa-devel mailing list