From: Greg KH <gregkh@linuxfoundation.org>
To: penghao <penghao@uniontech.com>
Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org,
linux-kernel@vger.kernel.org, phz0008@163.com,
"penghao@deepin.com" <penghao@deepin.com>
Subject: Re: [PATCH 14216/14216] ALSA: usb-audio: This patch for prevent auto wakeup from s3 trig by usb disconnect signal from Lenovo Thinkcentre TI024Gen3 USB-audio.
Date: Sat, 25 Jul 2020 07:48:44 +0200 [thread overview]
Message-ID: <20200725054844.GA1045868@kroah.com> (raw)
In-Reply-To: <20200725040155.27648-1-penghao@uniontech.com>
On Sat, Jul 25, 2020 at 12:01:55PM +0800, penghao wrote:
> From: "penghao@deepin.com" <penghao@deepin.com>
>
> TI024Gen3 USB-audio is controlled by TI024Gen3,when TI024Gens
> enter sleep mode, USB-audio will disconnect from USB bus port,
> so disabled the /sys/bus/usb/*/power/wakeup Fixesimmediately
> wakup form s3 state
Why the indentation?
>
> Signed-off-by: penghao@uniontech.com <penghao@uniontech.com>
> Signed-off-by: penghao@deepin.com <penghao@deepin.com>
We need a name, not just an email address.
And where are the 14215 other patches in this patch series?
> ---
> sound/usb/card.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/sound/usb/card.c b/sound/usb/card.c
> index 2644a5ae2b75..969c3809e051 100644
> --- a/sound/usb/card.c
> +++ b/sound/usb/card.c
> @@ -640,6 +640,12 @@ static int usb_audio_probe(struct usb_interface *intf,
> }
> }
> dev_set_drvdata(&dev->dev, chip);
> + /*
> + * ALSA: usb-audio: Add prevent wakeup from s3 state trig by lenovo
> + * ThinkCentre TI024Gen3 USB-audio
> + */
> + if ((usb_id->idVendor == 0x17ef) && (usb_id->idProduct == 0xa012))
> + device_set_wakeup_enable(&dev->dev, 0);
Shouldn't there be a quirk for this type of device that can be used
instead?
thanks,
greg k-h
next prev parent reply other threads:[~2020-07-25 5:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-25 4:01 [PATCH 14216/14216] ALSA: usb-audio: This patch for prevent auto wakeup from s3 trig by usb disconnect signal from Lenovo Thinkcentre TI024Gen3 USB-audio penghao
2020-07-25 5:48 ` Greg KH [this message]
[not found] ` <2108119032.587807.1595657354769.JavaMail.xmail@bj-wm-cp-2>
2020-07-25 6:20 ` Re: [PATCH 14216/14216] ALSA: usb-audio: This patch for prevent autowakeup from s3 trig by usb disconnect signal from Lenovo ThinkcentreTI024Gen3 USB-audio Greg KH
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=20200725054844.GA1045868@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penghao@deepin.com \
--cc=penghao@uniontech.com \
--cc=perex@perex.cz \
--cc=phz0008@163.com \
--cc=tiwai@suse.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