diff options
| author | Pierre-Louis Bossart <[email protected]> | 2023-03-24 09:44:05 +0800 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-03-29 15:03:07 +0100 |
| commit | 278432084b093f7257cf96c75bb33f155e4a8232 (patch) | |
| tree | 57108aeebad8c78540412a38836bd2d9e6605540 /tools/perf/scripts/python | |
| parent | b2790eccc0bc755d37ed5cd8d225cec0d72798c8 (diff) | |
ASoC: codecs: rt712-sdca: simplify set_stream
Using a dynamic allocation to store a single pointer is not very
efficient/useful.
Worse, the memory is released in the SoundWire stream.c file, but
still accessed in the DAI shutdown, leading to kmemleak reports.
And last the API requires the previous stream information to be
cleared when the argument is NULL.
Simplify the code to address all 3 problems.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Péter Ujfalusi <[email protected]>
Reviewed-by: Rander Wang <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions