mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
ALSA: line6: Only determine control port properties if needed
Not all line6 devices use the control port. Signed-off-by: Andrej Krutak <dev@andree.sk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c039aaa77a
commit
f6a0dd107a
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue