kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* USB sound card issues
@ 2021-06-08 10:50 Muni Sekhar
  2021-06-08 11:14 ` Greg KH
  2021-06-11 23:46 ` Valdis Klētnieks
  0 siblings, 2 replies; 10+ messages in thread
From: Muni Sekhar @ 2021-06-08 10:50 UTC (permalink / raw)
  To: linux-sound, linux-usb, alsa-devel, kernelnewbies

Hi all,

I am using a USB sound card(snd-usb-audio), and it fails while doing
the audio recording "arecord: pcm_read:2032: read error: Input/output
error".

What could be the problem? and is there a workaround for this?

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: BT_AG [BT_002], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


$ 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

-- 
Thanks,
Sekhar

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-08 10:50 USB sound card issues Muni Sekhar
@ 2021-06-08 11:14 ` Greg KH
  2021-06-08 12:14   ` Muni Sekhar
  2021-06-11 23:46 ` Valdis Klētnieks
  1 sibling, 1 reply; 10+ messages in thread
From: Greg KH @ 2021-06-08 11:14 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies

On Tue, Jun 08, 2021 at 04:20:07PM +0530, Muni Sekhar wrote:
> Hi all,
> 
> I am using a USB sound card(snd-usb-audio), and it fails while doing
> the audio recording "arecord: pcm_read:2032: read error: Input/output
> error".
> 
> What could be the problem? and is there a workaround for this?
> 
> $ arecord -l
> **** List of CAPTURE Hardware Devices ****
> card 1: BT_AG [BT_002], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> 
> $ 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

What kernel version is this, and what other kernel messages are printed
when you plug your device in?

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-08 11:14 ` Greg KH
@ 2021-06-08 12:14   ` Muni Sekhar
  2021-06-08 12:31     ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Muni Sekhar @ 2021-06-08 12:14 UTC (permalink / raw)
  To: Greg KH; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 2363 bytes --]

On Tue, Jun 8, 2021 at 4:44 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Tue, Jun 08, 2021 at 04:20:07PM +0530, Muni Sekhar wrote:
> > Hi all,
> >
> > I am using a USB sound card(snd-usb-audio), and it fails while doing
> > the audio recording "arecord: pcm_read:2032: read error: Input/output
> > error".
> >
> > What could be the problem? and is there a workaround for this?
> >
> > $ arecord -l
> > **** List of CAPTURE Hardware Devices ****
> > card 1: BT_AG [BT_002], device 0: USB Audio [USB Audio]
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> >
> >
> > $ 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
>
> What kernel version is this, and what other kernel messages are printed
> when you plug your device in?
[12932.016672] usb 2-1: USB disconnect, device number 5
[12932.016683] usb 2-1.1: USB disconnect, device number 6
[12962.085766] usb 2-1: new full-speed USB device number 7 using xhci_hcd
[12962.275849] usb 2-1: New USB device found, idVendor=0a12, idProduct=4010
[12962.275861] usb 2-1: New USB device strings: Mfr=0, Product=0,
SerialNumber=0
[12962.276538] usb 2-1: ep 0x81 - rounding interval to 1024 microframes, ep
desc says 2040 microframes
[12962.279699] hub 2-1:1.0: USB hub found
[12962.280663] hub 2-1:1.0: 4 ports detected
[12962.875024] usb 2-1.1: new full-speed USB device number 8 using xhci_hcd
[12962.980977] usb 2-1.1: New USB device found, idVendor=0a12,
idProduct=4007
[12962.980991] usb 2-1.1: New USB device strings: Mfr=1, Product=2,
SerialNumber=5
[12962.981000] usb 2-1.1: Product: BT_002
[12962.981008] usb 2-1.1: Manufacturer: Qualcomm
[12962.981015] usb 2-1.1: SerialNumber: ABC4C25B
[12962.992667] input: Qualcomm BT_002 as
/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A12:4007.0003/input/input6
[12963.048083] hid-generic 0003:0A12:4007.0003: input,hiddev0,hidraw0: USB
HID v1.11 Device [Qualcomm BT_002] on usb-0000:00:14.0-1.1/input0
[12963.066910] hid-generic 0003:0A12:4007.0004: hiddev0,hidraw1: USB HID
v1.11 Device [Qualcomm BT_002] on usb-0000:00:14.0-1.1/input1

Same error (arecord: pcm_read:2032: read error: Input/output error)
observed on 4.4, 4.15 and 5.4 kernel version.
>
> thanks,
>
> greg k-h

[-- Attachment #1.2: Type: text/html, Size: 2883 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-08 12:14   ` Muni Sekhar
@ 2021-06-08 12:31     ` Greg KH
  2021-06-08 12:45       ` Muni Sekhar
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2021-06-08 12:31 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies

On Tue, Jun 08, 2021 at 05:44:42PM +0530, Muni Sekhar wrote:
> On Tue, Jun 8, 2021 at 4:44 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Tue, Jun 08, 2021 at 04:20:07PM +0530, Muni Sekhar wrote:
> > > Hi all,
> > >
> > > I am using a USB sound card(snd-usb-audio), and it fails while doing
> > > the audio recording "arecord: pcm_read:2032: read error: Input/output
> > > error".
> > >
> > > What could be the problem? and is there a workaround for this?
> > >
> > > $ arecord -l
> > > **** List of CAPTURE Hardware Devices ****
> > > card 1: BT_AG [BT_002], device 0: USB Audio [USB Audio]
> > >   Subdevices: 1/1
> > >   Subdevice #0: subdevice #0
> > >
> > >
> > > $ 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
> >
> > What kernel version is this, and what other kernel messages are printed
> > when you plug your device in?


What kernel version is this?

> [12932.016672] usb 2-1: USB disconnect, device number 5
> [12932.016683] usb 2-1.1: USB disconnect, device number 6
> [12962.085766] usb 2-1: new full-speed USB device number 7 using xhci_hcd
> [12962.275849] usb 2-1: New USB device found, idVendor=0a12, idProduct=4010
> [12962.275861] usb 2-1: New USB device strings: Mfr=0, Product=0,
> SerialNumber=0
> [12962.276538] usb 2-1: ep 0x81 - rounding interval to 1024 microframes, ep
> desc says 2040 microframes
> [12962.279699] hub 2-1:1.0: USB hub found
> [12962.280663] hub 2-1:1.0: 4 ports detected
> [12962.875024] usb 2-1.1: new full-speed USB device number 8 using xhci_hcd
> [12962.980977] usb 2-1.1: New USB device found, idVendor=0a12,
> idProduct=4007
> [12962.980991] usb 2-1.1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=5
> [12962.981000] usb 2-1.1: Product: BT_002
> [12962.981008] usb 2-1.1: Manufacturer: Qualcomm
> [12962.981015] usb 2-1.1: SerialNumber: ABC4C25B
> [12962.992667] input: Qualcomm BT_002 as
> /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A12:4007.0003/input/input6
> [12963.048083] hid-generic 0003:0A12:4007.0003: input,hiddev0,hidraw0: USB
> HID v1.11 Device [Qualcomm BT_002] on usb-0000:00:14.0-1.1/input0
> [12963.066910] hid-generic 0003:0A12:4007.0004: hiddev0,hidraw1: USB HID
> v1.11 Device [Qualcomm BT_002] on usb-0000:00:14.0-1.1/input1
> 
> Same error (arecord: pcm_read:2032: read error: Input/output error)
> observed on 4.4, 4.15 and 5.4 kernel version.

What exact versions of these are you using?

And what about the latest 5.12.y release?

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-08 12:31     ` Greg KH
@ 2021-06-08 12:45       ` Muni Sekhar
  2021-06-08 13:03         ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Muni Sekhar @ 2021-06-08 12:45 UTC (permalink / raw)
  To: Greg KH; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies

On Tue, Jun 8, 2021 at 6:02 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Tue, Jun 08, 2021 at 05:44:42PM +0530, Muni Sekhar wrote:
> > On Tue, Jun 8, 2021 at 4:44 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> > >
> > > On Tue, Jun 08, 2021 at 04:20:07PM +0530, Muni Sekhar wrote:
> > > > Hi all,
> > > >
> > > > I am using a USB sound card(snd-usb-audio), and it fails while doing
> > > > the audio recording "arecord: pcm_read:2032: read error: Input/output
> > > > error".
> > > >
> > > > What could be the problem? and is there a workaround for this?
> > > >
> > > > $ arecord -l
> > > > **** List of CAPTURE Hardware Devices ****
> > > > card 1: BT_AG [BT_002], device 0: USB Audio [USB Audio]
> > > >   Subdevices: 1/1
> > > >   Subdevice #0: subdevice #0
> > > >
> > > >
> > > > $ 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
> > >
> > > What kernel version is this, and what other kernel messages are printed
> > > when you plug your device in?
>
>
> What kernel version is this?
4.15.0-54-generic

>
> > [12932.016672] usb 2-1: USB disconnect, device number 5
> > [12932.016683] usb 2-1.1: USB disconnect, device number 6
> > [12962.085766] usb 2-1: new full-speed USB device number 7 using xhci_hcd
> > [12962.275849] usb 2-1: New USB device found, idVendor=0a12, idProduct=4010
> > [12962.275861] usb 2-1: New USB device strings: Mfr=0, Product=0,
> > SerialNumber=0
> > [12962.276538] usb 2-1: ep 0x81 - rounding interval to 1024 microframes, ep
> > desc says 2040 microframes
> > [12962.279699] hub 2-1:1.0: USB hub found
> > [12962.280663] hub 2-1:1.0: 4 ports detected
> > [12962.875024] usb 2-1.1: new full-speed USB device number 8 using xhci_hcd
> > [12962.980977] usb 2-1.1: New USB device found, idVendor=0a12,
> > idProduct=4007
> > [12962.980991] usb 2-1.1: New USB device strings: Mfr=1, Product=2,
> > SerialNumber=5
> > [12962.981000] usb 2-1.1: Product: BT_002
> > [12962.981008] usb 2-1.1: Manufacturer: Qualcomm
> > [12962.981015] usb 2-1.1: SerialNumber: ABC4C25B
> > [12962.992667] input: Qualcomm BT_002 as
> > /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A12:4007.0003/input/input6
> > [12963.048083] hid-generic 0003:0A12:4007.0003: input,hiddev0,hidraw0: USB
> > HID v1.11 Device [Qualcomm BT_002] on usb-0000:00:14.0-1.1/input0
> > [12963.066910] hid-generic 0003:0A12:4007.0004: hiddev0,hidraw1: USB HID
> > v1.11 Device [Qualcomm BT_002] on usb-0000:00:14.0-1.1/input1
> >
> > Same error (arecord: pcm_read:2032: read error: Input/output error)
> > observed on 4.4, 4.15 and 5.4 kernel version.
>
> What exact versions of these are you using?
4.4.0-66-generic
4.15.0-54-generic
Ubuntu 20.04

>
> And what about the latest 5.12.y release?
I don't have this test setup.



>
> thanks,
>
> greg k-h



-- 
Thanks,
Sekhar

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-08 12:45       ` Muni Sekhar
@ 2021-06-08 13:03         ` Greg KH
  0 siblings, 0 replies; 10+ messages in thread
From: Greg KH @ 2021-06-08 13:03 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies

On Tue, Jun 08, 2021 at 06:15:57PM +0530, Muni Sekhar wrote:
> On Tue, Jun 8, 2021 at 6:02 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Tue, Jun 08, 2021 at 05:44:42PM +0530, Muni Sekhar wrote:
> > > On Tue, Jun 8, 2021 at 4:44 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> > > >
> > > > On Tue, Jun 08, 2021 at 04:20:07PM +0530, Muni Sekhar wrote:
> > > > > Hi all,
> > > > >
> > > > > I am using a USB sound card(snd-usb-audio), and it fails while doing
> > > > > the audio recording "arecord: pcm_read:2032: read error: Input/output
> > > > > error".
> > > > >
> > > > > What could be the problem? and is there a workaround for this?
> > > > >
> > > > > $ arecord -l
> > > > > **** List of CAPTURE Hardware Devices ****
> > > > > card 1: BT_AG [BT_002], device 0: USB Audio [USB Audio]
> > > > >   Subdevices: 1/1
> > > > >   Subdevice #0: subdevice #0
> > > > >
> > > > >
> > > > > $ 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
> > > >
> > > > What kernel version is this, and what other kernel messages are printed
> > > > when you plug your device in?
> >
> >
> > What kernel version is this?
> 4.15.0-54-generic
> 
> >
> > > [12932.016672] usb 2-1: USB disconnect, device number 5
> > > [12932.016683] usb 2-1.1: USB disconnect, device number 6
> > > [12962.085766] usb 2-1: new full-speed USB device number 7 using xhci_hcd
> > > [12962.275849] usb 2-1: New USB device found, idVendor=0a12, idProduct=4010
> > > [12962.275861] usb 2-1: New USB device strings: Mfr=0, Product=0,
> > > SerialNumber=0
> > > [12962.276538] usb 2-1: ep 0x81 - rounding interval to 1024 microframes, ep
> > > desc says 2040 microframes
> > > [12962.279699] hub 2-1:1.0: USB hub found
> > > [12962.280663] hub 2-1:1.0: 4 ports detected
> > > [12962.875024] usb 2-1.1: new full-speed USB device number 8 using xhci_hcd
> > > [12962.980977] usb 2-1.1: New USB device found, idVendor=0a12,
> > > idProduct=4007
> > > [12962.980991] usb 2-1.1: New USB device strings: Mfr=1, Product=2,
> > > SerialNumber=5
> > > [12962.981000] usb 2-1.1: Product: BT_002
> > > [12962.981008] usb 2-1.1: Manufacturer: Qualcomm
> > > [12962.981015] usb 2-1.1: SerialNumber: ABC4C25B
> > > [12962.992667] input: Qualcomm BT_002 as
> > > /devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0A12:4007.0003/input/input6
> > > [12963.048083] hid-generic 0003:0A12:4007.0003: input,hiddev0,hidraw0: USB
> > > HID v1.11 Device [Qualcomm BT_002] on usb-0000:00:14.0-1.1/input0
> > > [12963.066910] hid-generic 0003:0A12:4007.0004: hiddev0,hidraw1: USB HID
> > > v1.11 Device [Qualcomm BT_002] on usb-0000:00:14.0-1.1/input1
> > >
> > > Same error (arecord: pcm_read:2032: read error: Input/output error)
> > > observed on 4.4, 4.15 and 5.4 kernel version.
> >
> > What exact versions of these are you using?
> 4.4.0-66-generic
> 4.15.0-54-generic

These are all Ubuntu-provided kernels, we have no idea what is really in
them, sorry.

I would ask for support from that distro please.

good luck!

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-08 10:50 USB sound card issues Muni Sekhar
  2021-06-08 11:14 ` Greg KH
@ 2021-06-11 23:46 ` Valdis Klētnieks
  2021-06-12 11:15   ` Muni Sekhar
  1 sibling, 1 reply; 10+ messages in thread
From: Valdis Klētnieks @ 2021-06-11 23:46 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 643 bytes --]

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?
And if it's configurable for multiple formats, was it set for the correct one?

Does wireshark or other USB snoop program show any traffic at all?
Does the record die immediately, or hang for a few seconds and timeout?
Does 'arecord -v' or arecord -vv' tell us anything more about the situation?

[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-11 23:46 ` Valdis Klētnieks
@ 2021-06-12 11:15   ` Muni Sekhar
  2021-06-15  6:14     ` Valdis Klētnieks
  0 siblings, 1 reply; 10+ messages in thread
From: Muni Sekhar @ 2021-06-12 11:15 UTC (permalink / raw)
  To: Valdis Klētnieks; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies

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 was it set for the correct one or not?
>
> Does wireshark or other USB snoop program show any traffic at all?
> 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?



-- 
Thanks,
Sekhar

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-12 11:15   ` Muni Sekhar
@ 2021-06-15  6:14     ` Valdis Klētnieks
  2021-06-15  7:00       ` Muni Sekhar
  0 siblings, 1 reply; 10+ messages in thread
From: Valdis Klētnieks @ 2021-06-15  6:14 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 975 bytes --]

On Sat, 12 Jun 2021 16:45:00 +0530, Muni Sekhar said:

> > And if it's configurable for multiple formats, was it set for the correct one?
> Is there a way to verify was it set for the correct one or not?

arecord -v gives what it thinks the setup is.

> > Does the record die immediately, or hang for a few seconds and timeout?
> What is the difference between these two ways?

An immediate failure is usually related to a "Can't do it" situation where the
USB interaction to configure the device has failed, while a timeout usually
indicates that the configuration at least *claimed* to succeed, but is failing
to properly transfer valid data.

> For my hardware, I noticed that it hangs for a few seconds and gives EIO (arecord:
> pcm_read:2032: read error: Input/output error).

Given that the usbmon output ran to several megabytes, that's tending to
point at "the card was returning lots of packets, but they weren't actually the
format/data that arecord was expecting.

[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: USB sound card issues
  2021-06-15  6:14     ` Valdis Klētnieks
@ 2021-06-15  7:00       ` Muni Sekhar
  0 siblings, 0 replies; 10+ messages in thread
From: Muni Sekhar @ 2021-06-15  7:00 UTC (permalink / raw)
  To: Valdis Klētnieks; +Cc: alsa-devel, linux-usb, linux-sound, kernelnewbies

On Tue, Jun 15, 2021 at 11:44 AM Valdis Klētnieks
<valdis.kletnieks@vt.edu> wrote:
>
> On Sat, 12 Jun 2021 16:45:00 +0530, Muni Sekhar said:
>
> > > And if it's configurable for multiple formats, was it set for the correct one?
> > Is there a way to verify was it set for the correct one or not?
>
> arecord -v gives what it thinks the setup is.
>
> > > Does the record die immediately, or hang for a few seconds and timeout?
> > What is the difference between these two ways?
>
> An immediate failure is usually related to a "Can't do it" situation where the
> USB interaction to configure the device has failed, while a timeout usually
> indicates that the configuration at least *claimed* to succeed, but is failing
> to properly transfer valid data.
>
> > For my hardware, I noticed that it hangs for a few seconds and gives EIO (arecord:
> > pcm_read:2032: read error: Input/output error).
>
> Given that the usbmon output ran to several megabytes, that's tending to
> point at "the card was returning lots of packets, but they weren't actually the
> format/data that arecord was expecting.
So, is it a USB card issue?



-- 
Thanks,
Sekhar

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-15  7:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-08 10:50 USB sound card issues Muni Sekhar
2021-06-08 11:14 ` Greg KH
2021-06-08 12:14   ` Muni Sekhar
2021-06-08 12:31     ` Greg KH
2021-06-08 12:45       ` Muni Sekhar
2021-06-08 13:03         ` Greg KH
2021-06-11 23:46 ` Valdis Klētnieks
2021-06-12 11:15   ` Muni Sekhar
2021-06-15  6:14     ` Valdis Klētnieks
2021-06-15  7:00       ` Muni Sekhar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).