All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lambrecht Jürgen" <J.Lambrecht@TELEVIC.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Fabio-R49496 <R49496@freescale.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Estevam@alsa-project.org, Sascha Hauer <s.hauer@pengutronix.de>
Subject: Re: ASoC: "No soundcards found" but 'snd_soc_instantiate_card' succeeds afterwards
Date: Fri, 17 Jun 2011 15:50:49 +0200	[thread overview]
Message-ID: <4DFB5BB9.1060300@televic.com> (raw)
In-Reply-To: <s5hfwna83d5.wl%tiwai@suse.de>

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

-- 
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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

      reply	other threads:[~2011-06-17 13:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14 14:54 ASoC: "No soundcards found" but 'snd_soc_instantiate_card' succeeds afterwards Lambrecht Jürgen
2011-06-16 10:41 ` Takashi Iwai
2011-06-17 13:50   ` Lambrecht Jürgen [this message]

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=4DFB5BB9.1060300@televic.com \
    --to=j.lambrecht@televic.com \
    --cc=Estevam@alsa-project.org \
    --cc=R49496@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=s.hauer@pengutronix.de \
    --cc=tiwai@suse.de \
    /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.