Bug 201097

Summary: I8K ioctls make snd-usb-audio clicks
Product: Drivers Reporter: Nicolas Goy (kuon)
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: RESOLVED WILL_NOT_FIX    
Severity: normal CC: kuon, linux, tiwai
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.18.6 Tree: Mainline
Regression: No
Attachments: alsa-info.sh output and strace of i8kctl

Description Nicolas Goy 2018-09-11 23:45:52 UTC
Created attachment 278463 [details]
alsa-info.sh output and strace of i8kctl

Running i8kctl fan causes an audio shutter/click.


I encountered the issue while running i8kmon with a timer of 2 seconds. It caused an audible "click" every 2 seconds on the audio stream.

The issue manifested itself only with an external USB audio card (focusrite scarlet 2i2) and did not manifest itself with the internal audio (Dell XPS 15 9560).
Comment 1 Nicolas Goy 2018-09-11 23:48:06 UTC
i8kutils issue https://github.com/vitorafsr/i8kutils/issues/15
Comment 2 Takashi Iwai 2018-09-12 05:42:11 UTC
There is no much thing we can do in the audio driver side, unfortunately.

There is zero connection between dell-smm-hwmon and usb-audio from OS POV, hence it's likely an issue about BIOS command execution in the hardware level.

Better to ask dell-smm-hwmon people instead, I guess.
Comment 3 Guenter Roeck 2018-09-12 23:27:07 UTC
The only solution I am aware of is to not use i8kutils, and/or to blacklist the dell-smm-hwmon driver. Executing BIOS code on Dell machines, as the i8k code does, effectively stops the kernel for a significant amount of time. This is a limitation of the SMM BIOS on those systems; there is nothing we can do about it. It is not surprising that this results in audible clicks.
Comment 4 Nicolas Goy 2018-09-13 00:05:12 UTC
Well, at least I can document this hardware limitation and reference this issue. It should help people to work around it.

Thanks for your timely feedback.