audio/transport: change volume to 8bit
authorArchie Pusaka <apusaka@chromium.org>
Thu, 23 Jul 2020 07:23:39 +0000 (15:23 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:50 +0000 (14:30 +0530)
commiteaafd797cf67f2c3dd271b34865321ed9cffd796
treeb7e55f8c46a8cbc90390f439d725b63c127ff680
parent29f2be865c6e58698bcfc878f3e1796ad3f9e47c
audio/transport: change volume to 8bit

The valid range of volume is 0 - 127, yet it is stored in 16bit
data type. This patch modifies it so we use 8bit data type to
store volume instead. Furthermore we also use signed type, so
negative values can be used to indicate invalid volume.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/avrcp.c
profiles/audio/avrcp.h
profiles/audio/media.c
profiles/audio/transport.c
profiles/audio/transport.h