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)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:01 +0000 (13:52 -0800)
commit62ed32043ae487f289d51d1bd45a50f59036c506
tree372605f424e8b0117f8cbaa4c7f7826b28fd443b
parentfbc1d7837f2524f5d0347c4a120594d1485fde48
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