ASoC: Intel: bdw_rt286: Refactor jack handling
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 25 Nov 2022 18:40:22 +0000 (19:40 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 29 Nov 2022 12:13:13 +0000 (12:13 +0000)
commitd60a197e50eca5017076b3867c1a49cb5118d597
tree0d5cba554c118bd527433521f399a4bd342afa2c
parent4cbb264d4e9136acab2c8fd39e39ab1b1402b84b
ASoC: Intel: bdw_rt286: Refactor jack handling

Use link->exit() rather than pdev->remove() to unassign jack during card
unbind procedure so codec link initialization and exit procedures are
symmetrical.

Also, there is no need to perform search for codec dai in suspend_pre()
and resume_post() ourselves. Use snd_soc_card_get_codec_dai() instead.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20221125184032.2565979-2-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bdw_rt286.c