]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Set sample rate for all sharing EPs on UAC1
authorTakashi Iwai <tiwai@suse.de>
Mon, 18 Jan 2021 07:58:15 +0000 (08:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 Jan 2021 08:38:03 +0000 (09:38 +0100)
commit5a8fd8c3424843453d36efbfc51b6c395d1281b4
tree79e8507c2b61f882a64f08f7a363d6308add8605
parent86699e240f77dac52a72d1e06738d0acae821dc0
ALSA: usb-audio: Set sample rate for all sharing EPs on UAC1

The UAC2/3 sample rate setup is based on the clock node, which is
usually shared in the interface, and can't be re-setup without
deselecting the interface once, and that's how the current code
behaves.  OTOH, the sample rate setup of UAC1 is per endpoint, hence
we basically need to call for each endpoint usage even if those share
the same interface.

This patch fixes the behavior of UAC1 to call always
snd_usb_init_sample_rate() in snd_usb_endpoint_configure().

Fixes: cf011c58cdea ("ALSA: usb-audio: Refactor endpoint management")
Link: https://lore.kernel.org/r/20210118075816.25068-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/endpoint.c