Commit 1045f5f
committed
ALSA: usb-audio: Avoid superfluous endpoint setup
After splitting to snd_usb_endpoint_set_params() and *_prepare(), the
skip of each function should be checked with different flags, while we
still use ep->need_setup as the single one. Introduce
ep->need_prepare for indicating the need of prepare, and also add the
missing check of ep->need_setup at the set_params.
Fixes: 2be79d5 ("ALSA: usb-audio: Split endpoint setups for hw_params and prepare (take#2)")
Link: https://lore.kernel.org/r/20221009104212.18877-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent 9355b60 commit 1045f5f
2 files changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| 827 | + | |
827 | 828 | | |
828 | 829 | | |
829 | 830 | | |
| |||
952 | 953 | | |
953 | 954 | | |
954 | 955 | | |
955 | | - | |
| 956 | + | |
956 | 957 | | |
957 | 958 | | |
958 | 959 | | |
| |||
1335 | 1336 | | |
1336 | 1337 | | |
1337 | 1338 | | |
1338 | | - | |
| 1339 | + | |
1339 | 1340 | | |
1340 | 1341 | | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1341 | 1345 | | |
1342 | 1346 | | |
1343 | 1347 | | |
| |||
1386 | 1390 | | |
1387 | 1391 | | |
1388 | 1392 | | |
1389 | | - | |
| 1393 | + | |
| 1394 | + | |
1390 | 1395 | | |
| 1396 | + | |
| 1397 | + | |
1391 | 1398 | | |
1392 | 1399 | | |
1393 | 1400 | | |
| |||
1437 | 1444 | | |
1438 | 1445 | | |
1439 | 1446 | | |
1440 | | - | |
| 1447 | + | |
1441 | 1448 | | |
1442 | 1449 | | |
1443 | 1450 | | |
| |||
1491 | 1498 | | |
1492 | 1499 | | |
1493 | 1500 | | |
1494 | | - | |
| 1501 | + | |
1495 | 1502 | | |
1496 | 1503 | | |
1497 | 1504 | | |
| |||
0 commit comments