SamsungDAP: Clamp DolbyCore.getProfile()'s returned value
authorTim Zimmermann <tim@linux4.de>
Sat, 26 Mar 2022 07:03:35 +0000 (08:03 +0100)
committerLuK1337 <priv.luk@gmail.com>
Sat, 26 Mar 2022 08:07:27 +0000 (09:07 +0100)
commit0178b292e1004aae8d72923a656f6405b1b38e8e
treeee12cc82958b467a219c965b3bad835918c2480a
parent577494c66a18b6e85c65439d909dfaa36c99f0ee
SamsungDAP: Clamp DolbyCore.getProfile()'s returned value

When dolby was never enabled before this would return -1 resulting in a
crash when adding the QS Tile.

Change-Id: I9ce49309aa54f4e954bd3917bfc737811a152a55
dap/src/org/lineageos/dap/DolbyCore.kt