[alsa-devel] ASoC: "No soundcards found" but 'snd_soc_instantiate_card' succeeds afterwards

Takashi Iwai tiwai at suse.de
Thu Jun 16 12:41:58 CEST 2011


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]
> bus: 'platform': add driver mc13783-codec
> bus: 'platform': driver_probe_device: matched device mc13783-codec with 
> driver mc13783-codec
> bus: 'platform': really_probe: probing driver mc13783-codec with device 
> mc13783-codec
> mc13783-codec mc13783-codec: codec register mc13783-codec
> mc13783-codec mc13783-codec: dai register mc13783-codec #1
> Registered DAI 'mc13783-hifi'
> Registered codec 'mc13783-codec'
> driver: 'mc13783-codec': driver_bound: bound to device 'mc13783-codec'
> bus: 'platform': really_probe: bound device mc13783-codec to driver 
> mc13783-codec
> bus: 'platform': add driver imx-ssi
> bus: 'platform': driver_probe_device: matched device imx-ssi.0 with 
> driver imx-ssi
> bus: 'platform': really_probe: probing driver imx-ssi with device imx-ssi.0
> imx-ssi imx-ssi.0: dai register imx-ssi.0
> Registered DAI 'imx-ssi.0'
> Registering platform device 'imx-fiq-pcm-audio.0'. Parent at platform
> device: 'imx-fiq-pcm-audio.0': device_add
> bus: 'platform': add device imx-fiq-pcm-audio.0
> Registering platform device 'imx-pcm-audio.0'. Parent at platform
> device: 'imx-pcm-audio.0': device_add
> bus: 'platform': add device imx-pcm-audio.0
> driver: 'imx-ssi.0': driver_bound: bound to device 'imx-ssi'
> bus: 'platform': really_probe: bound device imx-ssi.0 to driver imx-ssi
> bus: 'platform': add driver imx-pcm-audio
> bus: 'platform': driver_probe_device: matched device imx-pcm-audio.0 
> with driver imx-pcm-audio
> bus: 'platform': really_probe: probing driver imx-pcm-audio with device 
> imx-pcm-audio.0
> imx-pcm-audio imx-pcm-audio.0: platform register imx-pcm-audio.0
> asoc: snd_soc_instantiate_cards
> Registered platform 'imx-pcm-audio.0'
> driver: 'imx-pcm-audio.0': driver_bound: bound to device 'imx-pcm-audio'
> bus: 'platform': really_probe: bound device imx-pcm-audio.0 to driver 
> imx-pcm-audio
> 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


More information about the Alsa-devel mailing list