diff options
author | Jeeja KP <jeeja.kp@intel.com> | 2016-03-28 19:41:31 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-28 12:38:00 +0300 |
commit | 4f329d9fbab630af44db2f787eb79ca52e6ba22e (patch) | |
tree | 88b0dc6e499f501ba2a69760d28536293ba69ebc /lib/ts_bm.c | |
parent | d643678b9a4e432a574b2ec601216afd720c69b6 (diff) | |
download | linux-4f329d9fbab630af44db2f787eb79ca52e6ba22e.tar.xz |
ASoC: Intel: Skylake: Fix DSP resource de-allocation
In PRE PMD of widget handler DSP resources are allocated after
the creation of DSP pipe and modules and in POST PMD DSP
resources are destroyed.
If there is any failure in pipe or module creation in PRE PMD,
pcm trigger fails and finally POST PMD gets called and DSP
resources are freed, without getting allocated.
Fixes the DSP resource de-allocation by allocating the resource
before creation of pipe and module in PRE PMD and in POST PMD,
free the resources.
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/ts_bm.c')
0 files changed, 0 insertions, 0 deletions