[PATCH v2 4/5] ASoC: pcm179x: Add compatible string for pcm1796 and spi_ids entry

From: Roman Smrž

Date: Fri Oct 16 2026 - 06:42:27 EST


The PCM1796 is fully compatible with the PCM1792A.

Signed-off-by: Roman Smrž <roman@xxxxxxxxxxxxxxxxxxxx>

---
Changes in v2:
- Added missing entry to spi_ids.
---
sound/soc/codecs/pcm179x-i2c.c | 1 +
sound/soc/codecs/pcm179x-spi.c | 2 ++
2 files changed, 3 insertions(+)

diff --git a/sound/soc/codecs/pcm179x-i2c.c b/sound/soc/codecs/pcm179x-i2c.c
index 5337bcc7c62c..e81e20fadadf 100644
--- a/sound/soc/codecs/pcm179x-i2c.c
+++ b/sound/soc/codecs/pcm179x-i2c.c
@@ -32,6 +32,7 @@ static int pcm179x_i2c_probe(struct i2c_client *client)
#ifdef CONFIG_OF
static const struct of_device_id pcm179x_of_match[] = {
{ .compatible = "ti,pcm1792a", },
+ { .compatible = "ti,pcm1796", },
{ }
};
MODULE_DEVICE_TABLE(of, pcm179x_of_match);
diff --git a/sound/soc/codecs/pcm179x-spi.c b/sound/soc/codecs/pcm179x-spi.c
index 192fee90c971..4b873f2986c7 100644
--- a/sound/soc/codecs/pcm179x-spi.c
+++ b/sound/soc/codecs/pcm179x-spi.c
@@ -31,12 +31,14 @@ static int pcm179x_spi_probe(struct spi_device *spi)

static const struct of_device_id pcm179x_of_match[] __maybe_unused = {
{ .compatible = "ti,pcm1792a", },
+ { .compatible = "ti,pcm1796" },
{ }
};
MODULE_DEVICE_TABLE(of, pcm179x_of_match);

static const struct spi_device_id pcm179x_spi_ids[] = {
{ "pcm1792a", 0 },
+ { "pcm1796", 0 },
{ "pcm179x", 0 },
{ },
};

--
2.55.0