summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-09-20 20:11:26 +0200
committerTakashi Iwai <tiwai@suse.de>2022-09-20 20:12:50 +0200
commit9a737e7f8b371e97eb649904276407cee2c9cf30 (patch)
treeeefff8ea3e026e9b0a2f421239b707ed057fb6d3 /sound/pci
parent2be79d58645465351af5320eb14c70a94724c5ef (diff)
downloadlinux-stable-9a737e7f8b371e97eb649904276407cee2c9cf30.tar.gz
linux-stable-9a737e7f8b371e97eb649904276407cee2c9cf30.tar.bz2
linux-stable-9a737e7f8b371e97eb649904276407cee2c9cf30.zip
ALSA: usb-audio: Properly refcounting clock rate
We fixed the bug introduced by the patch for managing the shared clocks at the commit 809f44a0cc5a ("ALSA: usb-audio: Clear fixed clock rate at closing EP"), but it was merely a workaround. By this change, the clock reference rate is cleared at each EP close, hence the still remaining EP may need a re-setup of rate unnecessarily. This patch introduces the proper refcounting for the clock reference object so that the clock setup is done only when needed. Fixes: 809f44a0cc5a ("ALSA: usb-audio: Clear fixed clock rate at closing EP") Fixes: c11117b634f4 ("ALSA: usb-audio: Refcount multiple accesses on the single clock") Link: https://lore.kernel.org/r/20220920181126.4912-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions