From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Marek Maslanka <mmaslanka@google.com>,
LKML <linux-kernel@vger.kernel.org>
Cc: "Liam Girdwood" <liam.r.girdwood@linux.intel.com>,
"Peter Ujfalusi" <peter.ujfalusi@linux.intel.com>,
"Bard Liao" <yung-chuan.liao@linux.intel.com>,
"Ranjani Sridharan" <ranjani.sridharan@linux.intel.com>,
"Kai Vehmanen" <kai.vehmanen@linux.intel.com>,
"Pierre-Louis Bossart" <pierre-louis.bossart@linux.dev>,
"Mark Brown" <broonie@kernel.org>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>,
alsa-devel@alsa-project.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH] ASoC: Intel: avs: Remove component->set_jack() on suspend/resume
Date: Thu, 28 Nov 2024 13:55:18 +0100 [thread overview]
Message-ID: <10062d09-34c8-4e53-b5d7-f96a5b19f6f8@intel.com> (raw)
In-Reply-To: <20241128122732.1205732-1-mmaslanka@google.com>
On 2024-11-28 1:27 PM, Marek Maslanka wrote:
> Removed calls to component->set_jack() during suspend/resume to fix an issue where an inserted jack
> is not detected after resuming from suspend if the jack was inserted before suspend. This problem is
> caused by calls to the sound/soc/codecs/da7219-aad.c:da7219_aad_jack_det() function during resume,
> which forces the jack insertion state to be unplugged.
The code looks good, let's work on title and message a bit. Note, I'd
suggest the message to meet 72chars-per-line so it's cohesive with the
rest of the avs-driver log.
Title, I'd suggest:
ASoC: Intel: avs: da7219: Remove suspend_pre() and resume_post()
Message, please note that any [PATCH] is only a suggestion, "Removed"
implies something has already been done. That is certainly not the case
until the subsystem maintainer, here, Mark, merges the change.
What I'd so is: shortly state the problem, remove "what", leave "why".
The rest is answered by title while the code tells the rest of the story.
Kind regards,
Czarek
> Signed-off-by: Marek Maslanka <mmaslanka@google.com>
>
> ---
> sound/soc/intel/avs/boards/da7219.c | 17 -----------------
> 1 file changed, 17 deletions(-)
>
> diff --git a/sound/soc/intel/avs/boards/da7219.c b/sound/soc/intel/avs/boards/da7219.c
> index 80c0a1a956542..daf53ca490a14 100644
> --- a/sound/soc/intel/avs/boards/da7219.c
> +++ b/sound/soc/intel/avs/boards/da7219.c
> @@ -211,21 +211,6 @@ static int avs_create_dai_link(struct device *dev, const char *platform_name, in
> 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)
> {
> struct snd_soc_dai_link *dai_link;
> @@ -257,8 +242,6 @@ static int avs_da7219_probe(struct platform_device *pdev)
> card->name = "avs_da7219";
> card->dev = dev;
> card->owner = THIS_MODULE;
> - card->suspend_pre = avs_card_suspend_pre;
> - card->resume_post = avs_card_resume_post;
> card->dai_link = dai_link;
> card->num_links = 1;
> card->controls = card_controls;
next prev parent reply other threads:[~2024-11-28 12:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-28 12:27 [PATCH] ASoC: Intel: avs: Remove component->set_jack() on suspend/resume Marek Maslanka
2024-11-28 12:55 ` Cezary Rojewski [this message]
2024-11-28 15:12 ` [PATCH v2] ASoC: Intel: avs: da7219: Remove suspend_pre() and resume_post() Marek Maslanka
2024-11-28 15:31 ` Mark Brown
2024-12-02 13:30 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10062d09-34c8-4e53-b5d7-f96a5b19f6f8@intel.com \
--to=cezary.rojewski@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=broonie@kernel.org \
--cc=kai.vehmanen@linux.intel.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mmaslanka@google.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.dev \
--cc=ranjani.sridharan@linux.intel.com \
--cc=tiwai@suse.com \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox