All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <lrg@ti.com>
To: hong zhang <henryzhang62@yahoo.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: asoc: no valid backend routes for PCM: SDP4430 Media
Date: Thu, 9 Jun 2011 18:48:27 +0100	[thread overview]
Message-ID: <4DF1076B.70308@ti.com> (raw)
In-Reply-To: <755530.75651.qm@web161714.mail.bf1.yahoo.com>

On 09/06/11 18:45, hong zhang wrote:
> Liam,
> 
> Arecord gets data from DMIC! Using following commands.
> 
> "arecord -f dat -D plughw:0,0 dmic.wav" with "amixer cset numid=61 1 and
> amixer cset numid=60 2" to get data from DMIC after turning off two analog captures.
> 
> Information from "arecrod -l" is not sync with ABE routing table. For example, "arecord -l" indicates hw:0,10 is DMIC capture but 
> ABE diagram indicates plughw:0,0 can be used for DMIC input.
> 
> Are "arecord -l" and "aplay -l" still useful?

Yes, but not for OMAP4 atm.

Thanks

Liam

> 
> ---henry
> 
> 
> --- On Thu, 6/9/11, Liam Girdwood <lrg@ti.com> wrote:
> 
>> From: Liam Girdwood <lrg@ti.com>
>> Subject: Re: [alsa-devel] asoc: no valid backend routes for PCM: SDP4430 Media
>> To: "hong zhang" <henryzhang62@yahoo.com>
>> Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
>> Date: Thursday, June 9, 2011, 4:42 AM
>> Hi Henry,
>>
>> On 08/06/11 20:08, hong zhang wrote:
>>> Liam,
>>>
>>> I have downloaded kernel tar ball. Three questions
>> need your help.
>>>
>>> 1. which defconfig should be used in
>> arch/arm/configs?
>>>     I do not see OMAP4 for SDP4430 (blaze
>> board). Panda does not have DMIC 
>>>     only blaze has it.
>>>
>>
>> There is an omap2plus defconfig.
>>
>>> 2. On blaze board, I have to turn off two analog
>> captures and leave DMIC open. Can you verify my gst-launch
>> is correct? I cannot capture voice from DMIC on OMAP4 blaze
>> board us it.
>>>
>>>     gst-launch-0.10 -v alsasrc
>> num-buffers=1000 !
>> 'audio/x-raw-int,rate=8000,channels=1,endianness=1234,width=16,depth=16'
>> ! audioconvert ! wavenc! filesink
>> location=/home/normanc/Desktop/8000.wav
>>>
>>> 3. If I specify DMIC device, command is rejected.
>>>
>>> gst-launch-0.10 -v alsasrc device="hw:0,10"
>> num-buffers=1000 ! 'audio/x-raw-int,
>> rate=8000,channels=1,endianness=1234,width=16,depth=16' !
>> audioconvert ! wavenc! filesink
>> location=/home/normanc/Desktop/8000.wav
>>>
>>
>> The easiest thing todo first is to get arecord working. Use
>> hw:0,1 for DMIC and make sure you use alsamixer to configure
>> the correct audio paths for DMIC to hw:0,1.
>>
>>> TI support team in France says item 2 should work for
>> DMIC. But I simply could not get it. TI team says item 2
>> works for "official release 2.6.35-990-omap4 #9".
>>>
>>> I have spent 1 week on it with 2.6.35-990-omap4 #9
>>>
>>> Please advise!
>>>
>>
>> It does look like you have not configured the audio route
>> here for the DMIC to hw:0,1. Use the ABE diagram to create
>> your route with alsamixer.
>>
>> Liam
>>
>>> Thanks.
>>>
>>> ---henry
>>>
>>> --- On Wed, 6/8/11, Liam Girdwood <lrg@ti.com> wrote:
>>>
>>>> From: Liam Girdwood <lrg@ti.com>
>>>> Subject: Re: [alsa-devel] asoc: no valid backend
>> routes for PCM: SDP4430 Media
>>>> To: "hong zhang" <henryzhang62@yahoo.com>
>>>> Cc: "alsa-devel@alsa-project.org"
>> <alsa-devel@alsa-project.org>
>>>> Date: Wednesday, June 8, 2011, 9:22 AM
>>>> On 07/06/11 20:59, hong zhang wrote:
>>>>> Liam,
>>>>>
>>>>> Actually, I could not prove DMIC on OMAP4
>> blaze board
>>>> is working in both kernel 2.6.35 and 2.6.38 using
>> arecord
>>>> and gstreamer-alsa.
>>>>>
>>>>> In 2.6.35, arecord returns 44 bytes with read
>> error
>>>>> In 2.6.38, arecord collects native data.
>>>>>
>>>>> Gstreamer-alsa could not get voice after
>> turning off
>>>> analog captures using amixer. 
>>>>>
>>>>> Any information regarding DMIC on OMAP4? I see
>> people
>>>> send DMIC patch to 2.6.38.
>>>>>
>>>>
>>>> DMIC works on OMAP4, can you try my branch :-
>>>>
>>>> https://gitorious.org/omap-audio/linux-audio/commits/lrg/topic/omap-asoc-next-3.1
>>>>
>>>> Liam
>>>>
>>>>
>>
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>>

  reply	other threads:[~2011-06-09 17:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07  0:13 asoc: no valid backend routes for PCM: SDP4430 Media hong zhang
2011-06-07  8:38 ` Liam Girdwood
2011-06-07 19:59   ` hong zhang
2011-06-08 14:22     ` Liam Girdwood
2011-06-08 19:08       ` hong zhang
2011-06-09  9:42         ` Liam Girdwood
2011-06-09 17:45           ` hong zhang
2011-06-09 17:48             ` Liam Girdwood [this message]
2011-06-09 17:52               ` hong zhang
2011-08-19  7:53                 ` asoc: no valid backend routes for PCM Sarika
2011-08-19 16:20                   ` Liam Girdwood
     [not found]                     ` <CAHgabbYxe-mzwhxiivj5Xmqdq3FQuZ3ZFhgU4wy_bCosm2BhwA@mail.gmail.com>
2011-08-22 10:54                       ` Liam Girdwood

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=4DF1076B.70308@ti.com \
    --to=lrg@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=henryzhang62@yahoo.com \
    /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.