From 9e59bc52dc557f6a78161438878dd0b6a734689f Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Sat, 25 Feb 2017 13:27:33 +0530 Subject: [PATCH] land: fm: Use the FM service states to control state Instead of using the BT state, trigger control operations from the actual FM service state Change-Id: Ib8edd47e8dd2ac7393ca3f0c8b903148bea743d6 Signed-off-by: PrateekChaubey Signed-off-by: karthick111 --- rootdir/init.qcom.rc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index cb079f5..4a16ba7 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -534,8 +534,12 @@ service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh on property:bluetooth.hciattach=true start hciattach -on property:bluetooth.hciattach=false - setprop bluetooth.status off +#FM +on property:hw.fm.init=0 + write /sys/module/radio_iris_transport/parameters/fmsmd_set 0 + +on property:hw.fm.init=1 + write /sys/module/radio_iris_transport/parameters/fmsmd_set 1 service bt-dun /system/bin/dun-server /dev/smd7 /dev/rfcomm0 class late_start