On 06/16/2011 12:41 PM, Takashi Iwai wrote:
At Tue, 14 Jun 2011 16:54:42 +0200, Lambrecht Jürgen wrote:
Hello,
I have a imx27 ARM9 with MC13783 codec (all from Freescale).
alsa init does not find a sound card, but finally there is a sound card. cat /proc/asound/cards: 0 [iMXmc13783audio]: - iMX-mc13783-audio iMX-mc13783-audio
Maybe the inits are done in a wrong order, but how to fix?
Here some parts of the prints: [start]
[snip]
ALSA device list: No soundcards found. [end]
-> then a sound card is registered by calling 'late_initcall(imx_mc13783_audio_init);'
Any reason to call it with lateinit?
Takashi
Well, I am new to linux, new to alsa, so I don't know. The code is from Sascha Hauer (pengutronix git, sound branch), but is not yet finished. And I replaced the 'late_initcall(..);' by 'module_init(..);' but still another problem remaining: when ALSA starts, it finds a sound card ( ALSA device list: #0: iMX-mc13783-audio ) But when I run 'aplay' it fails. And 'aplay -l' gives this output: mx27iat# aplay -l aplay: device_list:227: no soundcards found... Although: mx27iat# cat /proc/asound/cards 0 [iMXmc13783audio]: - iMX-mc13783-audio iMX-mc13783-audio
And after some more code fixes.., even more:
mx27iat# madplay music.mp3 MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al. asoc: mc13783-hifi <-> imx-ssi.0 info: asoc: rate mask 0x7fe asoc: min ch 1 max ch 2 asoc: min rate 8000 max rate 96000 [snip album info] mc13783-codec mc13783-codec: read 41 => e0004 mc13783-codec mc13783-codec: write 41 = 4 mc13783-codec mc13783-codec: read 41 => 4 mc13783-codec mc13783-codec: read 41 => 4 mc13783-codec mc13783-codec: read 41 => 4 mc13783-codec mc13783-codec: write 41 = e0004 ALSA pcm_lib.c:1787: playback write error (DMA or IRQ trouble?) ALSA pcm_lib.c:1787: playback write error (DMA or IRQ trouble?) output: write: Input/output error ALSA pcm_lib.c:1787: playback write error (DMA or IRQ trouble?) mx27iat# pop wq checking: Playback status: inactive waiting: yes
Any hints are welcome, thanks!
Kind regards, Jürgen