backend-native: implement volume control
authorWim Taymans <wim.taymans@gmail.com>
Fri, 24 Oct 2014 07:56:52 +0000 (09:56 +0200)
committerArun Raghavan <arun@accosted.net>
Fri, 31 Oct 2014 05:16:10 +0000 (10:46 +0530)
commit34a5c754a90e46168c8a540ee13d9289dfb31247
tree94d8d983ba8d5b5900fc1b9456a292566d97c656
parent7d4a497b3db6e3c58fb5fe64131c8f81cade85b7
backend-native: implement volume control

Parse the gain changed AT commands from the headset and fire 2 new
hooks as a result. The device will connect to those hooks and change the
source/sink volumes.

When the source/sink volume changes, set the gain on the microphone or
speaker respectively. Make sure we do nothing if the transport can not
handle the gain changes.
src/modules/bluetooth/backend-native.c
src/modules/bluetooth/bluez5-util.h
src/modules/bluetooth/module-bluez5-device.c