On Sat, Jun 12, 2021 at 5:16 AM Valdis Klētnieks valdis.kletnieks@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