summaryrefslogtreecommitdiffstats
path: root/sound/usb/power.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2023-01-02 18:07:59 +0100
committerTakashi Iwai <tiwai@suse.de>2023-01-04 09:54:21 +0100
commit37b3e56d8911f9ec1e1aaa5cccdff33cb0a7a832 (patch)
tree0f5c227b7aff9cf432c2dbd3dfd1e2f950ebce51 /sound/usb/power.h
parentd463ac1acb454fafed58f695cb3067fbf489f3a0 (diff)
downloadlinux-37b3e56d8911f9ec1e1aaa5cccdff33cb0a7a832.tar.gz
linux-37b3e56d8911f9ec1e1aaa5cccdff33cb0a7a832.tar.bz2
linux-37b3e56d8911f9ec1e1aaa5cccdff33cb0a7a832.zip
ALSA: usb-audio: More refactoring of hw constraint rules
Although we applied a workaround for the hw constraints code with the implicit feedback sync, it still has a potential problem. Namely, as the code treats only the first matching (sync) endpoint, it might be too restrictive when multiple endpoints are listed in the substream's format list. This patch is another attempt to improve the hw constraint handling for the implicit feedback sync. The code is rewritten and the sync EP handling for the rate and the format is put inside the fmt_list loop in each hw_rule_*() function instead of the additional rules. The rules for the period size and periods are extended to loop over the fmt_list like others, and they apply the constraints only if needed. Link: https://lore.kernel.org/r/4e509aea-e563-e592-e652-ba44af6733fe@veniogames.com Link: https://lore.kernel.org/r/20230102170759.29610-4-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/power.h')
0 files changed, 0 insertions, 0 deletions