Re: uaudio0: audio descriptors make no sense, with Schiit Bifrost USB DAC

2013-09-10 Thread Remco
Martijn Rijkeboer wrote:

 I have a Schiit Bifrost USB DAC that includes an uaudio device for audio
 playback. When I plug the device in I'm getting uaudio0: audio
 descriptors make no sense, error=4. Any suggestions on how to make this
 work?

 Here are the relevant lines from usbdevs -v (debugging enabled for
 uaudio):

 Looks like the audio descriptor of your device doesn't match what
 uaudio(4) expects.  A quirk might be needed.  Could you please
 install the usbutils package and post the output of lsusb -v for
 your device?
 
 Below are the relevant lines of lsusb -v. Before I ran lsusb I've
 re-installed the system with current (i386).
 
 Bus 000 Device 002: ID 0d8c:0319 C-Media Electronics, Inc.
...
 Interface Descriptor:
   bLength 9
   bDescriptorType 4
   bInterfaceNumber0
   bAlternateSetting   0
   bNumEndpoints   1
   bInterfaceClass 1 Audio
   bInterfaceSubClass  1 Control Device
   bInterfaceProtocol 32
   iInterface  2 Schiit USB Audio Device
   AudioControl Interface Descriptor:
 bLength 9
 bDescriptorType36
 bDescriptorSubtype  1 (HEADER)
 -- bcdADC   2.00 --

If I'm interpreting this correctly your device is an USB Audio 2.0 device.
AFAICT there's currently no support for such a device in OpenBSD.



Re: uaudio0: audio descriptors make no sense, with Schiit Bifrost USB DAC

2013-09-10 Thread Martin Pieuchot
On 10/09/13(Tue) 08:17, Remco wrote:
 Martijn Rijkeboer wrote:
 
  I have a Schiit Bifrost USB DAC that includes an uaudio device for audio
  playback. When I plug the device in I'm getting uaudio0: audio
  descriptors make no sense, error=4. Any suggestions on how to make this
  work?
 
  Here are the relevant lines from usbdevs -v (debugging enabled for
  uaudio):
 
  Looks like the audio descriptor of your device doesn't match what
  uaudio(4) expects.  A quirk might be needed.  Could you please
  install the usbutils package and post the output of lsusb -v for
  your device?
  
  Below are the relevant lines of lsusb -v. Before I ran lsusb I've
  re-installed the system with current (i386).
  
  Bus 000 Device 002: ID 0d8c:0319 C-Media Electronics, Inc.
 ...
  Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber0
bAlternateSetting   0
bNumEndpoints   1
bInterfaceClass 1 Audio
bInterfaceSubClass  1 Control Device
bInterfaceProtocol 32
iInterface  2 Schiit USB Audio Device
AudioControl Interface Descriptor:
  bLength 9
  bDescriptorType36
  bDescriptorSubtype  1 (HEADER)
  -- bcdADC   2.00 --
 
 If I'm interpreting this correctly your device is an USB Audio 2.0 device.
 AFAICT there's currently no support for such a device in OpenBSD.

But it shouldn't be too hard to port the FreeBSD changes in our tree, if
anybody is motivated ;)

M.



Re: uaudio0: audio descriptors make no sense, with Schiit Bifrost USB DAC

2013-09-10 Thread Martijn Rijkeboer
 If I'm interpreting this correctly your device is an USB Audio 2.0
 device.
 AFAICT there's currently no support for such a device in OpenBSD.

I didn't know it wasn't supported, so thanks for the info.


 But it shouldn't be too hard to port the FreeBSD changes in our tree, if
 anybody is motivated ;)

Well I guess that anybody should be me, but I don't have the needed
kernel / device skills nor the time to learn them, which will probably mean
nothing will change in this area.

Kind regards,


Martijn Rijkeboer



Re: uaudio0: audio descriptors make no sense, with Schiit Bifrost USB DAC

2013-09-09 Thread Martin Pieuchot
On 07/09/13(Sat) 12:17, Martijn Rijkeboer wrote:
 Hi,
 
 I have a Schiit Bifrost USB DAC that includes an uaudio device for audio
 playback. When I plug the device in I'm getting uaudio0: audio
 descriptors make no sense, error=4. Any suggestions on how to make this
 work?
 
 Here are the relevant lines from usbdevs -v (debugging enabled for uaudio):

Looks like the audio descriptor of your device doesn't match what
uaudio(4) expects.  A quirk might be needed.  Could you please
install the usbutils package and post the output of lsusb -v for
your device?

Martin



Re: uaudio0: audio descriptors make no sense, with Schiit Bifrost USB DAC

2013-09-09 Thread James Griffin
!-- On Sat  7.Sep'13 at 11:17:56 BST, Martijn Rijkeboer (mart...@bunix.org), 
wrote: 

 Hi,
 
 I have a Schiit Bifrost USB DAC that includes an uaudio device for audio
 playback. When I plug the device in I'm getting uaudio0: audio
 descriptors make no sense, error=4. Any suggestions on how to make this
 work?
 
This is the error I have seen when my USB webcam is plugged in. It has a
built-in microphone, it's that component that generates the message. 

I posted the information to misc@ a couple of months back, using a
current snapshot. To-date, I have not been able to find a fix for it.

[ ... ]

-- 


James Griffin: jmz at kontrol.kode5.net 

A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38



Re: uaudio0: audio descriptors make no sense, with Schiit Bifrost USB DAC

2013-09-09 Thread Martijn Rijkeboer
 I have a Schiit Bifrost USB DAC that includes an uaudio device for audio
 playback. When I plug the device in I'm getting uaudio0: audio
 descriptors make no sense, error=4. Any suggestions on how to make this
 work?

 Here are the relevant lines from usbdevs -v (debugging enabled for
 uaudio):

 Looks like the audio descriptor of your device doesn't match what
 uaudio(4) expects.  A quirk might be needed.  Could you please
 install the usbutils package and post the output of lsusb -v for
 your device?

Below are the relevant lines of lsusb -v. Before I ran lsusb I've
re-installed the system with current (i386).

Bus 000 Device 002: ID 0d8c:0319 C-Media Electronics, Inc.
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass  239 Miscellaneous Device
  bDeviceSubClass 2 ?
  bDeviceProtocol 1 Interface Association
  bMaxPacketSize064
  idVendor   0x0d8c C-Media Electronics, Inc.
  idProduct  0x0319
  bcdDevice1.02
  iManufacturer   1 Schiit
  iProduct2 Schiit USB Audio Device
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength  298
bNumInterfaces  3
bConfigurationValue 1
iConfiguration  0
bmAttributes 0xc0
  Self Powered
MaxPower  100mA
Interface Association:
  bLength 8
  bDescriptorType11
  bFirstInterface 0
  bInterfaceCount 2
  bFunctionClass  1 Audio
  bFunctionSubClass   0
  bFunctionProtocol  32
  iFunction   0
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 1 Audio
  bInterfaceSubClass  1 Control Device
  bInterfaceProtocol 32
  iInterface  2 Schiit USB Audio Device
  AudioControl Interface Descriptor:
bLength 9
bDescriptorType36
bDescriptorSubtype  1 (HEADER)
bcdADC   2.00
bCategory  10
wTotalLength  256
bmControl0x00
  AudioControl Interface Descriptor:
bLength17
bDescriptorType36
bDescriptorSubtype  2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType  0x0101 USB Streaming
bAssocTerminal  0
bCSourceID 18
bNrChannels 0
bmChannelConfig   0x
bmControls0x0040
  Cluster Control (read-only)
iChannelNames   0
iTerminal   0
  AudioControl Interface Descriptor:
bLength12
bDescriptorType36
bDescriptorSubtype  3 (OUTPUT_TERMINAL)
bTerminalID 7
wTerminalType  0x0301 Speaker
bAssocTerminal  0
bSourceID  13
bCSourceID 18
bmControls 0x
iTerminal   0
  AudioControl Interface Descriptor:
bLength18
bDescriptorType36
bDescriptorSubtype  6 (FEATURE_UNIT)
bUnitID13
bSourceID   1
bmaControls( 0)  0x0003
  Mute Control (read/write)
bmaControls( 1)  0x
bmaControls( 2)  0x
iFeature0
  AudioControl Interface Descriptor:
bLength 8
bDescriptorType36
bDescriptorSubtype 10 (CLOCK_SOURCE)
bClockID   18
bmAttributes 0x03 Internal programmable Clock
bmControls   0x07
  Clock Frequency Control (read/write)
  Clock Validity Control (read-only)
bAssocTerminal  0
iClockSource0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x8f  EP 15 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0006  1x 6 bytes
bInterval   4
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber1
  bAlternateSetting   0
  bNumEndpoints   0
  bInterfaceClass 1 Audio
  bInterfaceSubClass  2 Streaming
  bInterfaceProtocol 32
  iInterface  4 Speaker-Schiit USB Audio Device
Interface Descriptor:
  bLength  

uaudio0: audio descriptors make no sense, with Schiit Bifrost USB DAC

2013-09-07 Thread Martijn Rijkeboer
Hi,

I have a Schiit Bifrost USB DAC that includes an uaudio device for audio
playback. When I plug the device in I'm getting uaudio0: audio
descriptors make no sense, error=4. Any suggestions on how to make this
work?

Here are the relevant lines from usbdevs -v (debugging enabled for uaudio):

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
 port 1 addr 2: high speed, power 100 mA, config 1, Schiit USB Audio
Device(0x0319), Schiit(0x0d8c), rev 1.02
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered


Here are the relevant lines from dmesg:

uaudio0 at uhub0 port 1 configuration 1 interface 0 Schiit Schiit USB Audio
Device rev 2.00/1.02 addr 2
uaudio_identify_ac: AC interface is 0
uaudio0: audio descriptors make no sense, error=4
uhidev0 at uhub0 port 1 configuration 1 interface 2 Schiit Schiit USB Audio
Device rev 2.00/1.02 addr 2
uhidev0: iclass 3/0
uhid0 at uhidev0: input=16, output=16, feature=0
ugen0 at uhub0 port 1 configuration 1 Schiit Schiit USB Audio Device rev
2.00/1.02 addr 2


Here is the uname -a output:

OpenBSD goofy.bunix.org 5.3 GENERIC#0 i386


Kind regards,


Martijn Rijkeboer