{"push_id":1091855447,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"65653c5e74df9bd41bee30885996b6ca652bc170","before":"eaec1cb3647229b9d3c17f0a7a69a63fae4ab4ee","commits":[{"sha":"65653c5e74df9bd41bee30885996b6ca652bc170","author":{"email":"5cb699227be62d301a8938d918ca915ca6724ab0@gmail.com","name":"robcore"},"message":"From 5434962ebab83e06b51eb8830375b7fe00c1e720 Mon Sep 17 00:00:00 2001\nFrom: ktoonsez <ktoonsez@gmail.com>\nDate: Fri, 30 Aug 2013 21:16:14 -0700\nSubject: [PATCH 348/391] Remove debug from Mhz MIN media playing routines\n\nConflicts:\n\n\tdrivers/slimbus/slimbus.c\n\nChange-Id: I3aff405638c751ca149ee1651469baa01009bef7\n---\n drivers/slimbus/slimbus.c | 31 +++++++++++++++++++++++++++++++\n 1 file changed, 31 insertions(+)\n\ndiff --git a/drivers/slimbus/slimbus.c b/drivers/slimbus/slimbus.c\nindex a791e66..0f8ce39 100644\n--- a/drivers/slimbus/slimbus.c\n+++ b/drivers/slimbus/slimbus.c\n@@ -43,6 +43,11 @@ static DEFINE_IDR(ctrl_idr);\n static struct device_type slim_dev_type;\n static struct device_type slim_ctrl_type;\n\n+static struct delayed_work music_is_playing;\n+static bool is_music_playing = false;\n+static bool is_music_playing_func_sent = false;\n+extern bool set_music_playing_state(bool val);\n+\n static const struct slim_device_id *slim_match(const struct slim_device_id *id,\n \t\t\t\t\tconst struct slim_device *slim_dev)\n {\n@@ -152,6 +157,13 @@ struct device slimbus_dev = {\n \t.init_name = \"slimbus\",\n };\n\n+static void music_is_playing_fn(struct work_struct *work)\n+{\n+\t//pr_alert(\"MUSIC PLAYING (FUNC) - KTOONSEZ - %d\", is_music_playing);\n+\tif (is_music_playing)\n+\t\tis_music_playing_func_sent = set_music_playing_state(is_music_playing);\n+}\n+\n static void __exit slimbus_exit(void)\n {\n \tdevice_unregister(&slimbus_dev);\n@@ -169,6 +181,8 @@ static int __init slimbus_init(void)\n \tif (retval)\n \t\tbus_unregister(&slimbus_type);\n\n+\tINIT_DELAYED_WORK(&music_is_playing, music_is_playing_fn);\n+\n \treturn retval;\n }\n postcore_initcall(slimbus_init);\n@@ -2807,6 +2821,23 @@ int slim_control_ch(struct slim_device *sb, u16 chanh,\n \t\tslc = &ctrl->chans[chan];\n \t\tpr_info(\"-slimdebug-chan:%d,ctrl:%d,def:%d, ref:%d\", slc->chan,\n \t\t\tchctrl, slc->def, slc->ref); /* slimbus debug patch */\n+\t\t//MEDIA ON\n+\t\tif (chctrl == 0 && slc->def == 1 && slc->ref == 3)\n+\t\t{\n+\t\t\t//pr_alert(\"MUSIC PLAYING (TRIG) - KTOONSEZ - %d\", is_music_playing);\n+\t\t\tif (!is_music_playing)\n+\t\t\t\tschedule_delayed_work_on(0, &music_is_playing, msecs_to_jiffies(10000));\n+\t\t\tis_music_playing = true;\n+\t\t}\n+\t\t//MEDIA OFF\n+\t\tif (chctrl == 2 && slc->def == 1 && slc->ref == 2)\n+\t\t{\n+\t\t\tis_music_playing = false;\n+\t\t\tif (is_music_playing_func_sent)\n+\t\t\t\tset_music_playing_state(is_music_playing);\n+\t\t\tis_music_playing_func_sent = false;\n+\t\t\t//pr_alert(\"MUSIC STOPPED - KTOONSEZ\");\n+\t\t}\n \t\tif (slc->state < SLIM_CH_DEFINED) {\n \t\t\tret = -ENOTCONN;\n \t\t\tbreak;\n--\n2.8.0.rc3","distinct":true,"url":"https://api.github.com/repos/robcore/S4-AEL-Kernel-Lollipop/commits/65653c5e74df9bd41bee30885996b6ca652bc170"}]}