diff mbox series

[SRU,OEM-OSP1/E/unstable,1/1] UBUNTU: SAUCE: ASoC: SOF: Intel: Broadwell: clarify mutual exclusion with legacy driver

Message ID 20191120030423.3585-2-hui.wang@canonical.com
State New
Headers show
Series make the SND_SOC_SOF_BROADWELL_SUPPORT exclusive with SND_SOC_INTEL_HASWELL | expand

Commit Message

Hui Wang Nov. 20, 2019, 3:04 a.m. UTC
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

BugLink: https://bugs.launchpad.net/bugs/1846539

Some distros select all options blindly, which leads to confusion and
bug reports. SOF does not fully support Broadwell due to firmware
dependencies, the machine drivers can only support one option, and
UCM/topology files are still being propagated to downstream distros,
so make SOF on Broadwell an opt-in option that first require distros
to opt-out of existing defaults.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204237
Fixes: f35bf70f61d3 ('ASoC: Intel: Make sure BDW based machine drivers build for SOF')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191101173045.27099-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit a6955fe0e2309feeab5ec71e4b0dcbe498f4f497
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
---
 sound/soc/intel/Kconfig     |  3 +++
 sound/soc/sof/intel/Kconfig | 10 +++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

Comments

Stefan Bader Nov. 28, 2019, 4:30 p.m. UTC | #1
On 20.11.19 04:04, Hui Wang wrote:
> From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> 
> BugLink: https://bugs.launchpad.net/bugs/1846539
> 
> Some distros select all options blindly, which leads to confusion and
> bug reports. SOF does not fully support Broadwell due to firmware
> dependencies, the machine drivers can only support one option, and
> UCM/topology files are still being propagated to downstream distros,
> so make SOF on Broadwell an opt-in option that first require distros
> to opt-out of existing defaults.
> 
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204237
> Fixes: f35bf70f61d3 ('ASoC: Intel: Make sure BDW based machine drivers build for SOF')
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Link: https://lore.kernel.org/r/20191101173045.27099-3-pierre-louis.bossart@linux.intel.com
> Signed-off-by: Mark Brown <broonie@kernel.org>
> (cherry picked from commit a6955fe0e2309feeab5ec71e4b0dcbe498f4f497
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
> Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
> ---
>  sound/soc/intel/Kconfig     |  3 +++
>  sound/soc/sof/intel/Kconfig | 10 +++++++++-
>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig
> index 7846eb894991..c037a81b25e9 100644
> --- a/sound/soc/intel/Kconfig
> +++ b/sound/soc/intel/Kconfig
> @@ -58,6 +58,9 @@ config SND_SOC_INTEL_HASWELL
>  	  If you have a Intel Haswell or Broadwell platform connected to
>  	  an I2S codec, then enable this option by saying Y or m. This is
>  	  typically used for Chromebooks. This is a recommended option.
> +	  This option is mutually exclusive with the SOF support on
> +	  Broadwell. If you want to enable SOF on Broadwell, you need to
> +	  deselect this option first.
>  
>  config SND_SOC_INTEL_BAYTRAIL
>  	tristate "Baytrail (legacy) Platforms"
> diff --git a/sound/soc/sof/intel/Kconfig b/sound/soc/sof/intel/Kconfig
> index 5c1a06e57f5a..16906725fb98 100644
> --- a/sound/soc/sof/intel/Kconfig
> +++ b/sound/soc/sof/intel/Kconfig
> @@ -92,10 +92,18 @@ config SND_SOC_SOF_HASWELL
>  
>  config SND_SOC_SOF_BROADWELL_SUPPORT
>  	bool "SOF support for Broadwell"
> +	depends on SND_SOC_INTEL_HASWELL=n
>  	help
>  	  This adds support for Sound Open Firmware for Intel(R) platforms
>  	  using the Broadwell processors.
> -	  Say Y if you have such a device.
> +	  This option is mutually exclusive with the Haswell/Broadwell legacy
> +	  driver. If you want to enable SOF on Broadwell you need to deselect
> +	  the legacy driver first.
> +	  SOF does fully support Broadwell yet, so this option is not
> +	  recommended for distros. At some point all legacy drivers will be
> +	  deprecated but not before all userspace firmware/topology/UCM files
> +	  are made available to downstream distros.
> +	  Say Y if you want to enable SOF on Broadwell
>  	  If unsure select "N".
>  
>  config SND_SOC_SOF_BROADWELL
>
Kleber Sacilotto de Souza Nov. 29, 2019, 5:15 p.m. UTC | #2
On 20.11.19 04:04, Hui Wang wrote:
> From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> 
> BugLink: https://bugs.launchpad.net/bugs/1846539
> 
> Some distros select all options blindly, which leads to confusion and
> bug reports. SOF does not fully support Broadwell due to firmware
> dependencies, the machine drivers can only support one option, and
> UCM/topology files are still being propagated to downstream distros,
> so make SOF on Broadwell an opt-in option that first require distros
> to opt-out of existing defaults.
> 
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204237
> Fixes: f35bf70f61d3 ('ASoC: Intel: Make sure BDW based machine drivers build for SOF')
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Link: https://lore.kernel.org/r/20191101173045.27099-3-pierre-louis.bossart@linux.intel.com
> Signed-off-by: Mark Brown <broonie@kernel.org>
> (cherry picked from commit a6955fe0e2309feeab5ec71e4b0dcbe498f4f497
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git)
> Signed-off-by: Hui Wang <hui.wang@canonical.com>

Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>

> ---
>  sound/soc/intel/Kconfig     |  3 +++
>  sound/soc/sof/intel/Kconfig | 10 +++++++++-
>  2 files changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig
> index 7846eb894991..c037a81b25e9 100644
> --- a/sound/soc/intel/Kconfig
> +++ b/sound/soc/intel/Kconfig
> @@ -58,6 +58,9 @@ config SND_SOC_INTEL_HASWELL
>  	  If you have a Intel Haswell or Broadwell platform connected to
>  	  an I2S codec, then enable this option by saying Y or m. This is
>  	  typically used for Chromebooks. This is a recommended option.
> +	  This option is mutually exclusive with the SOF support on
> +	  Broadwell. If you want to enable SOF on Broadwell, you need to
> +	  deselect this option first.
>  
>  config SND_SOC_INTEL_BAYTRAIL
>  	tristate "Baytrail (legacy) Platforms"
> diff --git a/sound/soc/sof/intel/Kconfig b/sound/soc/sof/intel/Kconfig
> index 5c1a06e57f5a..16906725fb98 100644
> --- a/sound/soc/sof/intel/Kconfig
> +++ b/sound/soc/sof/intel/Kconfig
> @@ -92,10 +92,18 @@ config SND_SOC_SOF_HASWELL
>  
>  config SND_SOC_SOF_BROADWELL_SUPPORT
>  	bool "SOF support for Broadwell"
> +	depends on SND_SOC_INTEL_HASWELL=n
>  	help
>  	  This adds support for Sound Open Firmware for Intel(R) platforms
>  	  using the Broadwell processors.
> -	  Say Y if you have such a device.
> +	  This option is mutually exclusive with the Haswell/Broadwell legacy
> +	  driver. If you want to enable SOF on Broadwell you need to deselect
> +	  the legacy driver first.
> +	  SOF does fully support Broadwell yet, so this option is not
> +	  recommended for distros. At some point all legacy drivers will be
> +	  deprecated but not before all userspace firmware/topology/UCM files
> +	  are made available to downstream distros.
> +	  Say Y if you want to enable SOF on Broadwell
>  	  If unsure select "N".
>  
>  config SND_SOC_SOF_BROADWELL
>
diff mbox series

Patch

diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig
index 7846eb894991..c037a81b25e9 100644
--- a/sound/soc/intel/Kconfig
+++ b/sound/soc/intel/Kconfig
@@ -58,6 +58,9 @@  config SND_SOC_INTEL_HASWELL
 	  If you have a Intel Haswell or Broadwell platform connected to
 	  an I2S codec, then enable this option by saying Y or m. This is
 	  typically used for Chromebooks. This is a recommended option.
+	  This option is mutually exclusive with the SOF support on
+	  Broadwell. If you want to enable SOF on Broadwell, you need to
+	  deselect this option first.
 
 config SND_SOC_INTEL_BAYTRAIL
 	tristate "Baytrail (legacy) Platforms"
diff --git a/sound/soc/sof/intel/Kconfig b/sound/soc/sof/intel/Kconfig
index 5c1a06e57f5a..16906725fb98 100644
--- a/sound/soc/sof/intel/Kconfig
+++ b/sound/soc/sof/intel/Kconfig
@@ -92,10 +92,18 @@  config SND_SOC_SOF_HASWELL
 
 config SND_SOC_SOF_BROADWELL_SUPPORT
 	bool "SOF support for Broadwell"
+	depends on SND_SOC_INTEL_HASWELL=n
 	help
 	  This adds support for Sound Open Firmware for Intel(R) platforms
 	  using the Broadwell processors.
-	  Say Y if you have such a device.
+	  This option is mutually exclusive with the Haswell/Broadwell legacy
+	  driver. If you want to enable SOF on Broadwell you need to deselect
+	  the legacy driver first.
+	  SOF does fully support Broadwell yet, so this option is not
+	  recommended for distros. At some point all legacy drivers will be
+	  deprecated but not before all userspace firmware/topology/UCM files
+	  are made available to downstream distros.
+	  Say Y if you want to enable SOF on Broadwell
 	  If unsure select "N".
 
 config SND_SOC_SOF_BROADWELL