Created attachment 143661 [details] Noise fix Hello, this is my first bug report so I hope I do everything right... This should be probably redirected to: David Henningsson Hardware: XPS 15 OS: Ubuntu 14.04 The problem is the following: Up until now (pre 3.16) I was able to workaround the bug by running a python script - the script is not working any more (because the recent audio changes). The Bug: When I plug my headphones in the jack I get static noise (CPU noise if you will). Everything works but has noise ... The fix (pre 3.16): The attached python script Thank you for your great work (all of you)!
*** Bug 80811 has been marked as a duplicate of this bug. ***
So, the analog loopback gives some wrong signal? Then you could override mixer_nid=0 hint. In anyway, please give alsa-info.sh outputs, preferably in both 3.15 and 3.16 kernels. Run it with --no-upload option and attach to Bugzilla.
Created attachment 143671 [details] 3.15.6 alsa-info.sh --no-upload
Comment on attachment 143671 [details] 3.15.6 alsa-info.sh --no-upload with the python script run (no noise)
Oh, no, just upload the single file made by "alsa-info.sh --no-upload", not the contents of the working directory...
Actually the script works with 3.16 (I have no Idea why it didn't worked when I field the bug ...) but it would be nice if I wouldn't have to use the script! ;)
Created attachment 143681 [details] 3.16-rc6 with noise fix
Created attachment 143691 [details] 3.16-rc6 without the noise fix
Created attachment 143701 [details] 3.15.6 without noise fix
Created attachment 143711 [details] 3.16-rc6 with noise fix
Comment on attachment 143711 [details] 3.16-rc6 3.15.6
What if you pass model=nofixup,nofixup option to snd-hda-intel module? This will disable the existing fixup for headset jack. I'd like to know whether the problem comes from the headset jack setup or it's a hardware-native problem.
I'm not sure what you mean (I'm a beginner at this type of configuration - I found the script in a bug report) I guess you want me to put following line in my /etc/modprobe.d/alsa-base.conf file: options snd_hda_intel model=nofixup,nofixup ?
Yes.
Reboot to: Kernel 3.16-rc6 with: options snd_hda_intel model=nofixup,nofixup Result: noise after script: no noise
Then try the patch below (and clear model options again).
Created attachment 143731 [details] Test fix patch
How do I test a patch? (just point me in the direction - do I have to compile the kernel source code?)
Yes, you need to build the kernel (or the module) by yourself.
Ok - I will do that tomorrow - as it is 0:21 am (Oz). Thank you so far!
Well I tried to compile the kernel but when I use following command sudo make modules_install install it hangs at DEPMOD 3.16.0-031600rc6-Pached+ Could you tell me what I do wrong - or what I can do different (I didn't find any good explanation on how to test it as module) Thank you!
after 2 hours I got following message from the above command Error! Bad return status for module build on kernel: 3.16.0-031600rc6-Pached+ (x86_64)
well I booted into the kernel Linux eyenseo-XPS15 3.16.0-031600rc6-Pached+ #3 SMP Tue Jul 22 21:49:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux but the noise is still there ...
Then try the patch below instead. The existing fixup via pincfg might override the new fixup. It has to be disabled.
Created attachment 143891 [details] Test fix patch #2
Is there a faster way to test this? or will I have to wait again 2h on the DEPMOD?
I wasn't able to apply the patch trough git error: patch failed: sound/pci/hda/patch_realtek.c:5858 error: sound/pci/hda/patch_realtek.c: patch does not apply Did it by hand and am now recompiling the kernel and installing it again
The patch is cleanly applicable to the latest Linus git tree. You must have applied it wrongly. Recompiling the kernel must be quick. It just touches one file, so it'll take less than one minute. And, you don't have to build all modules. One good way to configure your kernel is to run "make localmodconfig" once. Then it creates .config file that enables only the modules that are currently running on your system.
yeah compiling is ok but sudo make modules_install install takes it's sweet time If there is a next time I will try the localmodconfig - thank you!
Boot into Linux eyenseo-XPS15 3.16.0-rc6+ #4 SMP Tue Jul 22 23:54:36 EST 2014 x86_64 x86_64 x86_64 GNU/Linux No noise!
Will this fix make it into 3.16?
No, it'll be in 3.17.
The recent kernel already contains the fix. Feel free to reopen if you still see the problem.