]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: Add support for ti,pcm5242 to the pcm512x driver
authorChristian Hewitt <christianshewitt@gmail.com>
Sat, 22 Jun 2024 13:12:45 +0000 (13:12 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 22 Jun 2024 13:46:29 +0000 (14:46 +0100)
Add a compatible string to enable support for the ti,pcm5242 DAC chip
in the pcm512x driver.

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Link: https://patch.msgid.link/20240622131245.2607533-3-christianshewitt@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm512x-i2c.c
sound/soc/codecs/pcm512x-spi.c

index 4be476a280e10ba30c5d764383d4b4646ff857b3..92bcf5179779ff4ef702ac75e7b15fb72e4ff11c 100644 (file)
@@ -39,6 +39,7 @@ static const struct i2c_device_id pcm512x_i2c_id[] = {
        { "pcm5122", },
        { "pcm5141", },
        { "pcm5142", },
+       { "pcm5242", },
        { "tas5754", },
        { "tas5756", },
        { }
@@ -51,6 +52,7 @@ static const struct of_device_id pcm512x_of_match[] = {
        { .compatible = "ti,pcm5122", },
        { .compatible = "ti,pcm5141", },
        { .compatible = "ti,pcm5142", },
+       { .compatible = "ti,pcm5242", },
        { .compatible = "ti,tas5754", },
        { .compatible = "ti,tas5756", },
        { }
index 4d29e71963800b1dd80aca3af4785b5f4a9ef3a0..6629b862f47d055699be59143fe5e9dcaff61af8 100644 (file)
@@ -36,6 +36,7 @@ static const struct spi_device_id pcm512x_spi_id[] = {
        { "pcm5122", },
        { "pcm5141", },
        { "pcm5142", },
+       { "pcm5242", },
        { },
 };
 MODULE_DEVICE_TABLE(spi, pcm512x_spi_id);
@@ -45,6 +46,7 @@ static const struct of_device_id pcm512x_of_match[] = {
        { .compatible = "ti,pcm5122", },
        { .compatible = "ti,pcm5141", },
        { .compatible = "ti,pcm5142", },
+       { .compatible = "ti,pcm5242", },
        { }
 };
 MODULE_DEVICE_TABLE(of, pcm512x_of_match);