OSDN Git Service

ANDROID: usb: gadget: f_audio_source: Fixed USB Audio Class Interface Descriptor
authorAnson Jacob <ansonkuzhumbil@gmail.com>
Mon, 23 Jun 2014 11:14:01 +0000 (19:14 +0800)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commit4b0ffd2e7a2c8aa4d2d908c495b9b101f6d8249b
tree59c4881fc16f44dc55b1a99c6286fdcda4f8cae9
parent6d97a06fc8f82bd499ef5ec568c2994511bf050a
ANDROID: usb: gadget: f_audio_source: Fixed USB Audio Class Interface Descriptor

Fixed Android Issue #56549.

When both Vendor Class and Audio Class are activated for AOA 2.0,
the baInterfaceNr of the AudioControl Interface Descriptor points
to wrong interface numbers. They should be pointing to
Audio Control Device and Audio Streaming interfaces.

Replaced baInterfaceNr with the correct value.

Change-Id: Iaa083f3d97c1f0fc9481bf87852b2b51278a6351
Signed-off-by: Anson Jacob <ansonkuzhumbil@gmail.com>
drivers/usb/gadget/f_audio_source.c