All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yu-hsuan Hsu <yuhsuan@google.com>
To: htl10@users.sourceforge.net
Cc: alsa-devel@alsa-project.org, Yu-Hsuan Hsu <yuhsuan@chromium.org>
Subject: Re: [alsa-devel] alsa conformance test fails to run for playback (and works for capture)
Date: Fri, 18 Oct 2019 10:59:59 +0800	[thread overview]
Message-ID: <CAEy1m_CXrhr15RZz_Q+TiMGj4DMBbUV8sCobmmkhguYJWCw03Q@mail.gmail.com> (raw)
In-Reply-To: <2146461867.4835752.1571321696465@mail.yahoo.com>

Hi Hin-Tak,

How about using index instead? You should find the card index and device
index by running "aplay -l" command. The pcm format
is hw:{CARD_INDEX},{DEVICE_INDEX}.
See example part in
https://chromium.googlesource.com/chromiumos/platform/audiotest/+/refs/heads/master/alsa_conformance_test.md
for
more information.

Best,
Yu-Hsuan

On Thu, Oct 17, 2019 at 10:14 PM Hin-Tak Leung <htl10@users.sourceforge.net>
wrote:

> Hi Yu-Hsuan,
>
> I have encountered another problem with the alsa conformance test. It
> works for capture, but not for playback.
>
> The device is -
>
>
> http://wiki.seeedstudio.com/ReSpeaker_6-Mic_Circular_Array_kit_for_Raspberry_Pi/
>
> and running on a pi / raspbian buster.
>
> The actual message is:
>
> Fail - ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
> snd_pcm_open hw:CARD=seeed8micvoi: No such device
>
> I think the truncation is harmless .
>
> The actual device name according to aplay -L is
> "hw:CARD=seeed8micvoicec,DEV=0" and as I noted earlier, arecord -L shows it
> as "hw:CARD=seeed8micvoicec,DEV=0" also, and the comformance test running
> in CAPTURE mode works, just not in PLAYBACK mode.
>
> Is there anything I can do to look further?
>
> Since it says "invalid value", I tried deleting the parameters around line
> 190 of src/alsa_conformance_helper.c, but perhaps I should do something
> else?
>
> src/alsa_conformance_helper.c-191-    conformance_timer_start(timer,
> SND_PCM_OPEN);
> src/alsa_conformance_helper.c:192:    rc = snd_pcm_open(handle,
> src/alsa_conformance_helper.c-193-                      dev_name,
> src/alsa_conformance_helper.c-194-                      stream,
> src/alsa_conformance_helper.c-195-                      SND_PCM_NONBLOCK |
> src/alsa_conformance_helper.c-196-
> SND_PCM_NO_AUTO_RESAMPLE |
> src/alsa_conformance_helper.c-197-
> SND_PCM_NO_AUTO_CHANNELS |
> src/alsa_conformance_helper.c-198-
> SND_PCM_NO_AUTO_FORMAT);
> src/alsa_conformance_helper.c-199-    conformance_timer_stop(timer,
> SND_PCM_OPEN);
>
>
> Regards,
> Hin-Tak
>
>
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2019-10-18  3:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-17 14:14 [alsa-devel] alsa conformance test fails to run for playback (and works for capture) Hin-Tak Leung
2019-10-18  2:59 ` Yu-hsuan Hsu [this message]
2019-10-18 10:56   ` Hin-Tak Leung
2019-10-20 10:51     ` Yu-Hsuan Hsu
2019-10-21 13:57       ` Hin-Tak Leung
2019-10-22  3:11         ` Yu-Hsuan Hsu
2019-10-22  9:39           ` Hin-Tak Leung
2019-10-22 16:13             ` Yu-Hsuan Hsu
2019-10-23 10:06               ` Hin-Tak Leung

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=CAEy1m_CXrhr15RZz_Q+TiMGj4DMBbUV8sCobmmkhguYJWCw03Q@mail.gmail.com \
    --to=yuhsuan@google.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=htl10@users.sourceforge.net \
    --cc=yuhsuan@chromium.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.