diff options
| author | Bard Liao <[email protected]> | 2023-03-07 13:08:30 +0200 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-03-07 13:58:19 +0000 |
| commit | 3c50211f2d534a5b766b1ff3c6cf6f7bd0bae753 (patch) | |
| tree | 1156f60790b949f099426799659577579d499ca5 /tools/perf/scripts/python | |
| parent | 418d2b2fad7cdce5d39d0e2fdbe2460f584b5432 (diff) | |
ASoC: SOF: ipc4-topology: don't allocate blob if it will not be used
A copier blob will be only used when a copier is connected in the
topology. An ALH copier in playback direction that doesn't have any
source means the copier is not connected in the topology. Thus, we
don't need to allocate the blob.
The patch doesn't do the same test before freeing the blob because
the blob is null and it is fine to free null.
Signed-off-by: Bard Liao <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Signed-off-by: Peter Ujfalusi <[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