Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error

2018-08-28 Thread Takashi Iwai
On Tue, 28 Aug 2018 18:28:06 +0200,
Philipp Ludwig wrote:
> 
> In case anyone reads this, I fixed it myself:
> 
> 1., I upgraded to kernel 4.18.5 (has probably nothing to do with it).
> 
> 2., I updated the Firmware on the PX headphones.
> 
> 3. Then I commented out the complete quirk for the PX in
> "quirks-table.h", recompiled the snd-usb-audio module and loaded it.
> 
> 4. Connected the PX to the PC, but no sound yet - fiddled around with
> the settings in pavucontrol, no result.
> 
> 5. Then I turned the headphones off and one once.
> 
> 6. Then I switched the headphones profile in pavucontrol to "off", and
> then to "Analog Stereo output". Now I got sound.
> 
> This is reproducible, so I would call this fixed - having to switch the
> profile once is just a minor inconvenience.

Thanks for reporting.  So it seems that the new firmware is
incompatible and works without the quirk.  We need to sort it out.

Erik, do you have your device still with the old firmware?
If yes, what shows lsusb -v?  I suppose the first mixer unit is gone
in the new firmware.

Also Philipp, could you test whether both playback and capture work
without any quirk, and with all supported sample rates?  At best, test
directly like
  aplay -v -Dplughw:1 some-44100hz-samples.wav

supposing the card#1 is the USB device (see /proc/asound/cards).


thanks,

Takashi

> 
> Thanks for your support and all your dedicated work for the ALSA project
> everyone, have a nice week!
> 
> Best regards
> Philipp Ludwig
> 
> On 07/29/2018 12:55 PM, Philipp Ludwig wrote:
> > On 07/28/2018 10:09 PM, Clemens Ladisch via Alsa-user wrote:
> >> a...@philippludwig.net wrote:
> >>> usb 3-4: New USB device found, idVendor=19b5, idProduct=0021,
> >>> bcdDevice=25.20
> >>> usb 3-4: Product: PX USB
> >>> usb 3-4: Manufacturer: Bowers & Wilkins
> >>> snd-usb-audio: probe of 3-4:1.0 failed with error -22
> >>> usb 3-4: 2:1: cannot get min/max values for control 2 (id 2)
> >>> snd-usb-audio: probe of 3-4:1.1 failed with error -22
> >>>
> >>> Any advice on how I could debug this further?
> >>
> >> Please show the output of "lsusb -v" for this device.
> > 
> > Here it is:
> > 
> > Bus 003 Device 008: ID 19b5:0021 B & W Group
> > Device Descriptor:
> >   bLength    18
> >   bDescriptorType 1
> >   bcdUSB   2.00
> >   bDeviceClass    0 (Defined at Interface level)
> >   bDeviceSubClass 0
> >   bDeviceProtocol 0
> >   bMaxPacketSize0    64
> >   idVendor   0x19b5 B & W Group
> >   idProduct  0x0021
> >   bcdDevice   25.20
> >   iManufacturer   1 Bowers & Wilkins
> >   iProduct    2 PX USB
> >   iSerial 3 ABCDEF0123456789
> >   bNumConfigurations  1
> >   Configuration Descriptor:
> >     bLength 9
> >     bDescriptorType 2
> >     wTotalLength  153
> >     bNumInterfaces  3
> >     bConfigurationValue 1
> >     iConfiguration  0
> >     bmAttributes 0xc0
> >   Self Powered
> >     MaxPower  500mA
> >     Interface Descriptor:
> >   bLength 9
> >   bDescriptorType 4
> >   bInterfaceNumber    0
> >   bAlternateSetting   0
> >   bNumEndpoints   0
> >   bInterfaceClass 1 Audio
> >   bInterfaceSubClass  1 Control Device
> >   bInterfaceProtocol  0
> >   iInterface  0
> >   AudioControl Interface Descriptor:
> >     bLength 9
> >     bDescriptorType    36
> >     bDescriptorSubtype  1 (HEADER)
> >     bcdADC   1.00
> >     wTotalLength   43
> >     bInCollection   1
> >     baInterfaceNr( 0)   1
> >   AudioControl Interface Descriptor:
> >     bLength    12
> >     bDescriptorType    36
> >     bDescriptorSubtype  2 (INPUT_TERMINAL)
> >     bTerminalID 1
> >     wTerminalType  0x0101 USB Streaming
> >     bAssocTerminal  0
> >     bNrChannels 2
> >     wChannelConfig 0x0003
> >   Left Front (L)
> >   Right Front (R)
> >     iChannelNames   0
> >     iTerminal   0
> >   AudioControl Interface Descriptor:
> >     bLength    13
> >     bDescriptorType    36
> >     bDescriptorSubtype  6 (FEATURE_UNIT)
> >     bUnitID 2
> >     bSourceID   1
> >     bControlSize    2
> >     bmaControls( 0)  0x01
> >     bmaControls( 0)  0x00
> >   Mute Control
> >     bmaControls( 1)  0x02
> >     bmaControls( 1)  0x00
> >   Volume Control
> >     bmaControls( 2)  0x02
> >     bmaControls( 2)  0x00
> >   Volume Control
> >     iFeature    0
> >   AudioControl Interface Descriptor:
> >     bLength 

Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error

2018-08-28 Thread Philipp Ludwig
In case anyone reads this, I fixed it myself:

1., I upgraded to kernel 4.18.5 (has probably nothing to do with it).

2., I updated the Firmware on the PX headphones.

3. Then I commented out the complete quirk for the PX in
"quirks-table.h", recompiled the snd-usb-audio module and loaded it.

4. Connected the PX to the PC, but no sound yet - fiddled around with
the settings in pavucontrol, no result.

5. Then I turned the headphones off and one once.

6. Then I switched the headphones profile in pavucontrol to "off", and
then to "Analog Stereo output". Now I got sound.

This is reproducible, so I would call this fixed - having to switch the
profile once is just a minor inconvenience.

Thanks for your support and all your dedicated work for the ALSA project
everyone, have a nice week!

Best regards
Philipp Ludwig

On 07/29/2018 12:55 PM, Philipp Ludwig wrote:
> On 07/28/2018 10:09 PM, Clemens Ladisch via Alsa-user wrote:
>> a...@philippludwig.net wrote:
>>> usb 3-4: New USB device found, idVendor=19b5, idProduct=0021,
>>> bcdDevice=25.20
>>> usb 3-4: Product: PX USB
>>> usb 3-4: Manufacturer: Bowers & Wilkins
>>> snd-usb-audio: probe of 3-4:1.0 failed with error -22
>>> usb 3-4: 2:1: cannot get min/max values for control 2 (id 2)
>>> snd-usb-audio: probe of 3-4:1.1 failed with error -22
>>>
>>> Any advice on how I could debug this further?
>>
>> Please show the output of "lsusb -v" for this device.
> 
> Here it is:
> 
> Bus 003 Device 008: ID 19b5:0021 B & W Group
> Device Descriptor:
>   bLength    18
>   bDescriptorType 1
>   bcdUSB   2.00
>   bDeviceClass    0 (Defined at Interface level)
>   bDeviceSubClass 0
>   bDeviceProtocol 0
>   bMaxPacketSize0    64
>   idVendor   0x19b5 B & W Group
>   idProduct  0x0021
>   bcdDevice   25.20
>   iManufacturer   1 Bowers & Wilkins
>   iProduct    2 PX USB
>   iSerial 3 ABCDEF0123456789
>   bNumConfigurations  1
>   Configuration Descriptor:
>     bLength 9
>     bDescriptorType 2
>     wTotalLength  153
>     bNumInterfaces  3
>     bConfigurationValue 1
>     iConfiguration  0
>     bmAttributes 0xc0
>   Self Powered
>     MaxPower  500mA
>     Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
>   bInterfaceNumber    0
>   bAlternateSetting   0
>   bNumEndpoints   0
>   bInterfaceClass 1 Audio
>   bInterfaceSubClass  1 Control Device
>   bInterfaceProtocol  0
>   iInterface  0
>   AudioControl Interface Descriptor:
>     bLength 9
>     bDescriptorType    36
>     bDescriptorSubtype  1 (HEADER)
>     bcdADC   1.00
>     wTotalLength   43
>     bInCollection   1
>     baInterfaceNr( 0)   1
>   AudioControl Interface Descriptor:
>     bLength    12
>     bDescriptorType    36
>     bDescriptorSubtype  2 (INPUT_TERMINAL)
>     bTerminalID 1
>     wTerminalType  0x0101 USB Streaming
>     bAssocTerminal  0
>     bNrChannels 2
>     wChannelConfig 0x0003
>   Left Front (L)
>   Right Front (R)
>     iChannelNames   0
>     iTerminal   0
>   AudioControl Interface Descriptor:
>     bLength    13
>     bDescriptorType    36
>     bDescriptorSubtype  6 (FEATURE_UNIT)
>     bUnitID 2
>     bSourceID   1
>     bControlSize    2
>     bmaControls( 0)  0x01
>     bmaControls( 0)  0x00
>   Mute Control
>     bmaControls( 1)  0x02
>     bmaControls( 1)  0x00
>   Volume Control
>     bmaControls( 2)  0x02
>     bmaControls( 2)  0x00
>   Volume Control
>     iFeature    0
>   AudioControl Interface Descriptor:
>     bLength 9
>     bDescriptorType    36
>     bDescriptorSubtype  3 (OUTPUT_TERMINAL)
>     bTerminalID 3
>     wTerminalType  0x0301 Speaker
>     bAssocTerminal  0
>     bSourceID   2
>     iTerminal   0
>     Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
>   bInterfaceNumber    1
>   bAlternateSetting   0
>   bNumEndpoints   0
>   bInterfaceClass 1 Audio
>   bInterfaceSubClass  2 Streaming
>   bInterfaceProtocol  0
>   iInterface  0
>     Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
>   bInterfaceNumber    1
>   bAlternateSetting   1
>   bNumEndpoints   1
>   bInterfaceCl