ASoC: SOF: Intel: hda: extend signature of sdw_hda_dai_hw_params()
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 2 Apr 2024 15:18:20 +0000 (10:18 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2024 16:14:50 +0000 (17:14 +0100)
Add intel_alh_id to set the expected gateway node_id in a follow-up
patch.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240402151828.175002-10-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai.c
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/hda.h

index 86efcbe8f0d8438f91cd5f8e4ad68756a617f943..5e3229c8fe1328884e7ff2f1029adeee6b5845d1 100644 (file)
@@ -470,7 +470,8 @@ static const struct snd_soc_dai_ops dmic_dai_ops = {
 int sdw_hda_dai_hw_params(struct snd_pcm_substream *substream,
                          struct snd_pcm_hw_params *params,
                          struct snd_soc_dai *cpu_dai,
-                         int link_id)
+                         int link_id,
+                         int intel_alh_id)
 {
        struct snd_soc_dapm_widget *w = snd_soc_dai_get_widget(cpu_dai, substream->stream);
        struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
index e26b8fd682e5e6ed99873ff7531406b673b5129a..63f1cf3b915f4c998d12111808c648832800c838 100644 (file)
@@ -159,7 +159,8 @@ static int sdw_ace2x_params_stream(struct device *dev,
        return sdw_hda_dai_hw_params(params_data->substream,
                                     params_data->hw_params,
                                     params_data->dai,
-                                    params_data->link_id);
+                                    params_data->link_id,
+                                    params_data->alh_stream_id);
 }
 
 static int sdw_ace2x_free_stream(struct device *dev,
index b36eb7c7891335a3038d5e1402d6f73ede754b81..3bf7427dc918b27a4d13bd84610a5357771fc83e 100644 (file)
@@ -844,7 +844,8 @@ static inline bool hda_common_check_sdw_irq(struct snd_sof_dev *sdev)
 int sdw_hda_dai_hw_params(struct snd_pcm_substream *substream,
                          struct snd_pcm_hw_params *params,
                          struct snd_soc_dai *cpu_dai,
-                         int link_id);
+                         int link_id,
+                         int intel_alh_id);
 
 int sdw_hda_dai_hw_free(struct snd_pcm_substream *substream,
                        struct snd_soc_dai *cpu_dai,