ASoC: rt721: Add support for the RT721_U and RT718 codec variants
Subsystems (3)
Oder Chiou
maintainerPATCH 1/1 ASoC: rt721: Add support for the RT721_U and RT718 codec variants
The RT721_U and RT718 variants share most of the register layout and driver behavior with RT721. Extend the existing RT721 driver to recognize these variants and apply variant-specific settings where required.
--- sound/soc/codecs/rt721-sdca-sdw.c | 3 + sound/soc/codecs/rt721-sdca.c | 199 +++++++++++++++++++++++++--- sound/soc/codecs/rt721-sdca.h | 12 ++ sound/soc/sdw_utils/soc_sdw_utils.c | 46 +++++++ 4 files changed, 242 insertions(+), 18 deletions(-)
sound/soc/codecs/rt721-sdca-sdw.c +3 -0
@@ -91,6 +91,7 @@ static bool rt721_sdca_mbq_readable_register(struct device *dev, unsigned int recase 0x5810037 :case 0x5810038 :case 0x5810039 : +case 0x5810100 :case 0x5b10018 :case 0x5b10019 :case 0x5f00045 :
@@ -167,6 +168,7 @@ static bool rt721_sdca_mbq_volatile_register(struct device *dev, unsigned int recase 0x5810037 :case 0x5810038 :case 0x5810039 : +case 0x5810100 :case 0x5b10018 :case 0x5b10019 :case 0x6100006 :
@@ -448,6 +450,7 @@ static void rt721_sdca_sdw_remove(struct sdw_slave *slave)static const struct sdw_device_id rt721_sdca_id[] = {SDW_SLAVE_ENTRY_EXT (0x025d ,0x721 ,0x3 ,0x1 ,0 ), +SDW_SLAVE_ENTRY_EXT (0x025d ,0x718 ,0x3 ,0x1 ,0 ), {}, };MODULE_DEVICE_TABLE (sdw, rt721_sdca_id);
sound/soc/codecs/rt721-sdca.c +181 -18
286 lines not on this page · raw message
sound/soc/codecs/rt721-sdca.h +12 -0
@@ -40,6 +40,8 @@ struct rt721_sdca_priv {/* For DMIC */ bool fu1e_dapm_mute;bool fu1e_mixer_mute[4 ]; +int wf_id; +int hw_vid; };struct rt721_sdca_dmic_kctrl_priv {
@@ -273,6 +275,16 @@ enum { RT721_AIFS, }; +enum rt721_wf_id { +RT721_S , +RT721_U , +}; + +enum rt721u_hw_ver { +RT721_U_VB =1 , +RT721_U_VD =3 , +}; +int rt721_sdca_io_init (struct device *dev,struct sdw_slave *slave);int rt721_sdca_init (struct device *dev,struct regmap *regmap,struct regmap *mbq_regmap,struct sdw_slave *slave);
sound/soc/sdw_utils/soc_sdw_utils.c +46 -0
52 lines not on this page · raw message
Signature · 1 line
2.54.0
Mark Brown
maintainerQuoted 1 line · Oder Chiou
ASoC: rt721: Add support for the
RT721_Uand RT718 codec variants
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4
Thanks!
[1/1] ASoC: rt721: Add support for the RT721_U and RT718 codec variants
https://git.kernel.org/broonie/sound/c/7325b35a12d7
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark