Skip to content

Commit

Permalink
ALSA: line6: Only determine control port properties if needed
Browse files Browse the repository at this point in the history
Not all line6 devices use the control port.

Signed-off-by: Andrej Krutak <dev@andree.sk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Andrej Krutak authored and Takashi Iwai committed Sep 19, 2016
1 parent c039aaa commit f6a0dd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/usb/line6/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,8 @@ int line6_probe(struct usb_interface *interface,
goto error;
}

line6_get_interval(line6);

if (properties->capabilities & LINE6_CAP_CONTROL) {
line6_get_interval(line6);
ret = line6_init_cap_control(line6);
if (ret < 0)
goto error;
Expand Down

0 comments on commit f6a0dd1

Please sign in to comment.