Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp408219pxa; Wed, 19 Aug 2020 05:02:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2cR4lTKGTXGHJDj45lks/okAe4xQeJBecaoDc9hLHc4/e3Y05EtxD8vCy+RAPKcajyIyN X-Received: by 2002:a17:906:248f:: with SMTP id e15mr23472547ejb.296.1597838526644; Wed, 19 Aug 2020 05:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597838526; cv=none; d=google.com; s=arc-20160816; b=PjoCJr2RMO0ajgBZuy0IajKOth3bqOhuD9tXfOa0cV23ZcNb2A++9oroWKnbAm8ksm b9XiByFGSl3984t4YvAhCwlfLW/VGWQBk7d3n3xevSRgKBxGDXgNiYI5nafd0KaM9L8J C20N9OB6RYfkkYpPeUslvdo7zKWbetUZRGLuspun/WD+pY3ypr5Usj0lNuicYstp5hQw 8KJ3Gj5lisY/i5yYcCtpHkFvGdMrN0LlbxM+L+FnQaWtKk5dP5lSliMOhUT/3dnP70KY ZMzv/1qVbNg0omsN+chnxVG+w6GYtp29sFARxrWw12427V1DozcvhPv6qLYtU2MRb/hr YMnA== 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=02eotYabAiZTp6/0ER4nOEm6i2ML3bOBXWf9xxTi2h1/jSDHmq+pPSgmaCxjpu/y61 tsrYCJreSnBuCteYpU6nQYk3kh/AFk8F7PgzFD2TVE7GOsEkoLJXpnImRdbostHLgDkY aJlabH6FdKA+glzRkdybEt8k83QX9e4seUjWeUfIcVYj5gZEgARg/rwEC79Hq3lKzpv5 NDKESOlLcQpG6UhUoXnQkHOwtIllIVSIaRY6GYUN4ZNR/O8CquLh8VuarivGGGQFfVwr WvOX2u6aWG+KqXGfPcUWi8ORPn4MRKl++WChbdyzCBBk3VciWu1EBmEq+2J7Sa9ixTah tXjw== 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 e24si14683961eds.212.2020.08.19.05.01.42; Wed, 19 Aug 2020 05:02:06 -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 S1728366AbgHSL6e (ORCPT + 99 others); Wed, 19 Aug 2020 07:58:34 -0400 Received: from regular1.263xmail.com ([211.150.70.196]:60294 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728455AbgHSL6b (ORCPT ); Wed, 19 Aug 2020 07:58:31 -0400 Received: from localhost (unknown [192.168.167.32]) by regular1.263xmail.com (Postfix) with ESMTP id 6F6EF153C; Wed, 19 Aug 2020 19:58:04 +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 P9873T140063715358464S1597838284065216_; Wed, 19 Aug 2020 19:58:04 +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 19:57:57 +0800 Message-Id: <20200819115757.23168-1-penghao@uniontech.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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