]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: UAC2: do clock validity check earlier
authorEldad Zack <eldad@fogrefinery.com>
Wed, 3 Apr 2013 21:18:54 +0000 (23:18 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Apr 2013 06:30:59 +0000 (08:30 +0200)
commit98c3e119ae49e152e3f74a6652015dead7458095
tree7090ac76f3cb113cc077090375162ab9765a35a5
parentf1ace6dda9c845ddd8474c3793e3753bca6c33e2
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 <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c
sound/usb/clock.h
sound/usb/format.c