[PATCH] ASoC: rt1015p: add new acpi id and comapatible id

Jack Yu jack.yu at realtek.com
Wed Mar 17 07:23:09 CET 2021


Add new acpi id and compatible id for rt1015p.

Signed-off-by: Jack Yu <jack.yu at realtek.com>
---
 Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml | 4 +++-
 sound/soc/codecs/rt1015p.c                                   | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml b/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml
index 644b68edf3e1..b898dfa4eb83 100644
--- a/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml
+++ b/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml
@@ -15,7 +15,9 @@ description: |
 
 properties:
   compatible:
-    const: realtek,rt1015p
+    oneOf:
+      - const: realtek,rt1015p
+      - const: realtek,rt1019p
 
   sdb-gpios:
     description:
diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
index 39f4c4ed2ab8..085a7b3c7bb4 100644
--- a/sound/soc/codecs/rt1015p.c
+++ b/sound/soc/codecs/rt1015p.c
@@ -126,6 +126,7 @@ static int rt1015p_platform_probe(struct platform_device *pdev)
 #ifdef CONFIG_OF
 static const struct of_device_id rt1015p_device_id[] = {
 	{ .compatible = "realtek,rt1015p" },
+	{ .compatible = "realtek,rt1019p" },
 	{}
 };
 MODULE_DEVICE_TABLE(of, rt1015p_device_id);
@@ -134,6 +135,7 @@ MODULE_DEVICE_TABLE(of, rt1015p_device_id);
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id rt1015p_acpi_match[] = {
 	{ "RTL1015", 0},
+	{ "RTL1019", 0},
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, rt1015p_acpi_match);
-- 
2.29.0



More information about the Alsa-devel mailing list