From: Marco Felsch <m.felsch@pengutronix.de>
To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org,
mark.rutland@arm.com
Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
"Andreas Färber" <afaerber@suse.de>,
kernel@pengutronix.de
Subject: [PATCH v2 2/5] ASoC: max98088: add OF support
Date: Fri, 5 Oct 2018 09:58:09 +0200 [thread overview]
Message-ID: <20181005075812.13986-3-m.felsch@pengutronix.de> (raw)
In-Reply-To: <20181005075812.13986-1-m.felsch@pengutronix.de>
From: Andreas Färber <afaerber@suse.de>
MAX98088 is just an older version of the MAX98089 device. Both devices
have the same capabilities. There is only one minor difference in JACK
detection and the related power-save modi, but the MAX98089 is backward
compatible to the MAX98088.
Signed-off-by: Andreas Färber <afaerber@suse.de>
[m.felsch@pengutronix.de: add CONFIG_OF compile switch]
[m.felsch@pengutronix.de: adapt commit message]
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
sound/soc/codecs/max98088.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index fb515aaa54fc..9450d5d9c492 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -1742,9 +1742,19 @@ static const struct i2c_device_id max98088_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, max98088_i2c_id);
+#if defined(CONFIG_OF)
+static const struct of_device_id max98088_of_match[] = {
+ { .compatible = "maxim,max98088" },
+ { .compatible = "maxim,max98089" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, max98088_of_match);
+#endif
+
static struct i2c_driver max98088_i2c_driver = {
.driver = {
.name = "max98088",
+ .of_match_table = of_match_ptr(max98088_of_match),
},
.probe = max98088_i2c_probe,
.id_table = max98088_i2c_id,
--
2.19.0
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2018-10-05 7:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-05 7:58 [PATCH v2 0/5] MAX98088/9 of features Marco Felsch
2018-10-05 7:58 ` [PATCH v2 1/5] ASoC: dt-bindings: add max98088 audio codec Marco Felsch
2018-10-12 20:29 ` Rob Herring
2018-10-05 7:58 ` Marco Felsch [this message]
2018-10-05 7:58 ` [PATCH v2 3/5] ASoC: dt-bindings: max98088: add external clock binding Marco Felsch
2018-10-08 18:54 ` Applied "ASoC: dt-bindings: max98088: add external clock binding" to the asoc tree Mark Brown
2018-10-05 7:58 ` [PATCH v2 4/5] ASoC: max98088: Add master clock handling Marco Felsch
2018-10-05 7:58 ` [PATCH v2 5/5] ASoC: max98988: make it selectable Marco Felsch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181005075812.13986-3-m.felsch@pengutronix.de \
--to=m.felsch@pengutronix.de \
--cc=afaerber@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kernel@pengutronix.de \
--cc=lgirdwood@gmail.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).