From cd719e44db7d34075206d9c7f83d45baf74cb9c7 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 --- rootdir/init.qcom.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 77ef6ec..e5524f5 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -575,6 +575,13 @@ service port-bridge /system/bin/port-bridge group radio system inet oneshot +# 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 + # QMUX must be in multiple groups to support external process connections service qmuxd /system/bin/qmuxd class main