diff options
author | Bard Liao <[email protected]> | 2023-12-04 15:41:59 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-12-04 21:46:11 +0000 |
commit | e38e252dbceeef7d2f848017132efd68e9ae1416 (patch) | |
tree | c43da32701d31ce709a23295c28d734987fb08a2 /tools/perf/scripts/python/task-analyzer.py | |
parent | 486ede0df82dd74472c6f5651e38ff48f7f766c1 (diff) |
ASoC: Intel: sof_sdw_rt_sdca_jack_common: ctx->headset_codec_dev = NULL
sof_sdw_rt_sdca_jack_exit() are used by different codecs, and some of
them use the same dai name.
For example, rt712 and rt713 both use "rt712-sdca-aif1" and
sof_sdw_rt_sdca_jack_exit().
As a result, sof_sdw_rt_sdca_jack_exit() will be called twice by
mc_dailink_exit_loop(). Set ctx->headset_codec_dev = NULL; after
put_device(ctx->headset_codec_dev); to avoid ctx->headset_codec_dev
being put twice.
Fixes: 5360c6704638 ("ASoC: Intel: sof_sdw: add rt712 support")
Reviewed-by: Péter Ujfalusi <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions