ALSA: usb-audio: Skip the clock selector inquiry for single connections
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Jan 2021 21:39:31 +0000 (22:39 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 Jan 2021 11:47:06 +0000 (12:47 +0100)
commit086b957cc17f53f03bae9d2baf930ac51cf68b99
treef2d01d4d639067a5ee1567846382a6bb709201f8
parentb952ac76a20bc0b23cd7e22de19fb407713238a3
ALSA: usb-audio: Skip the clock selector inquiry for single connections

The current USB-audio driver gets an error at probing NUX MG-300 about
parsing the clocks.  This is because the firmware doesn't return the
proper connection of the clock selector that is connected to a single
clock; it's likely that the firmware was lazy^w optimized and the
inquiry wasn't handled.  Actually it makes little sense to inquire and
set up the single connection explicitly.

This patch fixes the issue by simply skipping the clock selector
inquiry if it's a single connection.

Reported-by: Mike Oliphant <oliphant@nostatic.org>
Link: https://lore.kernel.org/r/20210120213932.1971-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c