Return-Path: From: Szymon Janc To: Andrei Emeltchenko Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCHv2] android/client: Set default handsfree mode for host Date: Tue, 29 Jul 2014 11:00:55 +0200 Message-ID: <1561073.xvDMEqai6q@uw000953> In-Reply-To: <1406548639-15884-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> References: <1406548639-15884-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Andrei, On Monday 28 of July 2014 14:57:19 Andrei Emeltchenko wrote: > From: Andrei Emeltchenko > > For testing set default handsfree mode to HF > --- > android/cutils/properties.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/android/cutils/properties.h b/android/cutils/properties.h > index ef40f01..43f07f1 100644 > --- a/android/cutils/properties.h > +++ b/android/cutils/properties.h > @@ -31,6 +31,7 @@ > #define PROPERTY_VALUE_MAX 32 > > #define BLUETOOTH_MODE_PROPERTY_NAME "persist.sys.bluetooth.mode" > +#define BLUETOOTH_MODE_PROPERTY_HANDSFREE "persist.sys.bluetooth.handsfree" > > static inline int property_get(const char *key, char *value, > const char *default_value) > @@ -40,6 +41,9 @@ static inline int property_get(const char *key, char *value, > if (!strcmp(key, BLUETOOTH_MODE_PROPERTY_NAME)) > prop = getenv("BLUETOOTH_MODE"); > > + if (!strcmp(key, BLUETOOTH_MODE_PROPERTY_HANDSFREE)) > + prop = getenv("BLUETOOTH_HANDSFREE_MODE"); > + > if (!prop) > prop = default_value; > > Patch applied (I've updated commit message), thanks. -- Best regards, Szymon Janc