devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: omap-abe-twl6040: Use "ti, jack-detection" DT property as boolean
@ 2012-11-28 10:35 Peter Ujfalusi
       [not found] ` <1354098943-16185-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Ujfalusi @ 2012-11-28 10:35 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood; +Cc: alsa-devel, devicetree-discuss

Handle the jack detection inforamtion as bool from devicetree.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt | 4 ++--
 sound/soc/omap/omap-abe-twl6040.c                            | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt b/Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt
index 65dec87..fd40c85 100644
--- a/Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt
+++ b/Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt
@@ -12,7 +12,7 @@ Required properties:
 
 Optional properties:
 - ti,dmic: phandle for the OMAP dmic node if the machine have it connected
-- ti,jack_detection: Need to be set to <1> if the board capable to detect jack
+- ti,jack_detection: Need to be present if the board capable to detect jack
   insertion, removal.
 
 Available audio endpoints for the audio-routing table:
@@ -59,7 +59,7 @@ sound {
 	compatible = "ti,abe-twl6040";
 	ti,model = "SDP4430";
 
-	ti,jack-detection = <1>;
+	ti,jack-detection;
 	ti,mclk-freq = <38400000>;
 
 	ti,mcpdm = <&mcpdm>;
diff --git a/sound/soc/omap/omap-abe-twl6040.c b/sound/soc/omap/omap-abe-twl6040.c
index a57a4e6..1d6ea86 100644
--- a/sound/soc/omap/omap-abe-twl6040.c
+++ b/sound/soc/omap/omap-abe-twl6040.c
@@ -331,8 +331,8 @@ static __devinit int omap_abe_probe(struct platform_device *pdev)
 			num_links = 1;
 		}
 
-		of_property_read_u32(node, "ti,jack-detection",
-				     &priv->jack_detection);
+		priv->jack_detection = of_property_read_bool(node,
+							   "ti,jack-detection");
 		of_property_read_u32(node, "ti,mclk-freq",
 				     &priv->mclk_freq);
 		if (!priv->mclk_freq) {
-- 
1.8.0

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

* Re: [PATCH] ASoC: omap-abe-twl6040: Use "ti,jack-detection" DT property as boolean
       [not found] ` <1354098943-16185-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>
@ 2012-11-28 19:17   ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-11-28 19:17 UTC (permalink / raw)
  To: Peter Ujfalusi
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Liam Girdwood


[-- Attachment #1.1: Type: text/plain, Size: 147 bytes --]

On Wed, Nov 28, 2012 at 11:35:43AM +0100, Peter Ujfalusi wrote:
> Handle the jack detection inforamtion as bool from devicetree.

Applied, thanks.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 192 bytes --]

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

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

end of thread, other threads:[~2012-11-28 19:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-28 10:35 [PATCH] ASoC: omap-abe-twl6040: Use "ti, jack-detection" DT property as boolean Peter Ujfalusi
     [not found] ` <1354098943-16185-1-git-send-email-peter.ujfalusi-l0cyMroinI0@public.gmane.org>
2012-11-28 19:17   ` [PATCH] ASoC: omap-abe-twl6040: Use "ti,jack-detection" " Mark Brown

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).