All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19 11:57 ` penghao
  0 siblings, 0 replies; 20+ messages in thread
From: penghao @ 2020-08-19 11:57 UTC (permalink / raw)
  To: perex, tiwai
  Cc: alsa-devel, penghao, crwulff, gustavoars, linux-kernel, alexander,
	dan.carpenter

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);
 
 	/*
 	 * For devices with more than one control interface, we assume the
-- 
2.11.0




^ permalink raw reply related	[flat|nested] 20+ messages in thread
* [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio
@ 2020-08-19  3:34 ` penghao
  0 siblings, 0 replies; 20+ messages in thread
From: penghao @ 2020-08-19  3:34 UTC (permalink / raw)
  To: perex, tiwai
  Cc: alsa-devel, penghao, crwulff, gustavoars, linux-kernel, alexander,
	dan.carpenter

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=yes, Size: 833 bytes --]

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);
 
 	/*
 	 * For devices with more than one control interface, we assume the
-- 
2.11.0




^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-08-20  6:26 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.