diff options
author | Amadeusz Sławiński <[email protected]> | 2021-10-15 18:12:56 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-10-29 16:49:44 +0100 |
commit | f714fbc1e89a3533b2578e0c90ce4f5c05a57f96 (patch) | |
tree | b14fefbeab67f3ffe3861a33cfa8d71064ddaf88 /scripts/gdb/linux/utils.py | |
parent | 2a710bb35a5abfbca48ed7c229205ace472692d3 (diff) |
ASoC: topology: Change topology device to card device
Topology needs device for prints and resource allocation. So far,
component->dev is used. However, this may lead to high memory use in
model where card is an independent driver which can be reloaded and
topology is loaded from component's probe() method. Every time machine
driver is reloaded topology is being loaded anew, each time allocating
new memory. Said memory will only be freed when component itself is
being freed.
Address the problem by tying topology to component->card->dev instead,
so memory occupied by the topology is freed whenever related machine
device gets removed.
Signed-off-by: Amadeusz Sławiński <[email protected]>
Signed-off-by: Cezary Rojewski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions