diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2013-04-04 01:18:56 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-04-04 10:31:32 +0400 |
commit | ef02e29b0180ddbcc1ecf3c362e333c572f27c08 (patch) | |
tree | 2c645903e9fbff3996c5e32cb8993a86d9a6b0b4 /sound/usb/clock.c | |
parent | 8c55af3f69be6021631628b968cad301d3f294c8 (diff) | |
download | linux-ef02e29b0180ddbcc1ecf3c362e333c572f27c08.tar.xz |
ALSA: usb-audio: UAC2: auto clock selection module param
Add a module param to disable auto clock selection.
This is provided for users that expect the audio stream to
fail when the clock source is invalid (e.g., the word clock
was unintentionally disconnected).
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/clock.c')
-rw-r--r-- | sound/usb/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/clock.c b/sound/usb/clock.c index d7ab2d75aefd..e59d359b907c 100644 --- a/sound/usb/clock.c +++ b/sound/usb/clock.c @@ -217,7 +217,7 @@ static int __uac_clock_find_source(struct snd_usb_audio *chip, cur = ret; ret = __uac_clock_find_source(chip, selector->baCSourceID[ret - 1], visited, validate); - if (!validate || ret > 0) + if (!validate || ret > 0 || !chip->autoclock) return ret; /* The current clock source is invalid, try others. */ |