From: Eldad Zack Date: Wed, 3 Apr 2013 21:18:54 +0000 (+0200) Subject: ALSA: usb-audio: UAC2: do clock validity check earlier X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~52^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06ffc1ebddbed88662a47646ff6aa6a2b41f0aec;p=pandora-kernel.git ALSA: usb-audio: UAC2: do clock validity check earlier Move the check that parse_audio_format_rates_v2() do after receiving the clock source entity ID directly into the find function and add a validation flag to the function. This patch does not introduce any logic flow change. It is provided to allow introducing automatic clock switching easier later. By moving this uac_clock_source_is_valid callsite, 2 additional callsites can be avoided. Signed-off-by: Eldad Zack Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed