USB sound card issues

Muni Sekhar munisekharrms at gmail.com
Mon Jun 14 13:03:39 CEST 2021


On Sat, Jun 12, 2021 at 5:16 AM Valdis Klētnieks
<valdis.kletnieks at vt.edu> wrote:
>
> On Tue, 08 Jun 2021 16:20:07 +0530, Muni Sekhar said:
>
> > $ arecord --device hw:1,0 --channels 1 --format S16_LE --rate 32000_Hz x.wav
> > Recording WAVE 'x.wav' : Signed 16 bit Little Endian, Rate 32000 Hz, Mono
> > arecord: pcm_read:2032: read error: Input/output error
>
> Always check the obvious stuff first  does the card support S16_LE 32Khz data?
Yes , it supports.
> And if it's configurable for multiple formats, was it set for the correct one?
Is there a way to verify whether it is set for the correct one or not?
>
> Does wireshark or other USB snoop program show any traffic at all?
usbmon log during arecord is attached to this email.

> Does the record die immediately, or hang for a few seconds and timeout?
What is the difference between these two ways? For my hardware, I
noticed that it hangs for a few seconds and gives EIO (arecord:
pcm_read:2032: read error: Input/output error).

> Does 'arecord -v' or arecord -vv' tell us anything more about the situation?
$ arecord -vv --device hw:1,0 --channels 1 --format S16_LE --rate
32000_Hz x.wav
Recording WAVE 'x.wav' : Signed 16 bit Little Endian, Rate 32000 Hz,
Mono Hardware PCM card 1 'BT_002' device 0 subdevice 0 Its setup is:
stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 1
  rate         : 32000
  exact rate   : 32000 (32000/1)
  msbits       : 16
  buffer_size  : 16000
  period_size  : 4000
  period_time  : 125000
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 4000
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 16000
  silence_threshold: 0
  silence_size : 0
  boundary     : 9007199254740992000
  appl_ptr     : 0
  hw_ptr       : 0 arecord: pcm_read:2032: read error: Input/output error



-- 
Thanks,
Sekhar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usbmon.out
Type: application/octet-stream
Size: 2051574 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210614/725ae241/attachment-0001.obj>


More information about the Alsa-devel mailing list