drivers/soundwire: Unify SoundWire ALC codec names under ALC 7 Series

This change removes individual conditional blocks for specific ALC
codec models and introduces a common name for the entire ALC 7 Series
configuration.

TEST=Build and test with DRIVERS_SOUNDWIRE_ALC_BASE_7XX.

Change-Id: Ib7c33351207df472cd11243244063b007c24d9bf
Signed-off-by: Varun Upadhyay <varun.upadhyay@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84646
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
Varun Upadhyay 2024-10-03 13:22:38 +05:30 committed by Martin L Roth
commit 18890c8206

View file

@ -158,10 +158,8 @@ static void soundwire_alc711_enable(struct device *dev)
}
struct chip_operations drivers_soundwire_alc711_ops = {
#if CONFIG(DRIVERS_SOUNDWIRE_ALC711)
.name = "Realtek ALC711 SoundWire Codec",
#elif CONFIG(DRIVERS_SOUNDWIRE_ALC722)
.name = "Realtek ALC722 SoundWire Codec",
#if CONFIG(DRIVERS_SOUNDWIRE_ALC_BASE_7XX)
.name = "Realtek ALC 7 Series SoundWire Codec",
#else
.name = "Unknown",
#endif