mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-22 16:06:04 -05:00
ASoC: Intel: avs: da7219: Remove suspend_pre() and resume_post()
The presence of a plugged jack is not detected after resuming the device if the jack was plugged before the device was suspended. This problem is caused by calling the sound/soc/codecs/da7219-aad.c:da7219_aad_jack_det() function on resume, which forces the jack insertion state to be unplugged. Signed-off-by: Marek Maslanka <mmaslanka@google.com> Link: https://patch.msgid.link/20241128205215.2435485-1-mmaslanka@google.com Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
40384c840e
commit
04c319e05d
1 changed files with 0 additions and 17 deletions
|
@ -209,21 +209,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int avs_card_suspend_pre(struct snd_soc_card *card)
|
|
||||||
{
|
|
||||||
struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME);
|
|
||||||
|
|
||||||
return snd_soc_component_set_jack(codec_dai->component, NULL, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int avs_card_resume_post(struct snd_soc_card *card)
|
|
||||||
{
|
|
||||||
struct snd_soc_dai *codec_dai = snd_soc_card_get_codec_dai(card, DA7219_DAI_NAME);
|
|
||||||
struct snd_soc_jack *jack = snd_soc_card_get_drvdata(card);
|
|
||||||
|
|
||||||
return snd_soc_component_set_jack(codec_dai->component, jack, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int avs_da7219_probe(struct platform_device *pdev)
|
static int avs_da7219_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct snd_soc_dai_link *dai_link;
|
struct snd_soc_dai_link *dai_link;
|
||||||
|
@ -255,8 +240,6 @@ static int avs_da7219_probe(struct platform_device *pdev)
|
||||||
card->name = "avs_da7219";
|
card->name = "avs_da7219";
|
||||||
card->dev = dev;
|
card->dev = dev;
|
||||||
card->owner = THIS_MODULE;
|
card->owner = THIS_MODULE;
|
||||||
card->suspend_pre = avs_card_suspend_pre;
|
|
||||||
card->resume_post = avs_card_resume_post;
|
|
||||||
card->dai_link = dai_link;
|
card->dai_link = dai_link;
|
||||||
card->num_links = 1;
|
card->num_links = 1;
|
||||||
card->controls = card_controls;
|
card->controls = card_controls;
|
||||||
|
|
Loading…
Reference in a new issue