linux-stable/sound/soc/intel
Hans de Goede 930375d34d
ASoC: Intel: cht_bsw_rt5645: Cleanup codec_name handling
4 fixes / cleanups to the rt5645 mc driver's codec_name handling:

1. In the for loop looking for the dai_index for the codec, replace
card->dai_link[i] with cht_dailink[i]. The for loop already uses
ARRAY_SIZE(cht_dailink) as bound and card->dai_link is just a pointer to
cht_dailink using card->dai_link only obfuscates that cht_dailink is being
modified directly rather then say a copy of cht_dailink. Using
cht_dailink[i] also makes the code consistent with other machine drivers.

2. Don't set cht_dailink[dai_index].codecs->name in the for loop,
this immediately gets overridden using acpi_dev_name(adev) directly
below the loop.

3. Add a missing break to the loop.

4. Remove the now no longer used (only set, never read) codec_name field
from struct cht_mc_private.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240210134400.24913-3-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-02-11 16:57:24 +00:00
..
atom ASoC: intel: convert not to use asoc_xxx() 2023-09-26 17:18:40 +02:00
avs ASoC: Intel: avs: Fix dynamic port assignment when TDM is set 2024-02-07 15:23:49 +00:00
boards ASoC: Intel: cht_bsw_rt5645: Cleanup codec_name handling 2024-02-11 16:57:24 +00:00
catpt ASoC: intel: convert not to use asoc_xxx() 2023-09-26 17:18:40 +02:00
common ASoC: Updates for v6.8 2024-01-08 08:18:02 +01:00
keembay ASoC: Use device_get_match_data() 2023-10-09 13:13:59 +01:00
skylake Merge branch 'topic/cs35l41' into for-next 2023-12-29 15:14:07 +01:00
Kconfig ASoC: Intel: avs: Probe compress operations 2022-12-05 14:05:27 +00:00
Makefile ASoC: Intel: Introduce AVS driver 2022-03-11 16:23:54 +00:00