Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2679530ybh; Fri, 24 Jul 2020 21:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznYL106QIyZzRrCdUqSlBHmkoNvhlsNxlxvtQG11XFPHaxE6RagZOj+EVQ2OK76DFBE+HN X-Received: by 2002:a17:906:594c:: with SMTP id g12mr12038880ejr.255.1595649972614; Fri, 24 Jul 2020 21:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595649972; cv=none; d=google.com; s=arc-20160816; b=p2lqVF+kXEUKlwAAt6DmVxVGKzbLtvGeeVUis20xHQYM2Z3D92Ez3zY9w1P31IuBSt Zo3RpuJcOx5Lmuh6rqziaoWRicaezlHWIlspuu5BYUN8QYGqHKHbBXOvEi2Xe/l7kq9y dx+NIFj445DsiGdO3a5UlA1i8acanW5SYoAp6cVxhUymJMwwa8rWoqSkZWqUmEZv8mCs lY5uFfgM5aWh5DisErQQYoJWB+z0WtsNe5mWKl5AMRz5N5qqPQMNdeo900KQNcT4uhul px1f1jWvT4MccrJOXWUTZHxezVDs1r4IiyzFtwTkZU/8/x9ZFcbYAj4DnpWMqRo9J4JM nnRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=/V6VomTGy9IxzE36ZuyZmqcC7yCvuSdvllt+U+FhybM=; b=fjGZCur2Mb8L0jlGGbGZzu06OOCsQnRnLq79rOXUI0cHnAhT7dfkc1spzE/V7sTxjr RoD8pynj+NedMl9qGBYerLVq5Ks8ARrKa3G+CcCPP6cNmQQo9A8R96hVepnOdbwnaXry KcTPBC7q50risQImW6JkgFkFxUTXq83NG/HETp0q2GTl7NRseNfviFXCKcGEDAXCh8EY FlaVdanoIWXIGZvhtKbNSqITHYoQxohdN8xFuUQ18Q92E/MFGSTnBSvgoGyMCJz0jg4V j/rCxhzZnh8yC1IgB5T/qOCUYmD/tqqozinj/FNdXSOq3GPQXJc5qydDRnkdswc8oy73 R6pA== 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 l22si1597283eji.104.2020.07.24.21.05.48; Fri, 24 Jul 2020 21:06:12 -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 S1726676AbgGYECE (ORCPT + 99 others); Sat, 25 Jul 2020 00:02:04 -0400 Received: from lucky1.263xmail.com ([211.157.147.132]:54728 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725766AbgGYECE (ORCPT ); Sat, 25 Jul 2020 00:02:04 -0400 Received: from localhost (unknown [192.168.167.13]) by lucky1.263xmail.com (Postfix) with ESMTP id 11EEEEC493; Sat, 25 Jul 2020 12:01:58 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [111.204.108.116]) by smtp.263.net (postfix) whith ESMTP id P5979T140275804518144S1595649718262681_; Sat, 25 Jul 2020 12:01:58 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <8979ef735d1a662965749e452507493a> 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: 111.204.108.116 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: penghao To: perex@perex.cz, tiwai@suse.com, gregkh@linuxfoundation.org, alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, phz0008@163.com, penghao@uniontech.com, "penghao@deepin.com" Subject: [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 12:01:55 +0800 Message-Id: <20200725040155.27648-1-penghao@uniontech.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "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 Signed-off-by: penghao@uniontech.com Signed-off-by: penghao@deepin.com --- 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); /* * For devices with more than one control interface, we assume the @@ -914,3 +920,4 @@ static struct usb_driver usb_audio_driver = { }; module_usb_driver(usb_audio_driver); + -- 2.11.0