diff options
author | Pierre-Louis Bossart <[email protected]> | 2020-07-01 02:43:55 +0800 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2020-07-15 10:10:05 +0530 |
commit | b5e9e687d6226218d643f3030abb147da25a8f3a (patch) | |
tree | 35c3962974461cea3cfc04dbccd26645142b4c07 /drivers/fpga/fpga-mgr.c | |
parent | ff16d1e584629f6d2d5ecfe79e46eb5ce5d97b7f (diff) |
soundwire: cadence: allocate/free dma_data in set_sdw_stream
The current memory allocation is somewhat strange: the dma_data is
allocated in set_sdw_stream, but released in the intel DAI
shutdown. This no longer works with the multi-cpu implementation,
since the dma_data is released in the dai shutdown which takes place
before the dailink shutdown.
Move to a more symmetric allocation where the dma_data is allocated
with non-NULL SoundWire stream, and conversely released when a NULL
stream is provided - for consistency with the stream startup and
shutdown operations.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions