All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: rt1015p: add new acpi id and comapatible id
@ 2021-03-17  6:23 Jack Yu
       [not found] ` <423b6c6b835e431da2f196036ac2ab4f@realtek.com>
  2021-08-09 15:54 ` Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Jack Yu @ 2021-03-17  6:23 UTC (permalink / raw)
  To: broonie, lgirdwood
  Cc: oder_chiou, Jack Yu, alsa-devel, lars, kent_chen, kenny_chen,
	tzungbi, derek.fang, shumingf, flove

Add new acpi id and compatible id for rt1015p.

Signed-off-by: Jack Yu <jack.yu@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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-09 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17  6:23 [PATCH] ASoC: rt1015p: add new acpi id and comapatible id Jack Yu
     [not found] ` <423b6c6b835e431da2f196036ac2ab4f@realtek.com>
2021-08-09  9:59   ` Tzung-Bi Shih
2021-08-09 11:38   ` Mark Brown
2021-08-09 15:54 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.