Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp183955pxa; Tue, 18 Aug 2020 20:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtFGYjnEvPRUAqS9fFiKR8jcAEdXD/7Zyz13m1308RrHSjo8UbsiDUxoDmZ6IuZkYzbQ82 X-Received: by 2002:a17:906:4c46:: with SMTP id d6mr24271937ejw.14.1597808666464; Tue, 18 Aug 2020 20:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597808666; cv=none; d=google.com; s=arc-20160816; b=xL9uNtvQdD27J+zVAsSuvsEZOiyiyiBat8Tfw4GqT2HlM0HqEyorc+2Eh6jsjwgsXZ qi9gg91P1bskCp/2GFrgxGfRLhTCs+GcSK8ZnwBAyMSARVaaqu1nd027UE7mSDAeTHkn PSrviFnuUCfMlCFYe+TqdACG8IaRwAIAuAIZzgCDkH4M6/RunKG60CP0hruFKuGClKpE bsNQU4Rx3Jl1tBwOANlk/by3obe8IimCHo0JnszlhKKR+sbUz/nmYklzUGjxkmMFbZs6 4n3TqPCi1yKX+ELgArvDSkxaK8k3lHPRCwSaX7XqcQYicU30wVwhmcAkOF6nWuPQrIJe y65A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2UomG7Jak80ulaVDTJAcsu4PJ4wXT5pw2zWehbqtE70=; b=rjMmlKoxhMWA+AKFFUI04fR7CRfADgNNgiSv7jiJqRz0FdZ2EwgLRCFqZQN/3SndE9 YFBU+dQfJK1ypJsMNXxizBDTxxszNEKXTTY6HVz7P2iPL3qOWiaxrCmjkyLwCZmTK2bd opia+cCn8zNgf7HiJoYFBITRw9z1gJEnXNF665xfnTV0KZO7G5FgAEdwW8JH+BFjClZB bxA0LqeNKnYowxPANi0r1PcFKA9jL06A4Mv2Fe3/PxBMTFWsRUwsDrhcquF4vS9sEGDh HaMmzcEsTRZxnn4ANSvaQYKyAxQW3UcdX0P9Ym7aCu2VODOTavDVhLnk7W5XKGuLU0d4 M49Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si14383136edr.534.2020.08.18.20.44.02; Tue, 18 Aug 2020 20:44:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbgHSDfF (ORCPT + 99 others); Tue, 18 Aug 2020 23:35:05 -0400 Received: from regular1.263xmail.com ([211.150.70.197]:52944 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbgHSDfE (ORCPT ); Tue, 18 Aug 2020 23:35:04 -0400 Received: from localhost (unknown [192.168.167.16]) by regular1.263xmail.com (Postfix) with ESMTP id C5764D3F; Wed, 19 Aug 2020 11:34:50 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 Received: from localhost.localdomain (250.19.126.124.broad.bjtelecom.net [124.126.19.250]) by smtp.263.net (postfix) whith ESMTP id P25957T140260100654848S1597808091034256_; Wed, 19 Aug 2020 11:34:51 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: penghao@uniontech.com X-SENDER: penghao@uniontech.com X-LOGIN-NAME: penghao@uniontech.com X-FST-TO: perex@perex.cz X-SENDER-IP: 124.126.19.250 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 5 X-System-Flag: 0 From: penghao To: perex@perex.cz, tiwai@suse.com Cc: alexander@tsoy.me, dan.carpenter@oracle.com, crwulff@gmail.com, penghao@uniontech.com, gustavoars@kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: usb-audio: Add prevent wakeup from s3 state trig by Lenovo ThinkCentre TI024Gen3 USB-audio Date: Wed, 19 Aug 2020 11:34:46 +0800 Message-Id: <20200819033446.7897-1-penghao@uniontech.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=yes Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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