Skip to contentSkip to conversation

TC-Helicon Blender

DISCUSSION Florian Hänel 3 participants 4 messages Feb 13, 2023 – Mar 10, 2023 Sound

lore
Share & tools
lore
#0 lore raw

I have this USB device called TC-Helicon Blender which provides 12 input streams, 8 output streams (6/4 stereo plugs), in addition to some midi interface and internal playback and record channel.

Bus 005 Device 016: ID 1220:8fe1 TC Electronic Blender

If I power the device on while connected to a windows machine with its driver installed, then plug it into my linux machine, it appears to work correctly:

arecord -D front:CARD=Blender  -r48000 -fS32_LE -c 12 blender.wav -d 20 Recording WAVE 'blender.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 12

46080044 blender.wav

However if I have it on my linux machine while powering it on, I only get timeouts and no samples from arecord:

arecord -D front:CARD=Blender  -r48000 -fS32_LE -c 12 blender.wav -d 20 Recording WAVE 'blender.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 12
arecord: pcm_read:2221: read error: Input/output error

44 blender.wav

What can I do to try and get this device to init correctly under linux? I have captured USB packets of the init phase using wireshark on both windows and linux but comparing them is tedious if I don't know what to look for. Are there quirks flags I can play around with? This is my first time looking at a linux device driver issue like this.

Would it be ok to attach the usb captures on this mailing list?

thanks

Florian

Signature · 6 lines
Florian Hänel
Geschäftsführer

echtzeit.solutions GmbH
Handelsregistergericht München HRB 231056
Ust-ID DE310379807
#1 lore raw

I found a tool [1] written for a device by the same vendor, so likely to share hardware/firmware and it sends a single packet to make the device work.

It sort of works for me, except I have to unplug and re-plug the device to make it work.

My question now is, is there a quirks flag and configuration that allows me to do the same thing on plug-in?

Florian

[1]: https://github.com/GoXLR-on-Linux/goxlr-utility/blob/main/initialiser/src/main.rs#L117

Quoted 29 lines · Florian Hänel

I have this USB device called TC-Helicon Blender which provides 12 input streams, 8 output streams (6/4 stereo plugs), in addition to some midi interface and internal playback and record channel.

Bus 005 Device 016: ID 1220:8fe1 TC Electronic Blender

If I power the device on while connected to a windows machine with its driver installed, then plug it into my linux machine, it appears to work correctly:

arecord -D front:CARD=Blender  -r48000 -fS32_LE -c 12 blender.wav -d 20 Recording WAVE 'blender.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 12

46080044 blender.wav

However if I have it on my linux machine while powering it on, I only get timeouts and no samples from arecord:

arecord -D front:CARD=Blender  -r48000 -fS32_LE -c 12 blender.wav -d 20 Recording WAVE 'blender.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 12
arecord: pcm_read:2221: read error: Input/output error

44 blender.wav

What can I do to try and get this device to init correctly under linux? I have captured USB packets of the init phase using wireshark on both windows and linux but comparing them is tedious if I don't know what to look for. Are there quirks flags I can play around with? This is my first time looking at a linux device driver issue like this.

Would it be ok to attach the usb captures on this mailing list?

thanks

Florian

Signature · 6 lines
Florian Hänel
Geschäftsführer

echtzeit.solutions GmbH
Handelsregistergericht München HRB 231056
Ust-ID DE310379807
#2 lore raw
In reply to Florian Hänel
Quoted 20 lines · Florian Hänel

I have this USB device called TC-Helicon Blender which provides 12 input streams, 8 output streams (6/4 stereo plugs), in addition to some midi interface and internal playback and record channel.

Bus 005 Device 016: ID 1220:8fe1 TC Electronic Blender

If I power the device on while connected to a windows machine with its driver installed, then plug it into my linux machine, it appears to work correctly:

arecord -D front:CARD=Blender  -r48000 -fS32_LE -c 12 blender.wav -d 20 Recording WAVE 'blender.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 12

46080044 blender.wav

However if I have it on my linux machine while powering it on, I only get timeouts and no samples from arecord:

Quoted 6 lines

arecord -D front:CARD=Blender  -r48000 -fS32_LE -c 12 blender.wav -d 20 Recording WAVE 'blender.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 12
arecord: pcm_read:2221: read error: Input/output error

44 blender.wav

So the device didn't give any data.

Quoted 6 lines

What can I do to try and get this device to init correctly under linux? I have captured USB packets of the init phase using wireshark on both windows and linux but comparing them is tedious if I don't know what to look for. Are there quirks flags I can play around with? This is my first time looking at a linux device driver issue like this.

Is it only about capture, i.e. playback works?
Also, which kernel version are you testing?

There are lots of quirks in USB-audio driver, take a look at sound/usb/quirks.c. You can apply the existing quirk for your device with quirk_alias module option.

Quoted 1 line

Would it be ok to attach the usb captures on this mailing list?

The size matters, so no big data please.

Takashi

#3 lore raw
Quoted 21 lines · Takashi Iwai
Quoted 19 lines · Florian Hänel

I have this USB device called TC-Helicon Blender which provides 12 input streams, 8 output streams (6/4 stereo plugs), in addition to some midi interface and internal playback and record channel.

Bus 005 Device 016: ID 1220:8fe1 TC Electronic Blender

If I power the device on while connected to a windows machine with its driver installed, then plug it into my linux machine, it appears to work correctly:

arecord -D front:CARD=Blender  -r48000 -fS32_LE -c 12 blender.wav -d 20 Recording WAVE 'blender.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 12

46080044 blender.wav

However if I have it on my linux machine while powering it on, I only get timeouts and no samples from arecord:

Quoted 7 lines
Quoted 6 lines

arecord -D front:CARD=Blender  -r48000 -fS32_LE -c 12 blender.wav -d 20 Recording WAVE 'blender.wav' : Signed 32 bit Little Endian, Rate 48000 Hz, Channels 12
arecord: pcm_read:2221: read error: Input/output error

44 blender.wav

So the device didn't give any data.

The maintainer of  the userland utility that makes a device of the same manufacturer work on osx and linux has provided this experimental patch.

Could you provide some feedback if this approach would be welcomed into alsa?

As I understand it it requires sending some vendor configuration packets.

- Florian

sound/usb/quirks.c +23 -0
index 3ecd1ba7fd4b..36ea5aabd41d 100644
@@ -1390,6 +1390,25 @@ static int snd_usb_motu_m_series_boot_quirk(struct usb_device *dev)
 	return 0;
 }
 
+static int snd_usb_goxlr_boot_quirk(struct usb_device *dev)
+{
+	/* Load the 48000Hz rate into a buffer */
+	u8 srate[4] = {0x80, 0xbb, 0x00, 0x00};
+	u8 temp[24];
+
+	/* Clear the Vendor buffer, we don't need to do anything with this data */
+	snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev,0), 0x00,
+		USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
+		0, 0, &temp, 0x0018);
+
+	/* Send the packet to activate the audio at 48000Hz */
+	snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), 0x01,
+		USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
+		0x0100, 0x2900, &srate, 0x0004);
+
+	return 0;
+}
+
 /*
  * Setup quirks
  */
@@ -1617,6 +1636,10 @@ int snd_usb_apply_boot_quirk(struct usb_device *dev,
 		    get_iface_desc(intf->altsetting)->bInterfaceNumber < 3)
 			return snd_usb_motu_microbookii_boot_quirk(dev);
 		break;
+
+	case USB_ID(0x1220, 0x8fe0): /* TC-Helicon GoXLR */
+	case USB_ID(0x1220, 0x8fe4): /* TC-Helicon GoXLR Mini */
+		return snd_usb_goxlr_boot_quirk(dev);
 	}
 
 	return 0;