ASoC: Intel: avs: da7219: Refactor jack handling
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 25 Nov 2022 18:40:23 +0000 (19:40 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 29 Nov 2022 12:13:14 +0000 (12:13 +0000)
commit833e250ef592c3c02dda400c1c44306f74241d33
treec189072aaffe4d9c90d68b1dca22ac6c8d1c50a8
parentd60a197e50eca5017076b3867c1a49cb5118d597
ASoC: Intel: avs: da7219: 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: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20221125184032.2565979-3-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/boards/da7219.c