Re: [Alsa-user] No USB sound since kernel 3.5

2012-10-07 Thread Daniel Mack
On 05.10.2012 20:29, Stephan Seitz wrote:
 On Fri, Oct 05, 2012 at 04:59:07PM +0200, Daniel Mack wrote:
 Hmm, I would have thought this is fixed in 3.6 finally. Can you provide
 the output of lsusb -v and your dmesg log please?
 
 Yes, of course. This is from a 3.4 kernel:
 
 dmesg:
 [60899.160023] usb 8-2: new full-speed USB device number 4 using uhci_hcd
 [60899.222067] hub 8-0:1.0: unable to enumerate USB device on port 2
 [64403.432054] usb 6-2: new full-speed USB device number 5 using uhci_hcd
 [64403.704103] usb 6-2: config 1 interface 5 has no altsetting 3
 [64403.724665] usb 6-2: New USB device found, idVendor=0763, idProduct=2003
 [64403.724671] usb 6-2: New USB device strings: Mfr=1, Product=2, 
 SerialNumber=0
 [64403.724675] usb 6-2: Product: Audiophile USB (tm)
 [64403.724679] usb 6-2: Manufacturer: M-Audio

And how does this look on a 3.5+ kernel? Any suspicious messages when
you try starting a stream?


Daniel


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Problem: invalid UAC_FEATURE_UNIT descriptor / fireface UCX

2012-10-07 Thread Florian Hanisch
Hi, here is short update:

I tested the device and I get sound.

However, there seems to be a problem with the alsamixer, which is  
already indicated in the dmesg output given in my old message (see  
below). It seems that in mixer.c, the function get_ctl_value_v2 aborts  
with the error message shown in dmesg but so far, I could not figure  
out why. I tried to use the mixer, it works fine with the internal  
soundcard but if I choose the fireface ucx, it only shows one master  
output slider and no input channels at all and the master output  
slider has no influence on the volume at all. It is possible, to  
control the volume through PulseAudio-pavucontrol.

PulseAudio lists the fireface ucx as analog stereo device but it  
should actually have 8 in- / 8 out-channels. When connected to a  
mac-os using the usb-class-compliance-mode and not the native  
RME-driver, these 8/8-channels are displayed!

Best,

Florian

Quoting Florian Hanisch fhani...@uni-potsdam.de:

 Hi,

 thanks for the information. I just commented the following part of mixer.c

   if (hdr-bLength  7 || !csize || hdr-bLength  7 + csize) {
  snd_printk(KERN_ERR usbaudio: unit %u: invalid
 UAC_FEATURE_UNIT descriptor\n, unitid);
  return -EINVAL;
  }

 and compiled alsa-driver, alsa-lib, alsa-tools and alsa-oss basically
 following the instructions here:
 http://alsa.opensrc.org/Quick_Install. There were warnings during the
 compiling process but no errors.

 The new driver might work, I have the following output from dmesg

 [   41.064090] usb 1-2: new high-speed USB device number 5 using ehci_hcd
 [   41.200270] ALSA mixer.c:352 cannot get ctl value: req = 0x83,
 wValue = 0x200, wIndex = 0x200, type = 4
 [   41.201129] ALSA mixer.c:352 cannot get ctl value: req = 0x83,
 wValue = 0x200, wIndex = 0x200, type = 4
 [   41.201230] ALSA mixer.c:352 cannot get ctl value: req = 0x83,
 wValue = 0x200, wIndex = 0x200, type = 4

 and from aplay -l

  List of PLAYBACK Hardware Devices 
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
 card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
 card 1: F23455936 [Fireface UCX (23455936)], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

 The fireface ucx moreover appears in the system settings / sound
 menue. I did not test whether the device actually produces sound, I
 hope I can do that tomorrow.

 I have one more question concerning the usb-audio-2.0 standard:
 How many in/out channels am I able to run (on linux) ? RME claim on
 their website, that it is possible to use 8 in-channels on the ipad,
 i.e. using the class compliance mode. I am asking this question
 because JACK seems to have a problem with the in/out channels:

 02:12:01.744 D-BUS: SetParameterValue('driver:inchannels', '1'):
 Parameter value type mismatch: was expecting 'i', got 'u'.
 (org.jackaudio.Error.InvalidArgs)

 The same error occurs for the outchannels and I tried the values 1,2,8
 for the nummer of channels but I always get the same error.

 Best,

 Florian

 Quoting Daniel Mack zon...@gmail.com:

 On 02.10.2012 09:27, Clemens Ladisch wrote:
 Florian Hanisch wrote:
 usbaudio: unit 2: invalid UAC_FEATURE_UNIT descriptor

   AudioControl Interface Descriptor:
 bLength10
 bDescriptorType36
 bDescriptorSubtype  6 (FEATURE_UNIT)
 bUnitID 2
 bSourceID   3
 bmaControls( 0)  0x000c
   Volume Control (read/write)
 iFeature0

 This descriptor is perfectly OK; the driver has a bug.
 The following code in parse_audio_feature_unit() in sound/usb/mixer.c
 is valid only for v1 devices; please try to just remove it:

 if (hdr-bLength  7 || !csize || hdr-bLength  7 + csize) {
 snd_printk(KERN_ERR usbaudio: unit %u: invalid UAC_FEATURE_UNIT
 descriptor\n, unitid);
 return -EINVAL;
 }

 Yes, interesting this never got triggered before. The 7 should be a 6 in
 v2 case ...







 --
 Don't let slow site performance ruin your business. Deploy New Relic APM
 Deploy New Relic app performance management and know exactly
 what is happening inside your Ruby, Python, PHP, Java, and .NET app
 Try New Relic at no cost today and get our sweet Data Nerd shirt too!
 http://p.sf.net/sfu/newrelic-dev2dev
 ___
 Alsa-user mailing list
 Alsa-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/alsa-user





--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is 

[Alsa-user] Number of i/o-channels for a usb-class-compliant device

2012-10-07 Thread Florian Hanisch
Hi list,

I have an alsa-newbie-question:

I am running an RME Fireface UCX in the usb-2.0-audio class-compliant  
mode. I can get stereo-sound but alsamixer is not working.

Is there an easy way to get the number of in/out channel that the  
device/the alsa-driver provides ? And if there are more than 2/2  
channels, how do I activate these extra channels ? There should be 8/8  
channels available in usb-class-compliance mode, these are displayed  
on a mac-osx without using the RME native driver.

Thanks a lot,

Florian


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user