diff options
author | 2018-12-05 14:05:10 +0100 | |
---|---|---|
committer | 2018-12-12 22:01:30 +0100 | |
commit | b2588f97269799bdcbc6253286ffaa28d5d7aeff (patch) | |
tree | f81f6fe6523d9c389f1ef4e7bc44fb127a323a41 /4a-hal-cfg-community | |
parent | 4b299e632148205bb27c9c4a4d6dd779d466ff37 (diff) |
Adds support for bluetooth audio through bluez-alsasandbox/tbultel/bluealsa
Implements a new bluealsa plugin to the HAL manager,
reacting to the changes of the available transports.
This plugin is linked with the new bluealsa.so shared
library.
New transports (SCO & A2DP) result in softmixer invocations
of the "attach" verb, that creates the new capture
(eg, A2DP capture from bluealsa ioplug PCM, SCO microphone
capture), playbacks (SCO playback to a softmixer zone,
and SCO output to bluealsa iogplug PCM).
When a transport disappears, the hal manager calls the
transaction deletion verb that will tell the softmixer
to remove the created streams and associated objects.
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to '4a-hal-cfg-community')
-rw-r--r-- | 4a-hal-cfg-community/hal-4a-2ch-generic-usb.json | 17 | ||||
-rw-r--r-- | 4a-hal-cfg-community/hal-4a-csl-cm106-8ch-usb.json | 17 | ||||
-rw-r--r-- | 4a-hal-cfg-community/hal-4a-ensoniq.json | 19 | ||||
-rw-r--r-- | 4a-hal-cfg-community/hal-4a-intel-upsquared-hdmi.json | 17 | ||||
-rw-r--r-- | 4a-hal-cfg-community/hal-4a-intel.json | 19 | ||||
-rw-r--r-- | 4a-hal-cfg-community/hal-4a-jabra.json | 17 | ||||
-rw-r--r-- | 4a-hal-cfg-community/hal-4a-raspberry-pi-3.json | 18 |
7 files changed, 87 insertions, 37 deletions
diff --git a/4a-hal-cfg-community/hal-4a-2ch-generic-usb.json b/4a-hal-cfg-community/hal-4a-2ch-generic-usb.json index efc59e3..be3bdb6 100644 --- a/4a-hal-cfg-community/hal-4a-2ch-generic-usb.json +++ b/4a-hal-cfg-community/hal-4a-2ch-generic-usb.json @@ -11,13 +11,20 @@ }, "resources": [ { - "uid": "hal-bt", - "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration", + "uid": "hal-bluealsa", + "info": "Bluealsa hal plugin", "params": { - "channels": 2, - "zone": "front-seats" + "sco": { + "mic": "2CH-GENERIC-USB", + "zone": "full-stereo", + "delayms": 800 + }, + "a2dp": { + "zone": "full-stereo", + "delayms": 500 + } }, - "libs": ["hal-bt.ctlso"] + "libs": ["hal-bluealsa.ctlso"] } ], "controls": [ diff --git a/4a-hal-cfg-community/hal-4a-csl-cm106-8ch-usb.json b/4a-hal-cfg-community/hal-4a-csl-cm106-8ch-usb.json index 09bfcfa..f5d6b33 100644 --- a/4a-hal-cfg-community/hal-4a-csl-cm106-8ch-usb.json +++ b/4a-hal-cfg-community/hal-4a-csl-cm106-8ch-usb.json @@ -11,13 +11,20 @@ }, "resources": [ { - "uid": "hal-bt", - "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration", + "uid": "hal-bluealsa", + "info": "Bluealsa hal plugin", "params": { - "channels": 2, - "zone": "front-seats" + "sco": { + "mic": "CSL-CM106-8CH-USB", + "zone": "full-stereo", + "delayms": 800 + }, + "a2dp": { + "zone": "full-stereo", + "delayms": 500 + } }, - "libs": ["hal-bt.ctlso"] + "libs": ["hal-bluealsa.ctlso"] } ], "controls": [ diff --git a/4a-hal-cfg-community/hal-4a-ensoniq.json b/4a-hal-cfg-community/hal-4a-ensoniq.json index 7d1dc80..dc30584 100644 --- a/4a-hal-cfg-community/hal-4a-ensoniq.json +++ b/4a-hal-cfg-community/hal-4a-ensoniq.json @@ -10,14 +10,21 @@ "date": "2018-06-13" }, "resources": [ - { - "uid": "hal-bt", - "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration", + { + "uid": "hal-bluealsa", + "info": "Bluealsa hal plugin", "params": { - "channels": 2, - "zone": "front-seats" + "sco": { + "mic": "ENSONIQ", + "zone": "full-stereo", + "delayms": 800 + }, + "a2dp": { + "zone": "full-stereo", + "delayms": 500 + } }, - "libs": ["hal-bt.ctlso"] + "libs": ["hal-bluealsa.ctlso"] } ], "controls": [ diff --git a/4a-hal-cfg-community/hal-4a-intel-upsquared-hdmi.json b/4a-hal-cfg-community/hal-4a-intel-upsquared-hdmi.json index 8597489..6cc1cf7 100644 --- a/4a-hal-cfg-community/hal-4a-intel-upsquared-hdmi.json +++ b/4a-hal-cfg-community/hal-4a-intel-upsquared-hdmi.json @@ -11,13 +11,20 @@ }, "resources": [ { - "uid": "hal-bt", - "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration", + "uid": "hal-bluealsa", + "info": "Bluealsa hal plugin", "params": { - "channels": 2, - "zone": "front-seats" + "sco": { + "mic": "INTEL-UPSQUARED-HDMI", + "zone": "full-stereo", + "delayms": 800 + }, + "a2dp": { + "zone": "full-stereo", + "delayms": 500 + } }, - "libs": ["hal-bt.ctlso"] + "libs": ["hal-bluealsa.ctlso"] } ], "controls": [ diff --git a/4a-hal-cfg-community/hal-4a-intel.json b/4a-hal-cfg-community/hal-4a-intel.json index 1e27896..0752915 100644 --- a/4a-hal-cfg-community/hal-4a-intel.json +++ b/4a-hal-cfg-community/hal-4a-intel.json @@ -10,14 +10,21 @@ "date": "2018-06-13" }, "resources": [ - { - "uid": "hal-bt", - "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration", + { + "uid": "hal-bluealsa", + "info": "Bluealsa hal plugin", "params": { - "channels": 2, - "zone": "front-seats" + "sco": { + "mic": "INTEL", + "zone": "full-stereo", + "delayms": 800 + }, + "a2dp": { + "zone": "full-stereo", + "delayms": 500 + } }, - "libs": ["hal-bt.ctlso"] + "libs": ["hal-bluealsa.ctlso"] } ], "controls": [ diff --git a/4a-hal-cfg-community/hal-4a-jabra.json b/4a-hal-cfg-community/hal-4a-jabra.json index d9879d4..37bdf48 100644 --- a/4a-hal-cfg-community/hal-4a-jabra.json +++ b/4a-hal-cfg-community/hal-4a-jabra.json @@ -11,13 +11,20 @@ }, "resources": [ { - "uid": "hal-bt", - "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration", + "uid": "hal-bluealsa", + "info": "Bluealsa hal plugin", "params": { - "channels": 2, - "zone": "front-seats" + "sco": { + "mic": "JABRA-SOLEMATE", + "zone": "full-stereo", + "delayms": 800 + }, + "a2dp": { + "zone": "full-stereo", + "delayms": 500 + } }, - "libs": ["hal-bt.ctlso"] + "libs": ["hal-bluealsa.ctlso"] } ], "controls": [ diff --git a/4a-hal-cfg-community/hal-4a-raspberry-pi-3.json b/4a-hal-cfg-community/hal-4a-raspberry-pi-3.json index 86be677..99eb2d0 100644 --- a/4a-hal-cfg-community/hal-4a-raspberry-pi-3.json +++ b/4a-hal-cfg-community/hal-4a-raspberry-pi-3.json @@ -11,14 +11,22 @@ }, "resources": [ { - "uid": "hal-bt", - "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration", + "uid": "hal-bluealsa", + "info": "Bluealsa hal plugin", "params": { - "channels": 2, - "zone": "front-seats" + "sco": { + "mic": "RASPBERRY-PI-3", + "zone": "full-stereo", + "delayms": 800 + }, + "a2dp": { + "zone": "full-stereo", + "delayms": 500 + } }, - "libs": ["hal-bt.ctlso"] + "libs": ["hal-bluealsa.ctlso"] } + ], "controls": [ { |