All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: penghao <penghao@uniontech.com>
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
	crwulff@gmail.com, gustavoars@kernel.org,
	Hui Wang <hui.wang@canonical.com>,
	alexander@tsoy.me, Kai-Heng Feng <kai.heng.feng@canonical.com>,
	Mark Pearson <mpearson@lenovo.com>,
	dan.carpenter@oracle.com
Subject: Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
Date: Wed, 19 Aug 2020 19:18:30 +0200	[thread overview]
Message-ID: <s5h364ih7vd.wl-tiwai@suse.de> (raw)
In-Reply-To: <20200819115757.23168-1-penghao@uniontech.com>

[ Adding a few more relevant people to Cc. ]

On Wed, 19 Aug 2020 13:57:57 +0200,
penghao wrote:
> 
> TI024Gen3 USB-audio is controlled by TI024Gen3,when TI024Gens
> enter sleep mode, USB-audio will disconnect from USB bus port,
> wakup form s3 state
> 
> Signed-off-by: penghao <penghao@uniontech.com>
> ---
>  sound/usb/card.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/sound/usb/card.c b/sound/usb/card.c
> index 696e788c5d31..6bdbb34009b3 100644
> --- a/sound/usb/card.c
> +++ b/sound/usb/card.c
> @@ -658,6 +658,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);

Here it's no proper ASCII letter, and this must be broken.
Please check the actual patch before submitting.

In anyway, before going further, I'd like to hear from other people
whether this is really mandatory and appropriate.  And whether it's
specific to that device, too (not other Lenovo devices?)


thanks,

Takashi

WARNING: multiple messages have this Message-ID (diff)
From: Takashi Iwai <tiwai@suse.de>
To: penghao <penghao@uniontech.com>
Cc: Mark Pearson <mpearson@lenovo.com>,
	Hui Wang <hui.wang@canonical.com>,
	Kai-Heng Feng <kai.heng.feng@canonical.com>,
	perex@perex.cz, alexander@tsoy.me, dan.carpenter@oracle.com,
	crwulff@gmail.com, gustavoars@kernel.org,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
Date: Wed, 19 Aug 2020 19:18:30 +0200	[thread overview]
Message-ID: <s5h364ih7vd.wl-tiwai@suse.de> (raw)
In-Reply-To: <20200819115757.23168-1-penghao@uniontech.com>

[ Adding a few more relevant people to Cc. ]

On Wed, 19 Aug 2020 13:57:57 +0200,
penghao wrote:
> 
> TI024Gen3 USB-audio is controlled by TI024Gen3,when TI024Gens
> enter sleep mode, USB-audio will disconnect from USB bus port,
> wakup form s3 state
> 
> Signed-off-by: penghao <penghao@uniontech.com>
> ---
>  sound/usb/card.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/sound/usb/card.c b/sound/usb/card.c
> index 696e788c5d31..6bdbb34009b3 100644
> --- a/sound/usb/card.c
> +++ b/sound/usb/card.c
> @@ -658,6 +658,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);

Here it's no proper ASCII letter, and this must be broken.
Please check the actual patch before submitting.

In anyway, before going further, I'd like to hear from other people
whether this is really mandatory and appropriate.  And whether it's
specific to that device, too (not other Lenovo devices?)


thanks,

Takashi

  reply	other threads:[~2020-08-19 17:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-19 11:57 [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio penghao
2020-08-19 11:57 ` penghao
2020-08-19 17:18 ` Takashi Iwai [this message]
2020-08-19 17:18   ` Takashi Iwai
2020-08-19 18:10   ` Kai-Heng Feng
2020-08-19 18:10     ` Kai-Heng Feng
2020-08-20  1:42     ` Hui Wang
2020-08-20  1:42       ` Hui Wang
2020-08-20  6:25       ` Re:Re: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig byLenovo " 彭浩
2020-08-19 17:21 ` [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo " kernel test robot
2020-08-19 17:21   ` kernel test robot
2020-08-19 17:21   ` kernel test robot
2020-08-19 19:35 ` kernel test robot
2020-08-19 19:35   ` kernel test robot
2020-08-19 19:35   ` kernel test robot
2020-08-19 19:47 ` kernel test robot
2020-08-19 19:47   ` kernel test robot
2020-08-19 19:47   ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-08-19  3:34 penghao
2020-08-19  3:34 ` penghao

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=s5h364ih7vd.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alexander@tsoy.me \
    --cc=alsa-devel@alsa-project.org \
    --cc=crwulff@gmail.com \
    --cc=dan.carpenter@oracle.com \
    --cc=gustavoars@kernel.org \
    --cc=hui.wang@canonical.com \
    --cc=kai.heng.feng@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpearson@lenovo.com \
    --cc=penghao@uniontech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.