Skip to contentSkip to conversation

SoF support for 8086:9d71?

DISCUSSION Kai-Heng Feng 3 participants 11 messages Dec 14, 2020 – Jan 13, 2021 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi,

On more recent kernels legacy HDA stops working for device 8086:9d71:

[   47.211381] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   47.211383] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SST driver

However, only legacy HDA supports it:
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) ..
Kernel modules: snd_hda_intel

Ubuntu kernel doesn't select SND_SOC_INTEL_SKYLAKE, which builds snd-soc-skl, because based on the Kconfig description SOF should support it.

I wonder if SND_SOC_INTEL_SKYLAKE should be select again?

#1 lore raw
Quoted 5 lines

On more recent kernels legacy HDA stops working for device 8086:9d71:
[   47.211381] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100 [   47.211383] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SST driver

Quoted 8 lines

However, only legacy HDA supports it:
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) ..
    Kernel modules: snd_hda_intel

Ubuntu kernel doesn't select SND_SOC_INTEL_SKYLAKE, which builds snd-soc-skl, because based on the Kconfig description SOF should support it.

I wonder if SND_SOC_INTEL_SKYLAKE should be select again?

SOF does not support Skylake and Kabylake, and only the Up2 board for APL. I am not sure what you mean by 'recent' kernels since this dynamic selection has been in place for a year now?

At any rate, to make this work again:

1. You can select SND_SOC_INTEL_SKYLAKE or alternatively to be more accurate:

SND_SOC_INTEL_SKL
SND_SOC_INTEL_APL
SND_SOC_INTEL_KBL

There are known issues with Conexant codecs, typically on HP devices, only Realtek codecs are supported.

2. In addition you will need to have the topology for SKL/KBL w/ HDaudio codecs. It's in alsa-topology-conf but would need to be compiled and installed.

3. UCM files should be already handled in alsa-ucm-conf

Hope this helps
-Pierre

#2 lore raw
Quoted 10 lines · Pierre-Louis Bossart
Quoted 10 lines

On more recent kernels legacy HDA stops working for device 8086:9d71:

[   47.211381] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   47.211383] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SST driver

However, only legacy HDA supports it:
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) ..
Kernel modules: snd_hda_intel

Quoted 5 lines
Quoted 3 lines

Ubuntu kernel doesn't select SND_SOC_INTEL_SKYLAKE, which builds snd-soc-skl, because based on the Kconfig description SOF should support it.

I wonder if SND_SOC_INTEL_SKYLAKE should be select again?

SOF does not support Skylake and Kabylake, and only the Up2 board for APL. I am not sure what you mean by 'recent' kernels since this dynamic selection has been in place for a year now?

Ubuntu kernel only changed this in 20.10 release.

Quoted 10 lines

At any rate, to make this work again:

1. You can select SND_SOC_INTEL_SKYLAKE or alternatively to be more accurate:

SND_SOC_INTEL_SKL
SND_SOC_INTEL_APL
SND_SOC_INTEL_KBL

There are known issues with Conexant codecs, typically on HP devices, only Realtek codecs are supported.

Right, so we can't really enable this for generic distros like Ubuntu.

Let me think of a more generic solution.

Kai-Heng

Quoted 7 lines

2. In addition you will need to have the topology for SKL/KBL w/ HDaudio codecs. It's in alsa-topology-conf but would need to be compiled and installed.

3. UCM files should be already handled in alsa-ucm-conf

Hope this helps
-Pierre

#3 lore raw
Quoted 30 lines · Kai-Heng Feng
Quoted 10 lines · Pierre-Louis Bossart
Quoted 10 lines

On more recent kernels legacy HDA stops working for device 8086:9d71:
[   47.211381] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100 [   47.211383] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SST driver

However, only legacy HDA supports it:
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) ..
     Kernel modules: snd_hda_intel

Quoted 5 lines
Quoted 3 lines

Ubuntu kernel doesn't select SND_SOC_INTEL_SKYLAKE, which builds snd-soc-skl, because based on the Kconfig description SOF should support it.

I wonder if SND_SOC_INTEL_SKYLAKE should be select again?

SOF does not support Skylake and Kabylake, and only the Up2 board for APL. I am not sure what you mean by 'recent' kernels since this dynamic selection has been in place for a year now?

Ubuntu kernel only changed this in 20.10 release.

Quoted 9 lines

At any rate, to make this work again:

1. You can select SND_SOC_INTEL_SKYLAKE or alternatively to be more accurate:

SND_SOC_INTEL_SKL
SND_SOC_INTEL_APL
SND_SOC_INTEL_KBL

Quoted 5 lines
Quoted 1 line

There are known issues with Conexant codecs, typically on HP devices, only Realtek codecs are supported.

Right, so we can't really enable this for generic distros like Ubuntu.

Let me think of a more generic solution.

Re-thinking about this, I actually don't know how this problem occurred:
the tables are conditionally built so you would only select SST if you had the drivers compiled in.

see sound/hda/intel-dsp-config.c:

/* Kabylake-LP */

#if IS_ENABLED(CONFIG_SND_SOC_INTEL_KBL)
	{
		.flags = FLAG_SST,
		.device = 0x9d71,
		.dmi_table = (const struct dmi_system_id []) {
			{
				.ident = "Google Chromebooks",
				.matches = {
					DMI_MATCH(DMI_SYS_VENDOR, "Google"),
				}
			},
			{}
		}
	},
	{
		.flags = FLAG_SST | FLAG_SST_ONLY_IF_DMIC,
		.device = 0x9d71,
	},

#endif

Something's not adding up here.

#4 lore raw
Quoted 65 lines · Pierre-Louis Bossart
Quoted 30 lines · Kai-Heng Feng
Quoted 10 lines · Pierre-Louis Bossart
Quoted 10 lines

On more recent kernels legacy HDA stops working for device 8086:9d71:
[   47.211381] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100 [   47.211383] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SST driver

However, only legacy HDA supports it:
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21) ..
     Kernel modules: snd_hda_intel

Quoted 5 lines
Quoted 3 lines

Ubuntu kernel doesn't select SND_SOC_INTEL_SKYLAKE, which builds snd-soc-skl, because based on the Kconfig description SOF should support it.

I wonder if SND_SOC_INTEL_SKYLAKE should be select again?

SOF does not support Skylake and Kabylake, and only the Up2 board for APL. I am not sure what you mean by 'recent' kernels since this dynamic selection has been in place for a year now?

Ubuntu kernel only changed this in 20.10 release.

Quoted 9 lines

At any rate, to make this work again:

1. You can select SND_SOC_INTEL_SKYLAKE or alternatively to be more accurate:

SND_SOC_INTEL_SKL
SND_SOC_INTEL_APL
SND_SOC_INTEL_KBL

Quoted 5 lines
Quoted 1 line

There are known issues with Conexant codecs, typically on HP devices, only Realtek codecs are supported.

Right, so we can't really enable this for generic distros like Ubuntu.

Let me think of a more generic solution.

Re-thinking about this, I actually don't know how this problem occurred:
the tables are conditionally built so you would only select SST if you had the drivers compiled in.

see sound/hda/intel-dsp-config.c:

/* Kabylake-LP */
#if IS_ENABLED(CONFIG_SND_SOC_INTEL_KBL)
    {
        .flags = FLAG_SST,
        .device = 0x9d71,
        .dmi_table = (const struct dmi_system_id []) { {
                .ident = "Google Chromebooks", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Google"), }
            },
            {}
        }
    },
    {
        .flags = FLAG_SST | FLAG_SST_ONLY_IF_DMIC, .device = 0x9d71,
    },
#endif

Quoted 1 line

Something's not adding up here.

Seems like you can enable CONFIG_SND_SOC_INTEL_KBL (and all other platforms), without enabling CONFIG_SND_SOC_INTEL_SKYLAKE, which enables building of snd_soc_skl module... I would say that there is something wrong with module dependencies in Kconfig :/ Will look at it tomorrow. In the meantime any chance we can get the config which was used, to confirm my suspicion?

Thanks,
Amadeusz

#5 lore raw
Quoted 78 lines · Amadeusz Sławiński
Quoted 76 lines · Pierre-Louis Bossart
Quoted 39 lines · Kai-Heng Feng
Quoted 17 lines · Pierre-Louis Bossart
Quoted 17 lines

On more recent kernels legacy HDA stops working for device 8086:9d71:

[   47.211381] snd_hda_intel 0000:00:1f.3: DSP detected with PCI
 class/subclass/prog-if info 0x040100
[   47.211383] snd_hda_intel 0000:00:1f.3: Digital mics found on
 Skylake+ platform, using SST driver

However, only legacy HDA supports it:
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21)
..
Kernel modules: snd_hda_intel

Ubuntu kernel doesn't select SND_SOC_INTEL_SKYLAKE, which builds
snd-soc-skl, because based on the Kconfig description SOF should
support it.

Quoted 5 lines
Quoted 1 line

I wonder if SND_SOC_INTEL_SKYLAKE should be select again?

SOF does not support Skylake and Kabylake, and only the Up2 board for APL. I am not sure what you mean by 'recent' kernels since this dynamic selection has been in place for a year now?

Ubuntu kernel only changed this in 20.10 release.

Quoted 10 lines

At any rate, to make this work again:

1. You can select SND_SOC_INTEL_SKYLAKE or alternatively to be more accurate:

SND_SOC_INTEL_SKL
SND_SOC_INTEL_APL
SND_SOC_INTEL_KBL

Quoted 6 lines
Quoted 2 lines

There are known issues with Conexant codecs, typically on HP devices, only Realtek codecs are supported.

Right, so we can't really enable this for generic distros like Ubuntu.

Let me think of a more generic solution.

Re-thinking about this, I actually don't know how this problem occurred:
the tables are conditionally built so you would only select SST if you had the drivers compiled in.

see sound/hda/intel-dsp-config.c:

/* Kabylake-LP */

#if IS_ENABLED(CONFIG_SND_SOC_INTEL_KBL)
     {
         .flags = FLAG_SST,
         .device = 0x9d71,
         .dmi_table = (const struct dmi_system_id []) {
             {
                 .ident = "Google Chromebooks",
                 .matches = {
                     DMI_MATCH(DMI_SYS_VENDOR, "Google"),
                 }
             },
             {}
         }
     },
     {
         .flags = FLAG_SST | FLAG_SST_ONLY_IF_DMIC,
         .device = 0x9d71,
     },

#endif

Quoted 6 lines
Quoted 1 line

Something's not adding up here.

Seems like you can enable CONFIG_SND_SOC_INTEL_KBL (and all other platforms), without enabling CONFIG_SND_SOC_INTEL_SKYLAKE, which enables building of snd_soc_skl module... I would say that there is something wrong with module dependencies in Kconfig :/

Yes that's exactly what happened here.
So I wonder why we need to separate CONFIG_SND_SOC_INTEL_SKYLAKE from other configs...

Quoted 2 lines

Will look at it tomorrow. In the meantime any chance we can get the config which was used, to confirm my suspicion?

Ubuntu 5.8 kernel has this:
# CONFIG_SND_SOC_INTEL_SKYLAKE is not set CONFIG_SND_SOC_INTEL_SKL=m CONFIG_SND_SOC_INTEL_APL=m CONFIG_SND_SOC_INTEL_KBL=m CONFIG_SND_SOC_INTEL_GLK=m
# CONFIG_SND_SOC_INTEL_CNL is not set
# CONFIG_SND_SOC_INTEL_CFL is not set
# CONFIG_SND_SOC_INTEL_CML_H is not set
# CONFIG_SND_SOC_INTEL_CML_LP is not set CONFIG_SND_SOC_INTEL_SKYLAKE_FAMILY=m CONFIG_SND_SOC_INTEL_SKYLAKE_SSP_CLK=m
# CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC is not set CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON=m

So I guess we can do something like this?

sound/hda/intel-dsp-config.c +2 -1
index 1c5114dedda9..c8142520532e 100644
@@ -417,7 +417,7 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
                        return SND_INTEL_DSP_DRIVER_SOF;
        }
 
-
+#if IS_REACHABLE(CONFIG_SND_SOC_INTEL_SKYLAKE)
        if (cfg->flags & FLAG_SST) {
                if (cfg->flags & FLAG_SST_ONLY_IF_DMIC) {
                        if (snd_intel_dsp_check_dmic(pci)) {
@@ -428,6 +428,7 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
                        return SND_INTEL_DSP_DRIVER_SST;
                }
        }
+#endif
 
        return SND_INTEL_DSP_DRIVER_LEGACY;
 }

Kai-Heng

Quoted 3 lines

Thanks,
Amadeusz

#6 lore raw
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

Something's not adding up here.

Seems like you can enable CONFIG_SND_SOC_INTEL_KBL (and all other platforms), without enabling CONFIG_SND_SOC_INTEL_SKYLAKE, which enables building of snd_soc_skl module... I would say that there is something wrong with module dependencies in Kconfig :/

rather the Makefile is wrong, see below.

Quoted 8 lines

Yes that's exactly what happened here.
So I wonder why we need to separate CONFIG_SND_SOC_INTEL_SKYLAKE from other configs...

Quoted 2 lines

Will look at it tomorrow. In the meantime any chance we can get the config which was used, to confirm my suspicion?

Quoted 13 lines

Ubuntu 5.8 kernel has this:
# CONFIG_SND_SOC_INTEL_SKYLAKE is not set CONFIG_SND_SOC_INTEL_SKL=m CONFIG_SND_SOC_INTEL_APL=m CONFIG_SND_SOC_INTEL_KBL=m CONFIG_SND_SOC_INTEL_GLK=m
# CONFIG_SND_SOC_INTEL_CNL is not set
# CONFIG_SND_SOC_INTEL_CFL is not set
# CONFIG_SND_SOC_INTEL_CML_H is not set
# CONFIG_SND_SOC_INTEL_CML_LP is not set CONFIG_SND_SOC_INTEL_SKYLAKE_FAMILY=m CONFIG_SND_SOC_INTEL_SKYLAKE_SSP_CLK=m
# CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC is not set

that would be needed to support DMIC+HDaudio platforms (with the Connexant restriction).

Quoted 25 lines

CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON=m

So I guess we can do something like this?

sound/hda/intel-dsp-config.c +2 -1
index 1c5114dedda9..c8142520532e 100644
@@ -417,7 +417,7 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
                         return SND_INTEL_DSP_DRIVER_SOF;
         }
 
-
+#if IS_REACHABLE(CONFIG_SND_SOC_INTEL_SKYLAKE)
         if (cfg->flags & FLAG_SST) {
                 if (cfg->flags & FLAG_SST_ONLY_IF_DMIC) {
                         if (snd_intel_dsp_check_dmic(pci)) {
@@ -428,6 +428,7 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
                         return SND_INTEL_DSP_DRIVER_SST;
                 }
         }
+#endif
 
         return SND_INTEL_DSP_DRIVER_LEGACY;
  }
Quoted 1 line

Kai-Heng

Can you try this instead, the dependencies are indeed wrong in the Makefile:

sound/soc/intel/Makefile +1 -1
index 4e0248d2accc..7c5038803be7 100644
@@ -5,7 +5,7 @@ obj-$(CONFIG_SND_SOC) += common/
 # Platform Support
 obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += atom/
 obj-$(CONFIG_SND_SOC_INTEL_CATPT) += catpt/
-obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += skylake/
+obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON) += skylake/
 obj-$(CONFIG_SND_SOC_INTEL_KEEMBAY) += keembay/
 
 # Machine support
#7 lore raw
Quoted 34 lines · Pierre-Louis Bossart
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

Something's not adding up here.

Seems like you can enable CONFIG_SND_SOC_INTEL_KBL (and all other platforms), without enabling CONFIG_SND_SOC_INTEL_SKYLAKE, which enables building of snd_soc_skl module... I would say that there is something wrong with module dependencies in Kconfig :/

rather the Makefile is wrong, see below.

Quoted 8 lines

Yes that's exactly what happened here.
So I wonder why we need to separate CONFIG_SND_SOC_INTEL_SKYLAKE from other configs...

Quoted 2 lines

Will look at it tomorrow. In the meantime any chance we can get the config which was used, to confirm my suspicion?

Quoted 13 lines

Ubuntu 5.8 kernel has this:
# CONFIG_SND_SOC_INTEL_SKYLAKE is not set CONFIG_SND_SOC_INTEL_SKL=m CONFIG_SND_SOC_INTEL_APL=m CONFIG_SND_SOC_INTEL_KBL=m CONFIG_SND_SOC_INTEL_GLK=m
# CONFIG_SND_SOC_INTEL_CNL is not set
# CONFIG_SND_SOC_INTEL_CFL is not set
# CONFIG_SND_SOC_INTEL_CML_H is not set
# CONFIG_SND_SOC_INTEL_CML_LP is not set CONFIG_SND_SOC_INTEL_SKYLAKE_FAMILY=m CONFIG_SND_SOC_INTEL_SKYLAKE_SSP_CLK=m
# CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC is not set

Quoted 2 lines

that would be needed to support DMIC+HDaudio platforms (with the Connexant restriction).

So should I enable this option? Is it safe for platforms with Connexant codec?

Quoted 23 lines
Quoted 23 lines

CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON=m

So I guess we can do something like this?

sound/hda/intel-dsp-config.c +2 -1
index 1c5114dedda9..c8142520532e 100644
@@ -417,7 +417,7 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
                         return SND_INTEL_DSP_DRIVER_SOF;
         }
 
-
+#if IS_REACHABLE(CONFIG_SND_SOC_INTEL_SKYLAKE)
         if (cfg->flags & FLAG_SST) {
                 if (cfg->flags & FLAG_SST_ONLY_IF_DMIC) {
                         if (snd_intel_dsp_check_dmic(pci)) {
@@ -428,6 +428,7 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
                         return SND_INTEL_DSP_DRIVER_SST;
                 }
         }
+#endif
 
Quoted 6 lines
Quoted 4 lines
sound/hda/intel-dsp-config.c +0 -0
         return SND_INTEL_DSP_DRIVER_LEGACY;
  }

Kai-Heng

Can you try this instead, the dependencies are indeed wrong in the Makefile:

Ok, compiling a kernel for user to test...

Kai-Heng

Quoted 16 lines
sound/soc/intel/Makefile +1 -1
index 4e0248d2accc..7c5038803be7 100644
@@ -5,7 +5,7 @@ obj-$(CONFIG_SND_SOC) += common/
  # Platform Support
  obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += atom/
  obj-$(CONFIG_SND_SOC_INTEL_CATPT) += catpt/
-obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += skylake/
+obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON) += skylake/
  obj-$(CONFIG_SND_SOC_INTEL_KEEMBAY) += keembay/
 
  # Machine support
#8 lore raw
Quoted 65 lines · Kai-Heng Feng
Quoted 34 lines · Pierre-Louis Bossart
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

Something's not adding up here.

Seems like you can enable CONFIG_SND_SOC_INTEL_KBL (and all other platforms), without enabling CONFIG_SND_SOC_INTEL_SKYLAKE, which enables building of snd_soc_skl module... I would say that there is something wrong with module dependencies in Kconfig :/

rather the Makefile is wrong, see below.

Quoted 8 lines

Yes that's exactly what happened here.
So I wonder why we need to separate CONFIG_SND_SOC_INTEL_SKYLAKE from other configs...

Quoted 2 lines

Will look at it tomorrow. In the meantime any chance we can get the config which was used, to confirm my suspicion?

Quoted 13 lines

Ubuntu 5.8 kernel has this:
# CONFIG_SND_SOC_INTEL_SKYLAKE is not set CONFIG_SND_SOC_INTEL_SKL=m CONFIG_SND_SOC_INTEL_APL=m CONFIG_SND_SOC_INTEL_KBL=m CONFIG_SND_SOC_INTEL_GLK=m
# CONFIG_SND_SOC_INTEL_CNL is not set
# CONFIG_SND_SOC_INTEL_CFL is not set
# CONFIG_SND_SOC_INTEL_CML_H is not set
# CONFIG_SND_SOC_INTEL_CML_LP is not set CONFIG_SND_SOC_INTEL_SKYLAKE_FAMILY=m CONFIG_SND_SOC_INTEL_SKYLAKE_SSP_CLK=m
# CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC is not set

Quoted 2 lines

that would be needed to support DMIC+HDaudio platforms (with the Connexant restriction).

So should I enable this option? Is it safe for platforms with Connexant codec?

Quoted 23 lines
Quoted 23 lines

CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON=m

So I guess we can do something like this?

sound/hda/intel-dsp-config.c +2 -1
index 1c5114dedda9..c8142520532e 100644
@@ -417,7 +417,7 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
                         return SND_INTEL_DSP_DRIVER_SOF;
         }
 
-
+#if IS_REACHABLE(CONFIG_SND_SOC_INTEL_SKYLAKE)
         if (cfg->flags & FLAG_SST) {
                 if (cfg->flags & FLAG_SST_ONLY_IF_DMIC) {
                         if (snd_intel_dsp_check_dmic(pci)) {
@@ -428,6 +428,7 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
                         return SND_INTEL_DSP_DRIVER_SST;
                 }
         }
+#endif
 
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
sound/hda/intel-dsp-config.c +0 -0
         return SND_INTEL_DSP_DRIVER_LEGACY;
  }

Kai-Heng

Can you try this instead, the dependencies are indeed wrong in the Makefile:

Ok, compiling a kernel for user to test...

Well, this happens:
ERROR: modpost: "skl_dsp_set_dma_control" [sound/soc/intel/skylake/snd-soc-skl-ssp-clk.ko] undefined! make[1]: *** [scripts/Makefile.modpost:111: sound/Module.symvers] Error 1 make[1]: *** Deleting file 'sound/Module.symvers'
make: *** [Makefile:1709: modules] Error 2

Kai-Heng

Quoted 19 lines

Kai-Heng

Quoted 16 lines
sound/soc/intel/Makefile +1 -1
index 4e0248d2accc..7c5038803be7 100644
@@ -5,7 +5,7 @@ obj-$(CONFIG_SND_SOC) += common/
  # Platform Support
  obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += atom/
  obj-$(CONFIG_SND_SOC_INTEL_CATPT) += catpt/
-obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += skylake/
+obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON) += skylake/
  obj-$(CONFIG_SND_SOC_INTEL_KEEMBAY) += keembay/
 
  # Machine support
#9 lore raw

On 12/17/2020 9:25 AM, Kai-Heng Feng wrote:
(...)

Quoted 30 lines
Quoted 4 lines
Quoted 2 lines

Can you try this instead, the dependencies are indeed wrong in the Makefile:

Ok, compiling a kernel for user to test...

Well, this happens:
ERROR: modpost: "skl_dsp_set_dma_control" [sound/soc/intel/skylake/snd-soc-skl-ssp-clk.ko] undefined! make[1]: *** [scripts/Makefile.modpost:111: sound/Module.symvers] Error 1 make[1]: *** Deleting file 'sound/Module.symvers'
make: *** [Makefile:1709: modules] Error 2

Kai-Heng

Quoted 16 lines

Kai-Heng

Quoted 13 lines
sound/soc/intel/Makefile +1 -1
index 4e0248d2accc..7c5038803be7 100644
@@ -5,7 +5,7 @@ obj-$(CONFIG_SND_SOC) += common/
   # Platform Support
   obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += atom/
   obj-$(CONFIG_SND_SOC_INTEL_CATPT) += catpt/
-obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += skylake/
+obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON) += skylake/
   obj-$(CONFIG_SND_SOC_INTEL_KEEMBAY) += keembay/
 
Quoted 3 lines
Quoted 3 lines

sound/soc/intel/Makefile obj-$(CONFIG_SND_SOC) += common/ · line 11

Quoted 3 lines
sound/soc/intel/Makefile +0 -0
   # Machine support

Hi,

what is the status of this issue?
Does it now work with usptream kernel?
Can you provide full .config, so we can test on our side?

Amadeusz

A message that is not in the archive (sent off-list or not yet received): CAAd53p7OHhqXDJDuEamXwfseXiUdGfDsJhNJbdUYo_4uoBdzdQ@mail.gmail.com

#11 lore raw
Quoted 41 lines · Kai-Heng Feng
Quoted 39 lines · Amadeusz Sławiński

On 12/17/2020 9:25 AM, Kai-Heng Feng wrote:
(...)

Quoted 30 lines
Quoted 4 lines
Quoted 2 lines

Can you try this instead, the dependencies are indeed wrong in the Makefile:

Ok, compiling a kernel for user to test...

Well, this happens:
ERROR: modpost: "skl_dsp_set_dma_control" [sound/soc/intel/skylake/snd-soc-skl-ssp-clk.ko] undefined! make[1]: *** [scripts/Makefile.modpost:111: sound/Module.symvers] Error 1 make[1]: *** Deleting file 'sound/Module.symvers'
make: *** [Makefile:1709: modules] Error 2

Kai-Heng

Quoted 16 lines

Kai-Heng

Quoted 13 lines
sound/soc/intel/Makefile +1 -1
index 4e0248d2accc..7c5038803be7 100644
@@ -5,7 +5,7 @@ obj-$(CONFIG_SND_SOC) += common/
    # Platform Support
    obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += atom/
    obj-$(CONFIG_SND_SOC_INTEL_CATPT) += catpt/
-obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += skylake/
+obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON) += skylake/
    obj-$(CONFIG_SND_SOC_INTEL_KEEMBAY) += keembay/
 
Quoted 3 lines
Quoted 3 lines

sound/soc/intel/Makefile obj-$(CONFIG_SND_SOC) += common/ · line 11

Quoted 3 lines
sound/soc/intel/Makefile +0 -0
    # Machine support

Hi,

Quoted 8 lines
Quoted 1 line

what is the status of this issue?

Still the same, unresolved.

Quoted 1 line

Does it now work with usptream kernel?

No it doesn't.

Can you try with following patch:

sound/soc/intel/Makefile +1 -1
index 4e0248d2accc..7c5038803be7 100644
@@ -5,7 +5,7 @@ obj-$(CONFIG_SND_SOC) += common/
 # Platform Support
 obj-$(CONFIG_SND_SST_ATOM_HIFI2_PLATFORM) += atom/
 obj-$(CONFIG_SND_SOC_INTEL_CATPT) += catpt/
-obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += skylake/
+obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON) += skylake/
 obj-$(CONFIG_SND_SOC_INTEL_KEEMBAY) += keembay/
 
 # Machine support
sound/soc/intel/skylake/Makefile +1 -1
index dd39149b89b1..1c4649bccec5 100644
@@ -7,7 +7,7 @@ ifdef CONFIG_DEBUG_FS
   snd-soc-skl-objs += skl-debug.o
 endif
 
-obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl.o
+obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE_COMMON) += snd-soc-skl.o
 
 #Skylake Clock device support
 snd-soc-skl-ssp-clk-objs := skl-ssp-clk.o