diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-01-18 08:58:14 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-01-18 09:37:53 +0100 |
commit | 87cb9af9f8a2b242cea7f828206d619e8cbb6a1a (patch) | |
tree | 2a4d6216e51be7c1177cc4b7f9293faa6c03c926 /sound/usb/endpoint.c | |
parent | f84d3a1ec375e46a55cc3ba85c04272b24bd3921 (diff) |
ALSA: usb-audio: Fix UAC1 rate setup for secondary endpoints
The current sample rate setup function for UAC1 assumes only the first
endpoint retrieved from the interface:altset pair, but the rate set up
may be needed also for the secondary endpoint. Also, retrieving the
endpoint number from the interface descriptor is redundant; we have
already the target endpoint in the given audioformat object.
This patch simplifies the code and corrects the target endpoint as
described in the above. It simply refers to fmt->endpoint directly.
Also, this patch drops the pioneer_djm_set_format_quirk() that is
caleld from snd_usb_set_format_quirk(); this function does the sample
rate setup but for the capture endpoint (0x82), and that's exactly
what the change above fixes.
Link: https://lore.kernel.org/r/20210118075816.25068-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/endpoint.c')
0 files changed, 0 insertions, 0 deletions