From 1d30d48c8b2ba1ffadc90befb545e10782b67cdb Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Thu, 20 Oct 2016 13:48:13 +0900 Subject: Use the car audio COD(class of device) for IVI targets Change-Id: I6a1b03dd8e45d56b580929938b18dac75396786e Signed-off-by: DoHyun Pyun --- packaging/bluez.spec | 6 +++- src/main_ivi.conf | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 src/main_ivi.conf diff --git a/packaging/bluez.spec b/packaging/bluez.spec index 38807c18..6c90d022 100644 --- a/packaging/bluez.spec +++ b/packaging/bluez.spec @@ -4,7 +4,7 @@ Name: bluez Summary: Bluetooth Stack for Linux Version: 5.37 -Release: 1 +Release: 2 Group: Network & Connectivity/Bluetooth License: GPL-2.0+ and LGPL-2.1+ and Apache-2.0 URL: http://www.bluez.org/ @@ -162,8 +162,12 @@ install --mode 0755 -d $RPM_BUILD_ROOT/var/lib/bluetooth %if "%{?profile}" == "wearable" install -D -m 0644 src/main_w.conf %{buildroot}%{_sysconfdir}/bluetooth/main.conf %else +%if "%{?profile}" == "ivi" +install -D -m 0644 src/main_ivi.conf %{buildroot}%{_sysconfdir}/bluetooth/main.conf +%else install -D -m 0644 src/main_m.conf %{buildroot}%{_sysconfdir}/bluetooth/main.conf %endif +%endif #install -D -m 0644 src/bluetooth.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/bluetooth.conf diff --git a/src/main_ivi.conf b/src/main_ivi.conf new file mode 100644 index 00000000..cdc79d15 --- /dev/null +++ b/src/main_ivi.conf @@ -0,0 +1,87 @@ +[General] + +# Default adaper name +# %h - substituted for hostname +# %d - substituted for adapter id +# Defaults to 'BlueZ' +#Name = %h-%d + +# Default device class. Only the major and minor device class bits are +# considered. Defaults to '0x000000'. +#ifdef __TIZEN_PATCH__ +Class = 0x200420 # IVI device +#else +#Class = 0x000100 +#endif + +# How long to stay in discoverable mode before going back to non-discoverable +# The value is in seconds. Default is 180, i.e. 3 minutes. +# 0 = disable timer, i.e. stay discoverable forever +#DiscoverableTimeout = 0 + +# How long to stay in pairable mode before going back to non-discoverable +# The value is in seconds. Default is 0. +# 0 = disable timer, i.e. stay pairable forever +#PairableTimeout = 0 + +# Automatic connection for bonded devices driven by platform/user events. +# If a platform plugin uses this mechanism, automatic connections will be +# enabled during the interval defined below. Initially, this feature +# intends to be used to establish connections to ATT channels. Default is 60. +#AutoConnectTimeout = 60 + +# Use vendor id source (assigner), vendor, product and version information for +# DID profile support. The values are separated by ":" and assigner, VID, PID +# and version. +# Possible vendor id source values: bluetooth, usb (defaults to usb) +#DeviceID = bluetooth:1234:5678:abcd + +# Do reverse service discovery for previously unknown devices that connect to +# us. This option is really only needed for qualification since the BITE tester +# doesn't like us doing reverse SDP for some test cases (though there could in +# theory be other useful purposes for this too). Defaults to 'true'. +#ReverseServiceDiscovery = true + +# Enable name resolving after inquiry. Set it to 'false' if you don't need +# remote devices name and want shorter discovery cycle. Defaults to 'true'. +#NameResolving = true + +# Enable runtime persistency of debug link keys. Default is false which +# makes debug link keys valid only for the duration of the connection +# that they were created for. +#DebugKeys = false + +# Restricts all controllers to the specified transport. Default value +# is "dual", i.e. both BR/EDR and LE enabled (when supported by the HW). +# Possible values: "dual", "bredr", "le" +#ControllerMode = dual + +# Enables Multi Profile Specification support. This allows to specify if +# system supports only Multiple Profiles Single Device (MPSD) configuration +# or both Multiple Profiles Single Device (MPSD) and Multiple Profiles Multiple +# Devices (MPMD) configurations. +# Possible values: "off", "single", "multiple" +#MultiProfile = off + +# Permanently enables the Fast Connectable setting for adapters that +# support it. When enabled other devices can connect faster to us, +# however the tradeoff is increased power consumptions. This feature +# will fully work only on kernel version 4.1 and newer. Defaults to +# 'false'. +#FastConnectable = false + +#ifdef __TIZEN_PATCH__ +# Enable the LE Privacy feature. If value is true, i.e. LE Privacy is enabled +# otherwise the feature is disabled by default for the local device. +EnableLEPrivacy = true +#endif + +#[Policy] +# +# The ReconnectUUIDs defines the set of remote services that should try +# to be reconnected to in case of a link loss (link supervision +# timeout). The policy plugin should contain a sane set of values by +# default, but this list can be overridden here. By setting the list to +# empty the reconnection feature gets disabled. +#ReconnectUUIDs= + -- cgit v1.2.3