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

Commit e1578ed7 authored by Hemant Kumar's avatar Hemant Kumar Committed by Jack Pham
Browse files

sound: usb: Handle audio control interface descriptor properly



usb audio qmi driver is incorrectly passing non-zero alternate
interface related class specific buffer to parse the UAC header.
This is causing driver to respond with incorrect bcdADC value.
Fix this issue by reading the cached audio control interface
context which is saved upon driver probe for the first audio
interface. Also differentiate UAC version of header when type
casting the UAC header descriptor.

Change-Id: Ice62887451e91901cb16a6356b64f554b95eacc4
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent a1bd7459
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