summaryrefslogtreecommitdiffstats
path: root/sound/usb/power.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/power.c')
-rw-r--r--sound/usb/power.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/power.c b/sound/usb/power.c
index bd303a1ba1b7..606a2cb23eab 100644
--- a/sound/usb/power.c
+++ b/sound/usb/power.c
@@ -31,6 +31,8 @@ snd_usb_find_power_domain(struct usb_host_interface *ctrl_iface,
31 struct uac3_power_domain_descriptor *pd_desc = p; 31 struct uac3_power_domain_descriptor *pd_desc = p;
32 int i; 32 int i;
33 33
34 if (!snd_usb_validate_audio_desc(p, UAC_VERSION_3))
35 continue;
34 for (i = 0; i < pd_desc->bNrEntities; i++) { 36 for (i = 0; i < pd_desc->bNrEntities; i++) {
35 if (pd_desc->baEntityID[i] == id) { 37 if (pd_desc->baEntityID[i] == id) {
36 pd->pd_id = pd_desc->bPowerDomainID; 38 pd->pd_id = pd_desc->bPowerDomainID;