From: Takashi Iwai <tiwai@suse.de>
To: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>,
Pavel Skripkin <paskripkin@gmail.com>,
Chris Chiu <chiu@endlessm.com>, Mark Brown <broonie@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Tom Yan <tom.ty89@gmail.com>, Joe Perches <joe@perches.com>,
"moderated list:SOUND" <alsa-devel@alsa-project.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume
Date: Thu, 25 Mar 2021 15:30:03 +0100 [thread overview]
Message-ID: <s5h7dlvmhlg.wl-tiwai@suse.de> (raw)
In-Reply-To: <CAAd53p4NagjhwSsdGbpzGM7Wwc60kJP53+ew4Ub72KcFB5q-dQ@mail.gmail.com>
On Thu, 25 Mar 2021 15:24:42 +0100,
Kai-Heng Feng wrote:
>
> On Thu, Mar 25, 2021 at 9:55 PM Kai-Heng Feng
> <kai.heng.feng@canonical.com> wrote:
> >
> > On Thu, Mar 25, 2021 at 9:41 PM Takashi Iwai <tiwai@suse.de> wrote:
> > >
> > > On Thu, 25 Mar 2021 13:12:48 +0100,
> > > Kai-Heng Feng wrote:
> > > >
> > > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no
> > > > error and the other two functions of the USB audio, Line In and Line
> > > > Out, work just fine.
> > > >
> > > > The mic starts to work again after running userspace app like "alsactl
> > > > store". Following the lead, the evidence shows that as soon as connector
> > > > status is queried, the mic can work again.
> > > >
> > > > So also check connector value on resume to "wake up" the USB audio to
> > > > make it functional.
> > > >
> > > > This can be device specific, however I think this generic approach may
> > > > benefit more than one device.
> > > >
> > > > While at it, also remove reset-resume path to consolidate mixer resume
> > > > path.
> > > >
> > > > Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> > > > ---
> > > > v2:
> > > > - Remove reset-resume.
> > > > - Fold the connector checking to the mixer resume callback.
> > >
> > > That's not what I meant exactly... I meant to put both into the
> > > single resume callback, but handle each part conditionally depending
> > > on reset_resume argument.
> >
> > OK, I get what you mean now.
> >
> > >
> > > But this turned out to need more changes in mixer_quirks.c
> > > unnecessarily. Maybe adding the two resume functions is a better
> > > approach in the end, but not for the specific connection thing but
> > > generically both resume and reset_resume callbacks. Something like
> > > below.
> >
> > This approach looks good. Let me send another one.
>
> Actually, it works really well and I don't I think I should send the
> code you wrote.
> Is it possible to push your version with my commit log, and with my tested tag?
>
> Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Heh, I'm too lazy to write up the whole commit. Could you just fold
into yours and submit a v3 series? I don't mind who is credited as
the author, just put me as Suggested-by or such, if any.
thanks,
Takashi
prev parent reply other threads:[~2021-03-25 14:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 12:12 [PATCH v2 1/2] ALSA: usb-audio: Carve out connector value checking into a helper Kai-Heng Feng
2021-03-25 12:12 ` [PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume Kai-Heng Feng
2021-03-25 13:41 ` Takashi Iwai
2021-03-25 13:55 ` Kai-Heng Feng
2021-03-25 14:24 ` Kai-Heng Feng
2021-03-25 14:30 ` Takashi Iwai [this message]
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=s5h7dlvmhlg.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=chiu@endlessm.com \
--cc=joe@perches.com \
--cc=kai.heng.feng@canonical.com \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=paskripkin@gmail.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=tom.ty89@gmail.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
all inboxes | Powered by JetHome®