Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b61b1b39 authored by Mayank Rana's avatar Mayank Rana
Browse files

sound: usb: Fix check with usb_get_controller_id() for valid controller id



usb_get_controller_id() API shall returns non-negative number as valid id
related to USB controller if alias is found. Current code considers zero
as only valid controller id and doesn't update for secondary USB controller
(i.e. id as 1). This results into passing controller id as zero instead of
1 causing bus error when ADSP USB driver is trying to access primary USB
controller's register (it is supposed to access USB secondary controller's
register) when primary USB controller related clocks are voted off. Fix
this issue by updating check to consider all non-negative number as valid
number and updating same.

Change-Id: Id15edbdfd6c924000da18bbb82d0483d4d110d41
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 0ea391ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment