ALSA: usb-audio: Refactoring UAC2/3 clock setup code
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 May 2021 15:21:11 +0000 (17:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 May 2021 14:22:10 +0000 (16:22 +0200)
commit9ec730052fa262a9b66993d282a39511e4819e06
tree18ffdf3cdd85be9b2b25df5bd44848de05ce3210
parenta6de7b32b686a6bda835c7c0f2de98eddbf48321
ALSA: usb-audio: Refactoring UAC2/3 clock setup code

This patch just does refactoring of the UAC2/3 clock setup code.
There should be no functional changes.  The major changes are:

* Provide union objects for pointing both UAC2 and UAC3 objects
* Unify clock source, selector and multiplier helper functions
* Unify __uac_clock_find_source() to deal with both UAC2 and UAC3
  equally

Link: https://lore.kernel.org/r/20210518152112.8016-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c