acrn-kernel/sound/usb
Takashi Iwai 9a737e7f8b ALSA: usb-audio: Properly refcounting clock rate
We fixed the bug introduced by the patch for managing the shared
clocks at the commit 809f44a0cc ("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: 809f44a0cc ("ALSA: usb-audio: Clear fixed clock rate at closing EP")
Fixes: c11117b634 ("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>
2022-09-20 20:12:50 +02:00
..
6fire ALSA: usb/6fire: fix repeated words in comments 2022-07-25 08:28:17 +02:00
bcd2000 ALSA: bcd2000: Fix a UAF bug on the error path of probing 2022-07-15 08:58:36 +02:00
caiaq
hiface ALSA: hiface: fix repeated words in comments 2022-07-25 08:28:37 +02:00
line6 ALSA: line6: remove line6_set_raw declaration 2022-09-09 09:09:20 +02:00
misc ALSA: ua101: fix division by zero at probe 2021-10-27 08:23:30 +02:00
usx2y sound: usb: remove third argument of usb_maxpacket() 2022-04-23 10:33:53 +02:00
Kconfig
Makefile
card.c ALSA: usb-audio: Fix last interface check for registration 2022-09-15 11:00:21 +02:00
card.h ALSA: usb-audio: Refcount multiple accesses on the single clock 2022-05-16 12:49:03 +02:00
clock.c ALSA: usb-audio: Optimize TEAC clock quirk 2022-05-31 15:09:05 +02:00
clock.h
endpoint.c ALSA: usb-audio: Properly refcounting clock rate 2022-09-20 20:12:50 +02:00
endpoint.h ALSA: usb-audio: Split endpoint setups for hw_params and prepare (take#2) 2022-09-20 20:12:34 +02:00
format.c ALSA: usb-audio: Drop superfluous '0' in Presonus Studio 1810c's ID 2021-12-02 09:39:04 +01:00
format.h
helper.c
helper.h
implicit.c ALSA: usb-audio: Move generic implicit fb quirk entries into quirks.c 2022-04-21 10:17:18 +02:00
implicit.h
media.c
media.h
midi.c USB / Thunderbolt changes for 5.19-rc1 2022-06-03 11:17:49 -07:00
midi.h
mixer.c ALSA: usb-audio: Don't abort resume upon errors 2022-02-14 13:57:51 +01:00
mixer.h ALSA: usb-audio: Drop CONFIG_PM ifdefs 2021-12-06 10:19:40 +01:00
mixer_maps.c ALSA: usb-audio: More comprehensive mixer map for ASUS ROG Zenith II 2022-08-09 13:28:41 +02:00
mixer_quirks.c ALSA: scarlett2: Add Focusrite Clarett+ 8Pre support 2022-08-09 09:24:38 +02:00
mixer_quirks.h ALSA: usb-audio: Drop CONFIG_PM ifdefs 2021-12-06 10:19:40 +01:00
mixer_s1810c.c ALSA: usb-audio: remove redundant assignment to variable c 2022-02-08 08:21:32 +01:00
mixer_s1810c.h
mixer_scarlett.c
mixer_scarlett.h
mixer_scarlett_gen2.c ALSA: scarlett2: Add Focusrite Clarett+ 8Pre support 2022-08-09 09:24:38 +02:00
mixer_scarlett_gen2.h
mixer_us16x08.c ALSA: usb-audio: US16x08: Move overflow check before array access 2022-06-13 07:40:08 +02:00
mixer_us16x08.h
pcm.c ALSA: usb-audio: Split endpoint setups for hw_params and prepare (take#2) 2022-09-20 20:12:34 +02:00
pcm.h
power.c
power.h ALSA: usb-audio: Drop CONFIG_PM ifdefs 2021-12-06 10:19:40 +01:00
proc.c
proc.h
quirks-table.h ALSA: usb-audio: Add quirk to enable Avid Mbox 3 support 2022-08-22 13:02:32 +02:00
quirks.c ALSA: usb-audio: Register card at the last interface 2022-09-06 11:04:56 +02:00
quirks.h ALSA: usb-audio: Register card at the last interface 2022-09-06 11:04:56 +02:00
stream.c Merge branch 'for-linus' into for-next 2022-09-06 11:04:15 +02:00
stream.h
usbaudio.h ALSA: usb-audio: Register card at the last interface 2022-09-06 11:04:56 +02:00
validate.c