diff options
| author | Kuninori Morimoto <[email protected]> | 2023-05-30 00:50:08 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-05-31 12:25:06 +0100 |
| commit | e1f653ce847bab7285dd135cabe3ce544e574c75 (patch) | |
| tree | cd8e9df5984c461b719a2d11aa7062765d798de4 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | c3e9b6d6ef5a0a3e841c3aa29e7afc48a0b73806 (diff) | |
ASoC: soc-pcm.c: tidyup playback/capture_only at soc_get_playback_capture()
soc_get_playback_capture() (A) returns number of substreams for
playback/capture, and then, we can use playback/capture_only flag (X)(Y).
(A) static int soc_get_playback_capture(...)
{
...
(X) if (dai_link->playback_only) {
(*) *playback = 1;
*capture = 0;
}
(Y) if (dai_link->capture_only) {
*playback = 0;
(*) *capture = 1;
}
...
}
But this flag should not have effect to opposite side stream (*).
This patch tidyup it.
Signed-off-by: Kuninori Morimoto <[email protected]>
Reviewed-by: Amadeusz Sławiński <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions