bluez4: Configure bluetooth audio.
Add the following lines to add support for the HSP/HFP and A2DP profiles, and to route the audio through the HCI SCO channel: Enable=Source,Sink,Headset,Gateway,Control,Socket,Media SCORouting=HCI Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
parent
3da25843d8
commit
df93676695
|
|
@ -0,0 +1,46 @@
|
|||
# Configuration file for the audio service
|
||||
|
||||
# This section contains options which are not specific to any
|
||||
# particular interface
|
||||
[General]
|
||||
|
||||
# Switch to master role for incoming connections (defaults to true)
|
||||
#Master=true
|
||||
|
||||
# If we want to disable support for specific services
|
||||
# Defaults to supporting all implemented services
|
||||
#Disable=Gateway,Source,Socket
|
||||
Enable=Source,Sink,Headset,Gateway,Control,Socket,Media
|
||||
|
||||
# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
|
||||
# Defaults to HCI
|
||||
#SCORouting=PCM
|
||||
|
||||
# Automatically connect both A2DP and HFP/HSP profiles for incoming
|
||||
# connections. Some headsets that support both profiles will only connect the
|
||||
# other one automatically so the default setting of true is usually a good
|
||||
# idea.
|
||||
#AutoConnect=true
|
||||
|
||||
# Headset interface specific options (i.e. options which affect how the audio
|
||||
# service interacts with remote headset devices)
|
||||
[Headset]
|
||||
|
||||
# Set to true to support HFP, false means only HSP is supported
|
||||
# Defaults to true
|
||||
HFP=true
|
||||
|
||||
# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
|
||||
MaxConnected=1
|
||||
|
||||
# Set to true to enable use of fast connectable mode (faster page scanning)
|
||||
# for HFP when incoming call starts. Default settings are restored after
|
||||
# call is answered or rejected. Page scan interval is much shorter and page
|
||||
# scan type changed to interlaced. Such allows faster connection initiated
|
||||
# by a headset.
|
||||
FastConnectable=false
|
||||
|
||||
# Just an example of potential config options for the other interfaces
|
||||
#[A2DP]
|
||||
#SBCSources=1
|
||||
#MPEG12Sources=0
|
||||
|
|
@ -11,3 +11,9 @@ EXTRA_OECONF_append = " --enable-health --enable-static"
|
|||
# We do not really need those static libs so just disable the QA test
|
||||
#
|
||||
INSANE_SKIP_${PN} = "installed-vs-shipped"
|
||||
|
||||
SRC_URI += "file://audio.conf"
|
||||
|
||||
do_install_append() {
|
||||
install -m 0644 ${WORKDIR}/audio.conf ${D}/${sysconfdir}/bluetooth/
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue