diff options
author | Mark Brown <broonie@kernel.org> | 2023-09-15 23:16:37 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-15 23:16:37 +0300 |
commit | 33f9b528de0aa485a9b99a26cdf2e846ad9e6fd9 (patch) | |
tree | 5ebe1b4efff7c333898bdc83f2d20734fbde6b18 /sound/soc/sof/ipc4-topology.c | |
parent | e81a600d42bba96f737ec66c467de3376e00f9ff (diff) | |
parent | 26dfc43461102957e33454e766d592df330ef7a0 (diff) | |
download | linux-33f9b528de0aa485a9b99a26cdf2e846ad9e6fd9.tar.xz |
ASoC: SOF: ipc4: Fixup dailink format based on copier
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:
If the copier supports a single format on the DAI side we should fixup the BE
dailink to use this single format.
Diffstat (limited to 'sound/soc/sof/ipc4-topology.c')
-rw-r--r-- | sound/soc/sof/ipc4-topology.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/sof/ipc4-topology.c b/sound/soc/sof/ipc4-topology.c index ef065e4c51cd..2462feceda5d 100644 --- a/sound/soc/sof/ipc4-topology.c +++ b/sound/soc/sof/ipc4-topology.c @@ -1369,9 +1369,9 @@ static int snd_sof_get_nhlt_endpoint_data(struct snd_sof_dev *sdev, struct snd_s } #endif -static bool sof_ipc4_copier_is_single_format(struct snd_sof_dev *sdev, - struct sof_ipc4_pin_format *pin_fmts, - u32 pin_fmts_size) +bool sof_ipc4_copier_is_single_format(struct snd_sof_dev *sdev, + struct sof_ipc4_pin_format *pin_fmts, + u32 pin_fmts_size) { struct sof_ipc4_audio_format *fmt; u32 valid_bits; @@ -1380,7 +1380,7 @@ static bool sof_ipc4_copier_is_single_format(struct snd_sof_dev *sdev, fmt = &pin_fmts[0].audio_fmt; valid_bits = SOF_IPC4_AUDIO_FORMAT_CFG_V_BIT_DEPTH(fmt->fmt_cfg); - /* check if all output formats in topology are the same */ + /* check if all formats in topology are the same */ for (i = 1; i < pin_fmts_size; i++) { u32 _valid_bits; |