Re: [alsa-devel] [RFC] [PATCH 0/2] ASoC sound support forSMDK2440boards
-----Original Message----- From: Zoltan Devai [mailto:zdevai@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@eldorado.org.br:
2007/5/24, Jose Henrique Spahn Torres jose.torres@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
2007/5/29, Jose Henrique Spahn Torres jose.torres@eldorado.org.br:
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?
You seem to have two problems: 1. Using OSS applications which try to set the sample rate to 8000Hz, which is not supported by the hardware 2. A non-working ALSA installation, with some alsa-lib or device file misconfiguration
Try to fix both...
On Wed, 2007-05-30 at 17:30 +0200, Zoltan Devai wrote:
2007/5/29, Jose Henrique Spahn Torres jose.torres@eldorado.org.br:
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?
You seem to have two problems:
- Using OSS applications which try to set the sample rate to 8000Hz,
which is not supported by the hardware 2. A non-working ALSA installation, with some alsa-lib or device file misconfiguration
Try to fix both...
Is this compilation using buildroot? We have had many people with bugreports that turned out to be gcc CSE bug which is not patched in buildroot. And the fact the build root doesnt seem to install the config files for alsa-lib.
For testing here we always use images generated by OpenEmbedded www.openembedded.org. So that gets better ALSA support for ASoC stuff anyway :-)
Graeme
-----Original Message----- From: alsa-devel-bounces@alsa-project.org [mailto:alsa-devel-bounces@alsa-project.org] On Behalf Of Graeme Gregory Sent: quarta-feira, 30 de Maio de 2007 12:43 To: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] [RFC] [PATCH 0/2] ASoC soundsupport forSMDK2440boards
On Wed, 2007-05-30 at 17:30 +0200, Zoltan Devai wrote:
2007/5/29, Jose Henrique Spahn Torres jose.torres@eldorado.org.br:
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?
You seem to have two problems:
- Using OSS applications which try to set the sample rate to 8000Hz,
which is not supported by the hardware 2. A non-working ALSA installation, with some alsa-lib or device file misconfiguration
Try to fix both...
Is this compilation using buildroot? We have had many people with bugreports that turned out to be gcc CSE bug which is not patched in buildroot. And the fact the build root doesnt seem to install the config files for alsa-lib.
For testing here we always use images generated by OpenEmbedded www.openembedded.org. So that gets better ALSA support for ASoC stuff anyway :-)
Graeme
Hi,
thanks for the hints, I will do that
Henrique
participants (3)
-
Graeme Gregory
-
Jose Henrique Spahn Torres
-
Zoltan Devai