* [PATCH] ALSA: hda: intel-dsp-config: add Alder Lake support
@ 2021-02-10 11:13 Kai Vehmanen
2021-02-10 13:06 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Kai Vehmanen @ 2021-02-10 11:13 UTC (permalink / raw)
To: alsa-devel, tiwai
Cc: Xiuli Pan, broonie, pierre-louis.bossart, kai.vehmanen,
Ranjani Sridharan
Add rules to select SOF driver for Alder Lake systems if a digital
microphone or SoundWire codecs are present in the system. This is
following same rules as for older Tiger Lake systems.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Xiuli Pan <xiuli.pan@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
sound/hda/intel-dsp-config.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
NOTES:
- PCI id 0x51c8 is not yet in tiwai/master, but it's in Mark's
tree added with patch "ASoC: SOF: Intel: initial support to AlderLake-P"
diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c
index 68bb977c6a37..d1eb9d34993a 100644
--- a/sound/hda/intel-dsp-config.c
+++ b/sound/hda/intel-dsp-config.c
@@ -321,6 +321,18 @@ static const struct config_entry config_table[] = {
},
#endif
+/* Alder Lake */
+#if IS_ENABLED(CONFIG_SND_SOC_SOF_ALDERLAKE)
+ {
+ .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
+ .device = 0x7ad0,
+ },
+ {
+ .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
+ .device = 0x51c8,
+ },
+#endif
+
};
static const struct config_entry *snd_intel_dsp_find_config
base-commit: fbd0a1d723513f82c9521c363e93967618517bb8
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: hda: intel-dsp-config: add Alder Lake support
2021-02-10 11:13 [PATCH] ALSA: hda: intel-dsp-config: add Alder Lake support Kai Vehmanen
@ 2021-02-10 13:06 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2021-02-10 13:06 UTC (permalink / raw)
To: Kai Vehmanen
Cc: alsa-devel, broonie, pierre-louis.bossart, Xiuli Pan, Ranjani Sridharan
On Wed, 10 Feb 2021 12:13:10 +0100,
Kai Vehmanen wrote:
>
> Add rules to select SOF driver for Alder Lake systems if a digital
> microphone or SoundWire codecs are present in the system. This is
> following same rules as for older Tiger Lake systems.
>
> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
> Reviewed-by: Xiuli Pan <xiuli.pan@intel.com>
> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> ---
> sound/hda/intel-dsp-config.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> NOTES:
> - PCI id 0x51c8 is not yet in tiwai/master, but it's in Mark's
> tree added with patch "ASoC: SOF: Intel: initial support to AlderLake-P"
OK, then for consistency, I'll wait for Mark's PR for his tree, then
merge this one over it.
thanks,
Takashi
>
> diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c
> index 68bb977c6a37..d1eb9d34993a 100644
> --- a/sound/hda/intel-dsp-config.c
> +++ b/sound/hda/intel-dsp-config.c
> @@ -321,6 +321,18 @@ static const struct config_entry config_table[] = {
> },
> #endif
>
> +/* Alder Lake */
> +#if IS_ENABLED(CONFIG_SND_SOC_SOF_ALDERLAKE)
> + {
> + .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
> + .device = 0x7ad0,
> + },
> + {
> + .flags = FLAG_SOF | FLAG_SOF_ONLY_IF_DMIC_OR_SOUNDWIRE,
> + .device = 0x51c8,
> + },
> +#endif
> +
> };
>
> static const struct config_entry *snd_intel_dsp_find_config
>
> base-commit: fbd0a1d723513f82c9521c363e93967618517bb8
> --
> 2.29.2
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-10 13:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10 11:13 [PATCH] ALSA: hda: intel-dsp-config: add Alder Lake support Kai Vehmanen
2021-02-10 13:06 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).