audio/transport: Don't set volume if it's invalid
authorArchie Pusaka <apusaka@chromium.org>
Tue, 1 Sep 2020 04:00:00 +0000 (12:00 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:32 +0000 (19:08 +0530)
commite5c1e1eba35ef1416299c9c1a3df7e5fd31b244e
treee62b9c11f4c46884a1ee6aaf0b895b071c322c00
parentb35372a7661730e32b019c09cde09132cbc0d7f1
audio/transport: Don't set volume if it's invalid

Adding a check inside media_transport_update_volume to prevent
the volume being updated with an invalid value.

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