From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 2/3] Fix not resetting indicators whenever the driver is initialized
Date: Mon, 14 Feb 2011 12:21:21 +0200 [thread overview]
Message-ID: <1297678882-26893-2-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1297678882-26893-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
This may cause invalid values to be reported since the status of call can
change during the time adaptor was off.
---
audio/telephony-maemo6.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c
index 0c99c34..0ab1a77 100644
--- a/audio/telephony-maemo6.c
+++ b/audio/telephony-maemo6.c
@@ -1981,6 +1981,15 @@ int telephony_init(void)
DBG("telephony-maemo6 registering %s interface on path %s",
TELEPHONY_MAEMO_INTERFACE, TELEPHONY_MAEMO_PATH);
+ /* Reset indicators */
+ telephony_update_indicator(maemo_indicators, "battchg", 5);
+ telephony_update_indicator(maemo_indicators, "signal", 0);
+ telephony_update_indicator(maemo_indicators, "service", 0);
+ telephony_update_indicator(maemo_indicators, "call", 0);
+ telephony_update_indicator(maemo_indicators, "callsetup", 0);
+ telephony_update_indicator(maemo_indicators, "callhelp", 0);
+ telephony_update_indicator(maemo_indicators, "roam", 0);
+
telephony_ready_ind(features, maemo_indicators, BTRH_NOT_SUPPORTED,
chld_str);
if (send_method_call("org.freedesktop.Hal",
--
1.7.1
next prev parent reply other threads:[~2011-02-14 10:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-14 10:21 [PATCH 1/3] Fix not stopping name resolving when discovery is suspended Luiz Augusto von Dentz
2011-02-14 10:21 ` Luiz Augusto von Dentz [this message]
2011-02-14 10:26 ` [PATCH 2/3] Fix not resetting indicators whenever the driver is initialized Luiz Augusto von Dentz
2011-02-14 10:21 ` [PATCH 3/3] Fix not updating call indicator when parsing call info reply Luiz Augusto von Dentz
2011-02-15 14:14 ` [PATCH 1/3] Fix not stopping name resolving when discovery is suspended Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1297678882-26893-2-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox