Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hin-Tak Leung <htl10@users.sourceforge.net>
To: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Cc: alsa-devel@alsa-project.org
Subject: [alsa-devel] alsa conformance test fails to run for playback (and works for capture)
Date: Thu, 17 Oct 2019 14:14:56 +0000 (UTC)	[thread overview]
Message-ID: <2146461867.4835752.1571321696465@mail.yahoo.com> (raw)

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-17 14:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-17 14:14 Hin-Tak Leung [this message]
2019-10-18  2:59 ` [alsa-devel] alsa conformance test fails to run for playback (and works for capture) Yu-hsuan Hsu
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=2146461867.4835752.1571321696465@mail.yahoo.com \
    --to=htl10@users.sourceforge.net \
    --cc=alsa-devel@alsa-project.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox