mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 21:24:16 +08:00
4220225c57
The new fragment will introduce device strings that can be given the BT address of the headset as parameter. Also, they integrate 'plug' so that they can be used with any application. This replaces the old 'asound.conf' file which was much more limited. Also since we now install 'bluetooth.conf' to /etc/alsa it is not a good idea to simply call that file 'asound.conf'. Please note that this will install the config fragment but not actually enable it. For that some minor changes to the /etc/asoundrc as shipped by the distro are necessary. It's up to the distributions to do this. How that works in explained in the header of bluetooth.conf.
37 lines
523 B
Plaintext
37 lines
523 B
Plaintext
# Please note that this ALSA configuration file fragment needs be enabled in
|
|
# /etc/asound.conf or a similar configuration file with directives similar to
|
|
# the following:
|
|
#
|
|
#@hooks [
|
|
# {
|
|
# func load
|
|
# files [
|
|
# "/etc/alsa/bluetooth.conf"
|
|
# ]
|
|
# errors false
|
|
# }
|
|
#]
|
|
|
|
pcm.rawbluetooth {
|
|
@args [ ADDRESS ]
|
|
@args.ADDRESS {
|
|
type string
|
|
}
|
|
type bluetooth
|
|
device $ADDRESS
|
|
}
|
|
|
|
pcm.bluetooth {
|
|
@args [ ADDRESS ]
|
|
@args.ADDRESS {
|
|
type string
|
|
}
|
|
type plug
|
|
slave {
|
|
pcm {
|
|
type bluetooth
|
|
device $ADDRESS
|
|
}
|
|
}
|
|
}
|