ASoC: tas2562: move tas2563 from tas2562 driver to tas2781 driver
authorShenghao Ding <shenghao-ding@ti.com>
Thu, 4 Jan 2024 14:57:17 +0000 (22:57 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 5 Jan 2024 13:27:16 +0000 (13:27 +0000)
Move tas2563 from tas2562 driver to tas2781 driver to unbind tas2563 from
tas2562 driver code and bind it to tas2781 driver code, because tas2563
only work in bypass-DSP mode with tas2562 driver. In order to enable DSP
mode for tas2563, it has been moved to tas2781 driver. As to the hardware
part, such as register setting and DSP firmware, all these are stored in
the binary firmware. What tas2781 drivder does is to parse the firmware
and download it to the chip, then power on the chip. So, tas2781 driver
can be resued as tas2563 driver. Only attention will be paid to
downloading corresponding firmware.

Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://msgid.link/r/20240104145721.1398-2-shenghao-ding@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2562.c

index 962c2cdfa017441ce74d7084f14f2b765bf29b74..54561ae598b87ac3db985eea203b7b1508090804 100644 (file)
@@ -59,7 +59,6 @@ struct tas2562_data {
 
 enum tas256x_model {
        TAS2562,
-       TAS2563,
        TAS2564,
        TAS2110,
 };
@@ -721,7 +720,6 @@ static int tas2562_parse_dt(struct tas2562_data *tas2562)
 
 static const struct i2c_device_id tas2562_id[] = {
        { "tas2562", TAS2562 },
-       { "tas2563", TAS2563 },
        { "tas2564", TAS2564 },
        { "tas2110", TAS2110 },
        { }
@@ -770,7 +768,6 @@ static int tas2562_probe(struct i2c_client *client)
 #ifdef CONFIG_OF
 static const struct of_device_id tas2562_of_match[] = {
        { .compatible = "ti,tas2562", },
-       { .compatible = "ti,tas2563", },
        { .compatible = "ti,tas2564", },
        { .compatible = "ti,tas2110", },
        { },