Repository navigation
Conversation
|
Tried it out on a GLK chromebook, skylake driver seemed to fail due to a missing firmware file and SOF never even attempted to probe after the failure. |
|
Tried it out on a GLK chromebook, skylake driver seemed to fail due to a
missing firmware file and SOF never even attempted to probe after the
failure.
Thanks for testing. Likely the DMI filter failed. I assumed all the
products come with a 'Google' name. Can you share the log of 'dmidecode'?
|
|
I'll see what I can do Monday. |
|
Works for me :-) Did you set the mutual exclusion Kconfigs needed for this PR to do anything different? CONFIG_SND_SOC_SOF_INTEL_DRIVER_SELECTION=y |
|
Yep I must have missed those in the menuconfig, worked once I added those manually to the config file. |
thanks for testing. I realized that the code for SOF needs to be changed to work by design instead of by accident, the tests are done in a work queue and not directly in the probe so the mechanism would not work well if SOF was probed first (it's not because of alphabetical order in the Makefile ...). |
kv2019i
left a comment
There was a problem hiding this comment.
Went through all the patches and code seems good. Only a few minor comments to check. I haven't yet tested on any hw.
5c793e4 to
3a18de7
Compare
Revert before adding better solution Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Add opt-in config to prefer SOF over deprecated Baytrail legacy (only used on Chromebooks). Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Add opt-in config to prefer SOF over deprecated Broadwell legacy (only used on Pixel 2015 Chromebooks and on Dell XPS when the DSP is enabled). Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Add opt-in config to prefer SOF over Atom/SST driver used on Merrifield and Baytrail/CherryTrail/Braswell Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
CNL, CFL and CML platforms have known driver/topology issues with HDaudio codecs and digital microphone support reported since September 2018 [1] Since there is no line of sight for any fix, and as platforms with digital microphones+Hdaudio become common, distributions should only select CNL, CFL and CML support with the Skylake/SST driver if they have a good reason to do so, and only when HDaudio codecs and DMICs are not in-scope, but these options are not recommended. The SOF driver will support such platforms and should be selected instead. Instead of using the default selector for all platforms, select only legacy platforms for backwards compatibility, and make CNL/CFL/CML opt-in only. [1] https://bugzilla.kernel.org/show_bug.cgi?id=201251 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
d3026ca to
0f42411
Compare
|
@lgirdwood can you take a look? |
The DSP detection for Intel cAVS platforms is part of the HDaudio probe, which can be called from a workqueue. This is broken, we can't report any error status from a workqueue. Move the code to the PCI probe so that the probe is aborted immediately. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
…ST driver Add opt-in configs to prefer SOF over Skylake/SST driver. This option has no effect on Skylake and Kabylake platforms. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
… driver on APL/GLK On commercially available APL/GLK platforms, SOF is only available on the APL UpSquared boards and on GLK Chromebooks. Other platforms can be supported but require a special firmware not available outside of Intel/Google. Add quirks and bail when SOF/SST drivers detect a quirk they don't support. This option should not be used when early audio and short probe times are needed. A build-time option is a better solution. The runtime detection is more for generic distros who don't want to generate separate images for various hardware. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
0f42411 to
8c3d7dd
Compare
|
@plbossart What happened to this, queued to upstream? |
|
No I will have to redo it after the Summer break. The code needs more work for the detection of DMICs, which I prototyped but need to check the information I was relying on is public. |
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems like proposed in the pull request: thesofproject#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Cc: Cezary Rojewski <cezary.rojewski@intel.com>
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems like proposed in the pull request: thesofproject#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Cc: Cezary Rojewski <cezary.rojewski@intel.com>
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems. The examples are taken from the pull request: thesofproject#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Cc: Cezary Rojewski <cezary.rojewski@intel.com>
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems. The examples are taken from the pull request: thesofproject#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Cc: Cezary Rojewski <cezary.rojewski@intel.com>
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems. The examples are taken from the pull request: thesofproject#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191022174313.29087-1-perex@perex.cz Signed-off-by: Takashi Iwai <tiwai@suse.de>
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems. The examples are taken from the pull request: thesofproject#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191022174313.29087-1-perex@perex.cz Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <jkysela@redhat.com> (cherry picked from commit 82d9d54) Bugzilla: 1750194
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems. The examples are taken from the pull request: thesofproject#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191022174313.29087-1-perex@perex.cz Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <jkysela@redhat.com> (cherry picked from commit 82d9d54) Bugzilla: 1772498
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems. The examples are taken from the pull request: thesofproject/linux#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191022174313.29087-1-perex@perex.cz Signed-off-by: Takashi Iwai <tiwai@suse.de> (cherry picked from commit 82d9d54) Signed-off-by: Chintan Patel <chintan.m.patel@intel.com> BUG=b:147436144 TEST=Audio playback via Speaker, Headphone and HDMI/DP Change-Id: I086099861e639a41b369afa6bb2c02515da15d2f Signed-off-by: Curtis Malainey <cujomalainey@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2029713 Reviewed-by: Sean Paul <seanpaul@chromium.org>
BugLink: https://bugs.launchpad.net/bugs/1871284 For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems. The examples are taken from the pull request: thesofproject#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191022174313.29087-1-perex@perex.cz Signed-off-by: Takashi Iwai <tiwai@suse.de> (cherry picked from commit 82d9d54) Signed-off-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
For distributions, we need one place where we can decide which driver will be activated for the auto-configation of the Intel's HDA hardware with DSP. Actually, we cover three drivers: * Legacy HDA * Intel SST * Intel Sound Open Firmware (SOF) All those drivers registers similar PCI IDs, so the first driver probed from the PCI stack can win. But... it is not guaranteed that the correct driver wins. This commit changes Intel's NHLT ACPI module to a common DSP probe module for the Intel's hardware. All above sound drivers calls this code. The user can force another behaviour using the module parameter 'dsp_driver' located in the 'snd-intel-dspcfg' module. This change allows to add specific dmi checks for the specific systems. The examples are taken from the pull request: thesofproject/linux#927 Tested on Lenovo Carbon X1 7th gen. Signed-off-by: Jaroslav Kysela <perex@perex.cz> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20191022174313.29087-1-perex@perex.cz Signed-off-by: Takashi Iwai <tiwai@suse.de>
This is a second attempt to suggestion a solution for distributions who don't know which driver to pick and don't want to deal with blacklists.
Baytrail/Cherrytrail: build-time selection between SOF, Atom/SST and legacy
Broadwell: build-time selection between SOF and legacy
SKL/KBL: SST driver only
APL/GLK: build or run-time selection between SOF and SST
WHL/CML: build-time selection (we can do better e.g. by adding more rules such as presence of DMIC+HDAudio, Chrome DMI, etc).
ICL: SOF only
The detection between SOF and legacy is not handled for now, it'll be a separate topic.
Comments and feedback welcome. I haven't tested on a GLK chromebook but the Up2 quirk works fine with the Skylake driver bailing to let SOF probe.