linux/sound/soc/intel
Bard Liao 582231a8c4 ASoC: Intel: sof_sdw_rt_sdca_jack_common: ctx->headset_codec_dev = NULL
[ Upstream commit e38e252dbc ]

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: 5360c67046 ("ASoC: Intel: sof_sdw: add rt712 support")
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20231204214200.203100-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-01-25 15:45:01 -08:00
..
atom ASoC: intel: convert not to use asoc_xxx() 2023-09-26 17:18:40 +02:00
avs ASoC: Updates for v6.7 2023-10-31 09:01:25 +01:00
boards ASoC: Intel: sof_sdw_rt_sdca_jack_common: ctx->headset_codec_dev = NULL 2024-01-25 15:45:01 -08:00
catpt ASoC: intel: convert not to use asoc_xxx() 2023-09-26 17:18:40 +02:00
common ASoC: Intel: glk_rt5682_max98357a: fix board id mismatch 2024-01-25 15:45:01 -08:00
keembay ASoC: Use device_get_match_data() 2023-10-09 13:13:59 +01:00
skylake ASoC: Intel: Skylake: mem leak in skl register function 2023-11-17 12:47:51 +00:00
Kconfig ASoC: Intel: avs: Probe compress operations 2022-12-05 14:05:27 +00:00
Makefile ASoC: Intel: Introduce AVS driver 2022-03-11 16:23:54 +00:00