Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error
Thanks for your help. I tested now various samplerates. Working: 48000 Hz, 96000 Hz, 192000 Hz Not working: 44100 Hz, 22050 Hz, 16000 Hz, 8000 Hz "Not working" means that aplay doesn't complain, but I can't hear anything. Hope that helps; if you guys need any additional tests, please let me know. On 08/31/2018 04:10 AM, Ralf Mardorf wrote: > On Fri, 31 Aug 2018 03:48:55 +0200, Ralf Mardorf wrote: >> On Thu, 30 Aug 2018 21:36:42 +0200, Philipp Ludwig wrote: >>> On 08/29/2018 07:20 AM, Takashi Iwai wrote: >>> Searching on the net for viable test files was without success, but >>> if you might have some files handy, I'm happy to test everything. >>> At least 48kHz seem to work. aplay -v -Dplughw:1 some-44100hz-samples.wav >> >> To get 44.1 KHz wavs e.g. use K3b to rip an audio CD. Use e.g. ffmpeg >> to convert a wav to 48 KHz. >> >> ffmpeg -i input.wav -ar 48000 output.wav > > Oops: > > On Thu, 30 Aug 2018 21:36:42 +0200, Philipp Ludwig wrote: >> Regarding playback, it seems that I got only 48kHz samples in >> /usr/share/sounds/alsa > > So it's even more simple: > > ffmpeg -i /usr/share/sounds/alsa/Noise.wav -ar 44100 /tmp/Noise_44100.wav > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Alsa-user mailing list > Alsa-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/alsa-user > pEpkey.asc Description: application/pgp-keys -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error
On Thu, 30 Aug 2018 21:36:42 +0200, Philipp Ludwig wrote: >On 08/29/2018 07:20 AM, Takashi Iwai wrote: >Searching on the net for viable test files was without success, but >if you might have some files handy, I'm happy to test everything. >At least 48kHz seem to work. >> aplay -v -Dplughw:1 some-44100hz-samples.wav To get 44.1 KHz wavs e.g. use K3b to rip an audio CD. Use e.g. ffmpeg to convert a wav to 48 KHz. ffmpeg -i input.wav -ar 48000 output.wav -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error
On Fri, 31 Aug 2018 03:48:55 +0200, Ralf Mardorf wrote: >On Thu, 30 Aug 2018 21:36:42 +0200, Philipp Ludwig wrote: >>On 08/29/2018 07:20 AM, Takashi Iwai wrote: >>Searching on the net for viable test files was without success, but >>if you might have some files handy, I'm happy to test everything. >>At least 48kHz seem to work. >>> aplay -v -Dplughw:1 some-44100hz-samples.wav > >To get 44.1 KHz wavs e.g. use K3b to rip an audio CD. Use e.g. ffmpeg >to convert a wav to 48 KHz. > >ffmpeg -i input.wav -ar 48000 output.wav Oops: On Thu, 30 Aug 2018 21:36:42 +0200, Philipp Ludwig wrote: >Regarding playback, it seems that I got only 48kHz samples in >/usr/share/sounds/alsa So it's even more simple: ffmpeg -i /usr/share/sounds/alsa/Noise.wav -ar 44100 /tmp/Noise_44100.wav -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error
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
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 >
Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error
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: bLength18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize064 idVendor 0x19b5 B & W Group idProduct 0x0021 bcdDevice 25.20 iManufacturer 1 Bowers & Wilkins iProduct2 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 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 1 Control Device bInterfaceProtocol 0 iInterface 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType36 bDescriptorSubtype 1 (HEADER) bcdADC 1.00 wTotalLength 43 bInCollection 1 baInterfaceNr( 0) 1 AudioControl Interface Descriptor: bLength12 bDescriptorType36 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: bLength13 bDescriptorType36 bDescriptorSubtype 6 (FEATURE_UNIT) bUnitID 2 bSourceID 1 bControlSize2 bmaControls( 0) 0x01 bmaControls( 0) 0x00 Mute Control bmaControls( 1) 0x02 bmaControls( 1) 0x00 Volume Control bmaControls( 2) 0x02 bmaControls( 2) 0x00 Volume Control iFeature0 AudioControl Interface Descriptor: bLength 9 bDescriptorType36 bDescriptorSubtype 3 (OUTPUT_TERMINAL) bTerminalID 3 wTerminalType 0x0301 Speaker bAssocTerminal 0 bSourceID 2 iTerminal 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber1 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber1 bAlternateSetting 1 bNumEndpoints 1 bInterfaceClass 1 Audio bInterfaceSubClass 2 Streaming bInterfaceProtocol 0 iInterface 0 AudioStreaming Interface Descriptor: bLength 7 bDescriptorType36 bDescriptorSubtype 1 (AS_GENERAL) bTerminalLink 1 bDelay 0 frames wFormatTag 1 PCM AudioStreaming Interface Descriptor: bLength26 bDescriptorType36 bDescriptorSubtype 2 (FORMAT_TYPE) bFormatType 1 (FORMAT_TYPE_I) bNrChannels 2 bSubframeSize 2 bBitResolution 16 bSamFreqType6 Discrete tSamFreq[ 0]48000 tSamFreq[ 1]44100 tSamFreq[ 2]32000 tSamFreq[ 3]22050 tSamFreq[ 4]16000 tSamFreq[ 5] 8000 AudioControl Endpoint Descriptor: bLength 7 bDescriptorType37 bDescriptorSubtype 1 (EP_GENERAL)
Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error
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. Regards, Clemens -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user