Message ID | 20210514040634.14156-2-hui.wang@canonical.com |
---|---|
State | New |
Headers | show |
Series | [SRU,H,1/1] UBUNTU: [Config] enable soundwire audio mach driver | expand |
Hi Hui, When running 'fakeroot debian/rules updateconfigs' after applying your patch I had to do the following changes: On 14.05.21 06:06, Hui Wang wrote: > BugLink: https://bugs.launchpad.net/bugs/1921632 > > The soundwire audio driver in the kernel could work on some Dell cml > machines, so enable the machine driver and some needed codec driver. > > Signed-off-by: Hui Wang <hui.wang@canonical.com> > --- > debian.master/config/annotations | 8 +++++++- > debian.master/config/config.common.ubuntu | 5 ++++- > 2 files changed, 11 insertions(+), 2 deletions(-) > > diff --git a/debian.master/config/annotations b/debian.master/config/annotations > index 8c01bb96351c..991fdbf7a448 100644 > --- a/debian.master/config/annotations > +++ b/debian.master/config/annotations > @@ -8463,6 +8463,7 @@ CONFIG_SND_SOC_PCM5102A policy<{'amd64': 'm', 'arm64': ' > CONFIG_SND_SOC_PCM512x_I2C policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > CONFIG_SND_SOC_PCM512x_SPI policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > CONFIG_SND_SOC_RK3328 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > +CONFIG_SND_SOC_RT1308 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> This config can't be selected on arches other than amd64. I have set the annotation as '-' for non-amd64. > CONFIG_SND_SOC_RT1308_SDW policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > CONFIG_SND_SOC_RT5616 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > CONFIG_SND_SOC_RT5631 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > @@ -8572,7 +8573,7 @@ CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC mark<ENFORCED> note<deprecated> > > # Menu: Device Drivers >> Sound card support >> Advanced Linux Sound Architecture >> ALSA for SoC audio support >> Intel ASoC SST drivers >> Intel Machine drivers > CONFIG_SND_SOC_INTEL_MACH policy<{'amd64': 'y'}> > -CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES policy<{'amd64': 'n'}> > +CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES policy<{'amd64': 'y'}> > CONFIG_SND_SOC_INTEL_HASWELL_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_BDW_RT5650_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_BDW_RT5677_MACH policy<{'amd64': 'm'}> > @@ -8593,6 +8594,7 @@ CONFIG_SND_SOC_INTEL_SKL_NAU88L25_MAX98357A_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_BXT_DA7219_MAX98357A_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_BXT_RT298_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_SOF_WM8804_MACH policy<{'amd64': 'm'}> > +CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_KBL_RT5663_MAX98927_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_KBL_RT5663_RT5514_MAX98927_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_KBL_DA7219_MAX98357A_MACH policy<{'amd64': 'm'}> > @@ -8608,6 +8610,10 @@ CONFIG_SND_SOC_INTEL_SOF_CML_RT1011_RT5682_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_SOF_DA7219_MAX98373_MACH policy<{'amd64': 'm'}> > CONFIG_SND_SOC_INTEL_EHL_RT5660_MACH policy<{'amd64': 'm'}> > > +# > +CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES mark<ENFORCED> note<LP:1921632> > +CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH mark<ENFORCED> note<LP:1921632> > + > # Menu: Device Drivers >> Sound card support >> Advanced Linux Sound Architecture >> ALSA for SoC audio support >> STMicroelectronics STM32 SOC audio support > > # Menu: Device Drivers >> Sound card support >> Advanced Linux Sound Architecture >> ALSA for SoC audio support >> SoC Audio for Freescale CPUs > diff --git a/debian.master/config/config.common.ubuntu b/debian.master/config/config.common.ubuntu > index f44deabacf1d..e3a0f55cf1ad 100644 > --- a/debian.master/config/config.common.ubuntu > +++ b/debian.master/config/config.common.ubuntu > @@ -8346,6 +8346,7 @@ CONFIG_REGMAP_IRQ=y > CONFIG_REGMAP_SCCB=m > CONFIG_REGMAP_SLIMBUS=m > CONFIG_REGMAP_SOUNDWIRE=m > +CONFIG_REGMAP_SOUNDWIRE_MBQ=m This config can't be selected and gets removed from the config file. I amended your commit to make these two changes. Please let us know if a different solution should be applied. Thanks, Kleber
On 5/28/21 6:40 PM, Kleber Souza wrote: > Hi Hui, > > When running 'fakeroot debian/rules updateconfigs' after applying your > patch I had to do the following changes: > > On 14.05.21 06:06, Hui Wang wrote: >> BugLink: https://bugs.launchpad.net/bugs/1921632 >> >> The soundwire audio driver in the kernel could work on some Dell cml >> machines, so enable the machine driver and some needed codec driver. >> >> Signed-off-by: Hui Wang <hui.wang@canonical.com> >> --- >> debian.master/config/annotations | 8 +++++++- >> debian.master/config/config.common.ubuntu | 5 ++++- >> 2 files changed, 11 insertions(+), 2 deletions(-) >> >> diff --git a/debian.master/config/annotations >> b/debian.master/config/annotations >> index 8c01bb96351c..991fdbf7a448 100644 >> --- a/debian.master/config/annotations >> +++ b/debian.master/config/annotations >> @@ -8463,6 +8463,7 @@ CONFIG_SND_SOC_PCM5102A policy<{'amd64': 'm', >> 'arm64': ' >> CONFIG_SND_SOC_PCM512x_I2C policy<{'amd64': 'm', 'arm64': 'm', >> 'armhf': 'm', 'ppc64el': 'm'}> >> CONFIG_SND_SOC_PCM512x_SPI policy<{'amd64': 'm', 'arm64': 'm', >> 'armhf': 'm', 'ppc64el': 'm'}> >> CONFIG_SND_SOC_RK3328 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': >> 'm', 'ppc64el': 'm'}> >> +CONFIG_SND_SOC_RT1308 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': >> 'm', 'ppc64el': 'm'}> > > This config can't be selected on arches other than amd64. I have > set the annotation as '-' for non-amd64. > >> CONFIG_SND_SOC_RT1308_SDW policy<{'amd64': 'm', 'arm64': 'm', >> 'armhf': 'm', 'ppc64el': 'm'}> >> CONFIG_SND_SOC_RT5616 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': >> 'm', 'ppc64el': 'm'}> >> CONFIG_SND_SOC_RT5631 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': >> 'm', 'ppc64el': 'm'}> >> @@ -8572,7 +8573,7 @@ CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC >> mark<ENFORCED> note<deprecated> >> # Menu: Device Drivers >> Sound card support >> Advanced Linux >> Sound Architecture >> ALSA for SoC audio support >> Intel ASoC SST >> drivers >> Intel Machine drivers >> CONFIG_SND_SOC_INTEL_MACH policy<{'amd64': 'y'}> >> -CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES policy<{'amd64': 'n'}> >> +CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES policy<{'amd64': 'y'}> >> CONFIG_SND_SOC_INTEL_HASWELL_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_BDW_RT5650_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_BDW_RT5677_MACH policy<{'amd64': 'm'}> >> @@ -8593,6 +8594,7 @@ >> CONFIG_SND_SOC_INTEL_SKL_NAU88L25_MAX98357A_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_BXT_DA7219_MAX98357A_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_BXT_RT298_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_SOF_WM8804_MACH policy<{'amd64': 'm'}> >> +CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_KBL_RT5663_MAX98927_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_KBL_RT5663_RT5514_MAX98927_MACH >> policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_KBL_DA7219_MAX98357A_MACH policy<{'amd64': 'm'}> >> @@ -8608,6 +8610,10 @@ >> CONFIG_SND_SOC_INTEL_SOF_CML_RT1011_RT5682_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_SOF_DA7219_MAX98373_MACH policy<{'amd64': 'm'}> >> CONFIG_SND_SOC_INTEL_EHL_RT5660_MACH policy<{'amd64': 'm'}> >> +# >> +CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES mark<ENFORCED> >> note<LP:1921632> >> +CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH mark<ENFORCED> note<LP:1921632> >> + >> # Menu: Device Drivers >> Sound card support >> Advanced Linux >> Sound Architecture >> ALSA for SoC audio support >> >> STMicroelectronics STM32 SOC audio support >> # Menu: Device Drivers >> Sound card support >> Advanced Linux >> Sound Architecture >> ALSA for SoC audio support >> SoC Audio for >> Freescale CPUs >> diff --git a/debian.master/config/config.common.ubuntu >> b/debian.master/config/config.common.ubuntu >> index f44deabacf1d..e3a0f55cf1ad 100644 >> --- a/debian.master/config/config.common.ubuntu >> +++ b/debian.master/config/config.common.ubuntu >> @@ -8346,6 +8346,7 @@ CONFIG_REGMAP_IRQ=y >> CONFIG_REGMAP_SCCB=m >> CONFIG_REGMAP_SLIMBUS=m >> CONFIG_REGMAP_SOUNDWIRE=m >> +CONFIG_REGMAP_SOUNDWIRE_MBQ=m > > This config can't be selected and gets removed from the config file. > > I amended your commit to make these two changes. Please let us know > if a different solution should be applied. > Thanks for your changes, the changes are fine. The codec driver RT1308 is only used on Intel AMD64; the REGMAP_SOUNDWIRE_MBQ is only used on soundwire sdca audio designs, I didn't notice that the kernel 5.11 doesn't support sound sdca audio machine drivers yet. thanks. Hui. > > Thanks, > Kleber
On Fri, May 14, 2021 at 12:06:33PM +0800, Hui Wang wrote: > BugLink: https://bugs.launchpad.net/bugs/1921632 > > The soundwire audio driver in the kernel could work on some Dell cml > machines, so enable the machine driver and some needed codec driver. > > Signed-off-by: Hui Wang <hui.wang@canonical.com> > --- > debian.master/config/annotations | 8 +++++++- > debian.master/config/config.common.ubuntu | 5 ++++- > 2 files changed, 11 insertions(+), 2 deletions(-) > > diff --git a/debian.master/config/annotations b/debian.master/config/annotations > index 8c01bb96351c..991fdbf7a448 100644 > --- a/debian.master/config/annotations > +++ b/debian.master/config/annotations > @@ -8463,6 +8463,7 @@ CONFIG_SND_SOC_PCM5102A policy<{'amd64': 'm', 'arm64': ' > CONFIG_SND_SOC_PCM512x_I2C policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > CONFIG_SND_SOC_PCM512x_SPI policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > CONFIG_SND_SOC_RK3328 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > +CONFIG_SND_SOC_RT1308 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> It looks like CONFIG_SND_SOC_RT1308 can only be enabled on amd64 (at least after rebasing linux-unstable to the latest 5.13-rc5). Do we really want this driver also on arm64/armhf/ppc64el? Thanks, -Andrea
On 6/7/21 2:34 PM, Andrea Righi wrote: > On Fri, May 14, 2021 at 12:06:33PM +0800, Hui Wang wrote: >> BugLink: https://bugs.launchpad.net/bugs/1921632 >> >> The soundwire audio driver in the kernel could work on some Dell cml >> machines, so enable the machine driver and some needed codec driver. >> >> Signed-off-by: Hui Wang <hui.wang@canonical.com> >> --- >> debian.master/config/annotations | 8 +++++++- >> debian.master/config/config.common.ubuntu | 5 ++++- >> 2 files changed, 11 insertions(+), 2 deletions(-) >> >> diff --git a/debian.master/config/annotations b/debian.master/config/annotations >> index 8c01bb96351c..991fdbf7a448 100644 >> --- a/debian.master/config/annotations >> +++ b/debian.master/config/annotations >> @@ -8463,6 +8463,7 @@ CONFIG_SND_SOC_PCM5102A policy<{'amd64': 'm', 'arm64': ' >> CONFIG_SND_SOC_PCM512x_I2C policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> >> CONFIG_SND_SOC_PCM512x_SPI policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> >> CONFIG_SND_SOC_RK3328 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> >> +CONFIG_SND_SOC_RT1308 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> > It looks like CONFIG_SND_SOC_RT1308 can only be enabled on amd64 (at > least after rebasing linux-unstable to the latest 5.13-rc5). > > Do we really want this driver also on arm64/armhf/ppc64el? No, only need it on amd64, please help set others to 'n'. thx. > > Thanks, > -Andrea
diff --git a/debian.master/config/annotations b/debian.master/config/annotations index 8c01bb96351c..991fdbf7a448 100644 --- a/debian.master/config/annotations +++ b/debian.master/config/annotations @@ -8463,6 +8463,7 @@ CONFIG_SND_SOC_PCM5102A policy<{'amd64': 'm', 'arm64': ' CONFIG_SND_SOC_PCM512x_I2C policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> CONFIG_SND_SOC_PCM512x_SPI policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> CONFIG_SND_SOC_RK3328 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> +CONFIG_SND_SOC_RT1308 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> CONFIG_SND_SOC_RT1308_SDW policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> CONFIG_SND_SOC_RT5616 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> CONFIG_SND_SOC_RT5631 policy<{'amd64': 'm', 'arm64': 'm', 'armhf': 'm', 'ppc64el': 'm'}> @@ -8572,7 +8573,7 @@ CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC mark<ENFORCED> note<deprecated> # Menu: Device Drivers >> Sound card support >> Advanced Linux Sound Architecture >> ALSA for SoC audio support >> Intel ASoC SST drivers >> Intel Machine drivers CONFIG_SND_SOC_INTEL_MACH policy<{'amd64': 'y'}> -CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES policy<{'amd64': 'n'}> +CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES policy<{'amd64': 'y'}> CONFIG_SND_SOC_INTEL_HASWELL_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_BDW_RT5650_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_BDW_RT5677_MACH policy<{'amd64': 'm'}> @@ -8593,6 +8594,7 @@ CONFIG_SND_SOC_INTEL_SKL_NAU88L25_MAX98357A_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_BXT_DA7219_MAX98357A_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_BXT_RT298_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_SOF_WM8804_MACH policy<{'amd64': 'm'}> +CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_KBL_RT5663_MAX98927_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_KBL_RT5663_RT5514_MAX98927_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_KBL_DA7219_MAX98357A_MACH policy<{'amd64': 'm'}> @@ -8608,6 +8610,10 @@ CONFIG_SND_SOC_INTEL_SOF_CML_RT1011_RT5682_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_SOF_DA7219_MAX98373_MACH policy<{'amd64': 'm'}> CONFIG_SND_SOC_INTEL_EHL_RT5660_MACH policy<{'amd64': 'm'}> +# +CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES mark<ENFORCED> note<LP:1921632> +CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH mark<ENFORCED> note<LP:1921632> + # Menu: Device Drivers >> Sound card support >> Advanced Linux Sound Architecture >> ALSA for SoC audio support >> STMicroelectronics STM32 SOC audio support # Menu: Device Drivers >> Sound card support >> Advanced Linux Sound Architecture >> ALSA for SoC audio support >> SoC Audio for Freescale CPUs diff --git a/debian.master/config/config.common.ubuntu b/debian.master/config/config.common.ubuntu index f44deabacf1d..e3a0f55cf1ad 100644 --- a/debian.master/config/config.common.ubuntu +++ b/debian.master/config/config.common.ubuntu @@ -8346,6 +8346,7 @@ CONFIG_REGMAP_IRQ=y CONFIG_REGMAP_SCCB=m CONFIG_REGMAP_SLIMBUS=m CONFIG_REGMAP_SOUNDWIRE=m +CONFIG_REGMAP_SOUNDWIRE_MBQ=m CONFIG_REGMAP_SPI=y CONFIG_REGMAP_SPI_AVMM=m CONFIG_REGMAP_SPMI=m @@ -9857,9 +9858,10 @@ CONFIG_SND_SOC_INTEL_SOF_DA7219_MAX98373_MACH=m CONFIG_SND_SOC_INTEL_SOF_PCM512x_MACH=m CONFIG_SND_SOC_INTEL_SOF_RT5682_MACH=m CONFIG_SND_SOC_INTEL_SOF_WM8804_MACH=m +CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH=m CONFIG_SND_SOC_INTEL_SST=m CONFIG_SND_SOC_INTEL_SST_TOPLEVEL=y -# CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES is not set +CONFIG_SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES=y CONFIG_SND_SOC_J721E_EVM=m CONFIG_SND_SOC_LOCHNAGAR_SC=m CONFIG_SND_SOC_LPASS_APQ8016=m @@ -9963,6 +9965,7 @@ CONFIG_SND_SOC_ROCKCHIP_SPDIF=m CONFIG_SND_SOC_RT1011=m CONFIG_SND_SOC_RT1015=m CONFIG_SND_SOC_RT1015P=m +CONFIG_SND_SOC_RT1308=m CONFIG_SND_SOC_RT1308_SDW=m CONFIG_SND_SOC_RT286=m CONFIG_SND_SOC_RT298=m
BugLink: https://bugs.launchpad.net/bugs/1921632 The soundwire audio driver in the kernel could work on some Dell cml machines, so enable the machine driver and some needed codec driver. Signed-off-by: Hui Wang <hui.wang@canonical.com> --- debian.master/config/annotations | 8 +++++++- debian.master/config/config.common.ubuntu | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-)