Skip to contentSkip to conversation

M-Audio FT C600 - driver missing control for disabling the Output Gain Knob

DISCUSSION [email protected] 3 participants 5 messages May 1 – May 4 Sound

lore
Share & tools
lore
#0 lore raw

Hi all,
I recently thrifted a C600 for a bargain price, and happily most of the functionality is working fine. I did notice a couple of controls (as seen in Windows app) are not presented under Linux.

There is the ability to disable the large Output Gain Knob (on right side of the device), which by defaults controls all of the stereo outputs (1/2, 3/4, 5/6).

Snooping the USB bus under Windows I see there is a USB packet sent with a bit mapped values to disable gain control of each stereo output. Wireshark Caps available if needed/wanted.

I suspect this is a moderately easy fix, and likely applies to the C400 as well. Happy to work with/test patches to get this implement, but I'm not experienced with building ALSA.

Cheers,
Simon.

#1 lore raw
Quoted 13 lines · On Fri, May 01, 2026 at 04:10:51PM -0400, [email protected] wrote:

Hi all,
I recently thrifted a C600 for a bargain price, and happily most of the functionality is working fine. I did notice a couple of controls (as seen in Windows app) are not presented under Linux.

There is the ability to disable the large Output Gain Knob (on right side of the device), which by defaults controls all of the stereo outputs (1/2, 3/4, 5/6).

Snooping the USB bus under Windows I see there is a USB packet sent with a bit mapped values to disable gain control of each stereo output. Wireshark Caps available if needed/wanted.

Quoted 6 lines

I suspect this is a moderately easy fix, and likely applies to the C400 as well. Happy to work with/test patches to get this implement, but I'm not experienced with building ALSA.

Cheers,
Simon.

Hi Simon,

Congratuations on the thrift! Happy to help where I can as I have some experience with making alsa controls. You're on the right track having captured the control values.

There seems to already be c400 controls set up in the mixer_quirks.c file, so it should be fairly straightforward to adapt this to also support the c600.

Let me know if you need support in any way.

Olivia

#2 lore raw
Quoted 3 lines · Olivia Mackintosh

There seems to already be c400 controls set up in the mixer_quirks.c file, so it should be fairly straightforward to adapt this to also support the c600.

Thanks for the pointer, I've had a look and it seems that way the 'effect type' is set would be a good reference to clone/modify.

https://github.com/torvalds/linux/blob/master/sound/usb/mixer_quirks.c#L1302

I jumped back into Windows and captured changing the effect type which does a similar thing on the USB bus, though I did note that 'bRequest' is different and I don't understand why - and of course the 'wValue/wIndex' are too.

Pulling down the Kernel source, so I can build locally. Simon

#3 lore raw

RFC: M-Audio FT C600 - control for disabling the Output Gain Knob

Hi all,
Managed to pull a small patch together to enabling/disabling the Output Gain Knob, as is done in the Windows driver/control application. The outputs act in stereo pairs (1/2, 3/4, 5/6), the device defaults to all 'adjusted' with the knob and you can now select any combination (or none).

This code likely works on the C400 as well, but I do not have that device to test/confirm. Tested against Linux 6.8.0, as that's what I run locally.

I can formally sign/submit a patch if there's no comments. Is that done here or on the kernel mailing lists? Cheers,
Simon.

sound/usb/mixer_quirks.c +44 -2
index 065a4be0d771..1ec98716c871 100644
@@ -1042,7 +1042,7 @@ static int snd_ftu_eff_switch_init(struct usb_mixer_interface *mixer,
 
 	err = snd_usb_ctl_msg(dev, usb_rcvctrlpipe(dev, 0), UAC_GET_CUR,
 			      USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN,
-			      pval & 0xff00,
+			      (pval & 0xff00) | ((pval & 0xff0000) >> 16),
 			      snd_usb_ctrl_intf(mixer->chip) | ((pval & 0xff) << 8),
 			      value, 2);
 	if (err < 0)
@@ -1076,7 +1076,7 @@ static int snd_ftu_eff_switch_update(struct usb_mixer_elem_list *list)
 			      usb_sndctrlpipe(chip->dev, 0),
 			      UAC_SET_CUR,
 			      USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_OUT,
-			      pval & 0xff00,
+			      (pval & 0xff00) | ((pval & 0xff0000) >> 16),
 			      snd_usb_ctrl_intf(chip) | ((pval & 0xff) << 8),
 			      value, 2);
 	snd_usb_unlock_shutdown(chip);
@@ -1491,6 +1491,44 @@ static int snd_c400_create_effect_ret_vol_ctls(struct usb_mixer_interface *mixer
 	return 0;
 }
 
+/* output gain knob selectively adjusts outputs as stereo pairs */
+/* reuses functions from FTU effect switch */
+static int snd_c400_knob_switch_info(struct snd_kcontrol *kcontrol,
+					struct snd_ctl_elem_info *uinfo)
+{
+	static const char *const texts[8] = {
+		"None", "1/2", "3/4", "1/2 3/4",
+		"5/6", "1/2 5/6", "3/4 5/6", "1/2 3/4 5/6"
+	};
+
+	return snd_ctl_enum_info(uinfo, 1, ARRAY_SIZE(texts), texts);
+}
+
+static int snd_c400_create_knob_switch(struct usb_mixer_interface *mixer,
+	int validx, int bUnitID)
+{
+	static struct snd_kcontrol_new template = {
+		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
+		.name = "Output Gain Knob",
+		.index = 0,
+		.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
+		.info = snd_c400_knob_switch_info,
+		.get = snd_ftu_eff_switch_get,
+		.put = snd_ftu_eff_switch_put
+	};
+	struct usb_mixer_elem_list *list;
+	int err;
+
+	err = add_single_ctl_with_resume(mixer, bUnitID,
+					 snd_ftu_eff_switch_update,
+					 &template, &list);
+	if (err < 0)
+		return err;
+	list->kctl->private_value = (validx << 8) | bUnitID;
+	snd_ftu_eff_switch_init(mixer, list->kctl);
+	return 0;
+}
+
 static int snd_c400_create_mixer(struct usb_mixer_interface *mixer)
 {
 	int err;
@@ -1523,6 +1561,10 @@ static int snd_c400_create_mixer(struct usb_mixer_interface *mixer)
 	if (err < 0)
 		return err;
 
+	err = snd_c400_create_knob_switch(mixer, 0x0900, 0x20);
+	if (err < 0)
+		return err;
+
 	return 0;
 }