From: "Lambrecht Jürgen" <J.Lambrecht@TELEVIC.com>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: ASoC: "No soundcards found" but 'snd_soc_instantiate_card' succeeds afterwards
Date: Tue, 14 Jun 2011 16:54:42 +0200 [thread overview]
Message-ID: <4DF77632.8070105@televic.com> (raw)
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);'
[start]
Registering platform device 'soc-audio'. Parent at platform
device: 'soc-audio': device_add
bus: 'platform': add device soc-audio
bus: 'platform': driver_probe_device: matched device soc-audio with
driver soc-audio
bus: 'platform': really_probe: probing driver soc-audio with device
soc-audio
asoc: snd_soc_instantiate_card iMX-mc13783-audio
soc-audio soc-audio: binding MC13783 Playback at idx 0
soc-audio soc-audio: binding MC13783 Capture at idx 1
asoc: created sound card for card iMX-mc13783-audio
asoc: sound card iMX-mc13783-audio probed
soc-audio soc-audio: probe iMX-mc13783-audio dai link 0
device: 'MC13783 Playback': device_add
soc-audio soc-audio: registered pcm #0 Playback mc13783-hifi-0
asoc: mc13783-hifi <-> imx-ssi.0 mapping ok
asoc: sound card iMX-mc13783-audio instantiated
soc-audio soc-audio: probe iMX-mc13783-audio dai link 1
device: 'MC13783 Capture': device_add
soc-audio soc-audio: registered pcm #1 Capture mc13783-hifi-1
asoc: mc13783-hifi <-> imx-ssi.0 mapping ok
asoc: sound card iMX-mc13783-audio instantiated
device: 'card0': device_add
device: 'pcmC0D1p': device_add
device: 'pcmC0D1c': device_add
device: 'adsp': device_add
device: 'pcmC0D0p': device_add
device: 'pcmC0D0c': device_add
device: 'dsp': device_add
device: 'audio': device_add
device: 'controlC0': device_add
device: 'mixer': device_add
asoc: sound card iMX-mc13783-audio registered
[end]
Regards,
Jürgen
P.S.: to enable pr_debug and dev_dbg I had to add them myself in
soc-core.c (see my previous mail)
--
Jürgen Lambrecht
R&D Associate
Tel: +32 (0)51 303045 Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk
next reply other threads:[~2011-06-14 14:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 14:54 Lambrecht Jürgen [this message]
2011-06-16 10:41 ` ASoC: "No soundcards found" but 'snd_soc_instantiate_card' succeeds afterwards Takashi Iwai
2011-06-17 13:50 ` Lambrecht Jürgen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DF77632.8070105@televic.com \
--to=j.lambrecht@televic.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.