Re: alsa conformance test fails to run for playback (and works for capture)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hin-Tak,

I finally found out the reason! It is because there is a length limit
of PCM name in ALSA conformance test.
I have increased it on
https://chromium-review.googlesource.com/c/chromiumos/platform/audiotest/+/1871792.
Waiting for the review and merge.
Thanks a lot for your catch!

Best,
Yu-Hsuan

Hin-Tak Leung <htl10@xxxxxxxxxxxxxxxxxxxxx> 於 2019年10月21日 週一 下午9:57寫道:
>
> On Sunday, 20 October 2019, 11:51:42 BST, Yu-Hsuan Hsu <yuhsuan@xxxxxxxxxxxx> wrote:
>
>
> > Hi Hin-Tak,
> > Maybe it is not the correct pcm name.  I guess the correct one is
> > "hw:seeed8micvoicec,0". Could you try it?
> > By the way, you can also use aplay -D {device_name} to make sure
> > whether the name is correct or not.
>
> > Best,
> > Yu-Hsuan
>
> Dear Yu-Hsuan,
>
> No "hw:seeed8micvoicec,0" did not work as input to the conformance test. As input to 'aplay -D', both the ,0 and without it sort of works.
> (it waits for input from stdin).
>
> When I actually gave it an channel file to play, both forms ('aplay -D hw:CARD=seeed8micvoicec ...' and 'aplay -D hw:CARD=seeed8micvoicec,0 ...') stopped with:
>
> Playing WAVE 'Untitled recording 2019-10-11 19.15.11.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Channels 6
> aplay: set_params:1339: Sample format non available
> Available formats:
> - S32_LE
>
> The interesting part of 'aplay -L' is (there is another device):
>
> sysdefault:CARD=seeed8micvoicec
> seeed-8mic-voicecard,
> Default Audio Device
> dmix:CARD=seeed8micvoicec,DEV=0
> seeed-8mic-voicecard,
> Direct sample mixing device
> dsnoop:CARD=seeed8micvoicec,DEV=0
> seeed-8mic-voicecard,
> Direct sample snooping device
> hw:CARD=seeed8micvoicec,DEV=0
> seeed-8mic-voicecard,
> Direct hardware device without any conversions
> plughw:CARD=seeed8micvoicec,DEV=0
> seeed-8mic-voicecard,
> Hardware device with all software conversions
> usbstream:CARD=seeed8micvoicec
> seeed-8mic-voicecard
> USB Stream Output
>
> As I mentioned at the beginning, 'arecord -L' and running the conformance test in CAPTURE mode using 'hw:CARD=seeed8micvoicec' works. It is PLAYBACK which does not.
>
> Regards,
> Hin-Tak
>
>
>
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux