alsa/sof: make sof driver work in the case of without i915 (focal kernel)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Medium
|
Hui Wang | ||
Focal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The fix is already in the upstream from linux-5.6-rc, so only focal
kernel need this patch.
[Impact]
When we boot the focal kernel on the cml or cfl machines without
HDMI/DP codec, the sof driver fails to initialize, and the whole
audio fails to work.
[Fix]
Refer to an upstream commit, we move the codec_probe_bus() ahead
of creation of audio mach device.
[Test]
Tested the patched kernel on the cml and cfl machines, if
they have hdmi/dp codec, the audio works as well as before, if
they don't have hdmi/dp codec, the analog audio still work with
sof driver.
Also tested on TGL machines, the i915 driver in the focal kernel
can't work on the TGL machines, this will make the i915 codec probe
fail, with the patched kernel, the analog audio still work on the
TGL machines. Without this patch, the whole audio will fail on
the TGL machines with focal kernel.
[Where problems could occur]
this patch moves the codec probing ahead, it could make the codec
probing fail, then the whole audio will fail no matter with or without
i915 codec. But this possibility is very low, I tested the patched
kernel on many machines, all worked well.
CVE References
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Focal): | |
importance: | Undecided → Medium |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | Incomplete → In Progress |
Changed in linux (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1927672
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.