Bug 214817

Summary: M-audio Fast track C400 Issues; distortion, xruns,etc.
Product: Drivers Reporter: EL Lobo Negron (LyrixCaz)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED CODE_FIX    
Severity: normal CC: rauldipeas, tiwai
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.14.11 Subsystem:
Regression: No Bisected commit-id:

Description EL Lobo Negron 2021-10-25 22:55:28 UTC
Whenever i do "systemctl status --user pipewire-media-session" it reports; 

Your kernel driver is broken for element 'Line': it reports a volume range from 0 to 0 which makes no sense.

Odd behaviors I have noticed quite a few months back on my hardware, M-audio Fasttrack C400, is that applications (basically games) via wine will have an increadible amount of distortion, moreover when I would start using jack and sometimes even pulseaudio, there will be alot of pops and clicks with a lot of xruns. I have been using my system for audio production and media consumption for a very long time and all of the sudden its behaving this way. I have tried lot of distribution and it would seem like this behavior happens regardsless.

Aside from this report, has there been any change to the audio drivers with the 5+ version kernels?
Comment 1 Raul Dipeas 2022-10-15 15:23:24 UTC
I have a C400 too.

I have a very poor performance on any kernel above the 5.10(XanMod, Liquorix, TkG, Canonical/Ubuntu), if I use JACK with soft mode enabled, a distorted sound occurs in randomly times when I play my guitar, even without any plugins processing the signal, without soft mode, periodic xruns occur, it's unusable to work with music production this way.

On 2 different machines, it's happening the same behavior:
i7 7500U, 8gb RAM and NVIDIA 940MX (IdeaPad-320)
Ryzen 3500U, 8gb and Vega 8 (IdeaPad-S145)

I don't know what's changed on the latest version of kernel, but I appreciate if anyone can help.
Comment 2 Raul Dipeas 2022-10-19 12:47:43 UTC
I've already find a solution...
https://github.com/rauldipeas/linux-rdx/blob/main/99-m-audio_fast_track_c400-c600.patch
Comment 3 Takashi Iwai 2022-10-21 08:06:37 UTC
(In reply to Raul Dipeas from comment #2)
> I've already find a solution...
> https://github.com/rauldipeas/linux-rdx/blob/main/99-m-audio_fast_track_c400-
> c600.patch

It's 404.  Was just some simple addition to the quirk table?
If yes, at best, please submit the patch by yourself.
Or at least upload the fix to Bugzilla, so that it won't be lost again.
Comment 4 Raul Dipeas 2022-10-21 10:50:20 UTC
(In reply to Takashi Iwai from comment #3)
> (In reply to Raul Dipeas from comment #2)
> > I've already find a solution...
> >
> https://github.com/rauldipeas/linux-rdx/blob/main/99-m-audio_fast_track_c400-
> > c600.patch
> 
> It's 404.  Was just some simple addition to the quirk table?
> If yes, at best, please submit the patch by yourself.
> Or at least upload the fix to Bugzilla, so that it won't be lost again.

Sorry, i've moved the file...

diff -urpN b/sound/usb/implicit.c a/sound/usb/implicit.c
--- b/sound/usb/implicit.c	2022-10-19 08:03:27.599194029 -0300
+++ a/sound/usb/implicit.c	2022-10-19 08:04:35.733180058 -0300
@@ -49,6 +49,8 @@ static const struct snd_usb_implicit_fb_
 	/* FIXME: check the availability of generic matching */
 	IMPLICIT_FB_FIXED_DEV(0x0763, 0x2080, 0x81, 2), /* M-Audio FastTrack Ultra */
 	IMPLICIT_FB_FIXED_DEV(0x0763, 0x2081, 0x81, 2), /* M-Audio FastTrack Ultra */
+	IMPLICIT_FB_FIXED_DEV(0x0763, 0x2030, 0x81, 3), /* M-Audio Fast Track C400 */
+	IMPLICIT_FB_FIXED_DEV(0x0763, 0x2031, 0x81, 3), /* M-Audio Fast Track C600 */
 	IMPLICIT_FB_FIXED_DEV(0x2466, 0x8010, 0x81, 2), /* Fractal Audio Axe-Fx III */
 	IMPLICIT_FB_FIXED_DEV(0x31e9, 0x0001, 0x81, 2), /* Solid State Logic SSL2 */
 	IMPLICIT_FB_FIXED_DEV(0x31e9, 0x0002, 0x81, 2), /* Solid State Logic SSL2+ */

I don't know how to submit by myself.
Comment 5 Takashi Iwai 2022-10-21 12:29:35 UTC
The way to submit is described in Documentation/process/submitting-patches.rst.

But since it's a trivial change, I applied locally, submitted and merged now.
  https://lore.kernel.org/r/20221021122722.24784-1-tiwai@suse.de

I suppose the patch fixes the issue, so close this bug.  Feel free to reopen if the problem still not fixed by the change.  Thanks.
Comment 6 Raul Dipeas 2022-10-21 12:32:36 UTC
(In reply to Takashi Iwai from comment #5)
> The way to submit is described in
> Documentation/process/submitting-patches.rst.
> 
> But since it's a trivial change, I applied locally, submitted and merged now.
>   https://lore.kernel.org/r/20221021122722.24784-1-tiwai@suse.de
> 
> I suppose the patch fixes the issue, so close this bug.  Feel free to reopen
> if the problem still not fixed by the change.  Thanks.

Thank You so much!

I have tested it with XanMod 6.0.2 and it works flawlessly.