bluetooth: Move HSP_MAX_GAIN to header for reuse in n_volume_steps
authorMarijn Suijten <marijns95@gmail.com>
Sat, 27 Mar 2021 10:42:37 +0000 (11:42 +0100)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 17 May 2021 14:50:03 +0000 (14:50 +0000)
commitc098a75d107c5fcfc6a6b1558f183f1b1d57b1f8
treec1416ebd3b8fd08142b184ffd9409785abc378c4
parentdbaf450394ddb4eef8a45bdedcb7ae7a569e0304
bluetooth: Move HSP_MAX_GAIN to header for reuse in n_volume_steps

Instead of hardcoding the number `16`, use `HSP_MAX_GAIN + 1`.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/239>
src/modules/bluetooth/backend-native.c
src/modules/bluetooth/bluez5-util.h
src/modules/bluetooth/module-bluez5-device.c