OSDN Git Service

sound: usb: Handle implicit feedback data endpoint properly
authorHemant Kumar <hemantk@codeaurora.org>
Wed, 7 Dec 2016 02:34:40 +0000 (18:34 -0800)
committerHemant Kumar <hemantk@codeaurora.org>
Thu, 8 Dec 2016 21:37:31 +0000 (13:37 -0800)
commit10957dd96e3cfd9f349ef443be13c116dd50ae82
tree81802b23b004fa49104a853649d610360f77d3e3
parent5142c18bae30439decd1c139999b54197e2aae91
sound: usb: Handle implicit feedback data endpoint properly

For the devices supporting implicit feedback over data endpoint
usb audio driver instantiates snd_usb_endpoint as sync_endpoint
even though there is no real usb sync endpoint exists. QMI driver
looks for usb endpoint if sync_endpoint is instantiated and bails
out if endpoint related context does not exist. This causes such
devices to not work. Hence do not bail out if sync ep context
does not exist and continue preparing the QMI response.

Change-Id: I7d96555573cfd6cca1ca56c877d78fde943f8100
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
sound/usb/usb_audio_qmi_svc.c