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 <prateekchaubey123@gmail.com>
Signed-off-by: karthick111 <karthickrko61@gmail.com>
This commit is contained in:
Ricardo Cerqueira 2017-02-25 13:27:33 +05:30 committed by PrateekChaubey
parent 7586f60240
commit 9e59bc52dc

View file

@ -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