Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp166397ybg; Tue, 2 Jun 2020 20:08:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA8TBJv2cHlC3gtaKkQxoyPlgTtZqoLrJ9zjUEtI4klEefg1vqtTrYfW+gnJLXPSvBiIFY X-Received: by 2002:a05:6402:70b:: with SMTP id w11mr28453741edx.251.1591153680649; Tue, 02 Jun 2020 20:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591153680; cv=none; d=google.com; s=arc-20160816; b=Pyy99n9UHzfdT0WVqQUSB2Pd6Usi/E1A4cH4PGQQKRTNX0IPXSxkdpf9SfaGosUQ3Z /7kjeEFchcLDU7cWg2qJngIyk+JXhzH2h3uhQX94Qh0D1BbG7WVDMWlTxPPXBmMu3ujH JGP5Hv4odv91GG03H//Wj3Bs1pDZ4kHvnYUAtRZxCCn+Pzj66cQ3hjNl+/mjrhSvumuv jNVLKqaP25cwmWs1OT6P1sal/FOgr9n4DEORyHG5BYJXYmeZBuXHePCuHtQK9K2pTCyy xz6hnhfrsXpuD4HId42ExRQzD2D+InTa/HkTKNfVHd6TR546lDmw5JB/DAqZq3qX0FD3 Wung== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=W7tF7Mgc/fvciJgJ7QAqTgTQjhCvBLQ6CPGKAAjG2D8=; b=jmSJmmmkKAEVP8u3Q0Yx2WIaPmVHJmcS0aa+GhSGXqZFRXef0bTlwA0vzH0R6MgFon D0/BdABJMr29rvHrGwiiiH7DhYcJk0xQ1DiI/mb3oZQr8nbBL2u4bTOnBRbpwqObD+j3 fC72nL39tGGMCpWfv8i0oRWxf8osbWJycA50HLmpkw1n9PRTw7qt0+J9YD0bNyJrtYrR Z4pqplGTRR0PkLPnfRQ1cjBWv7DDbS4PfP1uyTFN1AUWoHctclYOlFAYSB2aPxeNO/5V 3UF21fSDyB5ik/rNM8MnpI1QHbNW23A4gwR2DOWoljNHeiL910oPR4KX78snPFF8okb3 f/fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=u7PlTMKU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v24si434755ejb.681.2020.06.02.20.07.38; Tue, 02 Jun 2020 20:08:00 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=u7PlTMKU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725878AbgFCDFX (ORCPT + 99 others); Tue, 2 Jun 2020 23:05:23 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:24778 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725780AbgFCDFX (ORCPT ); Tue, 2 Jun 2020 23:05:23 -0400 X-UUID: 013f03ca456545518d26a021da9022c8-20200603 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=W7tF7Mgc/fvciJgJ7QAqTgTQjhCvBLQ6CPGKAAjG2D8=; b=u7PlTMKUuiWIMlZ0yaBgoWCf4OpcgaFcNVfiVgNmlk2zLhiNPd3kUQlg7W6aIdqImhJbJprM8BCe3Cc/QNGHDs88+/FgsVcq8lVR6UyPHj5BPxHB6dIeK9exI0XwZxTTCekXvT/bOmbq28HrNagnnEmWfNr2V9pGwnMU32OhBq4=; X-UUID: 013f03ca456545518d26a021da9022c8-20200603 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 62782876; Wed, 03 Jun 2020 11:05:17 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 3 Jun 2020 11:05:10 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 3 Jun 2020 11:05:10 +0800 Message-ID: <1591153515.23525.50.camel@mtkswgap22> Subject: Re: [PATCH] sound: usb: pcm: fix incorrect power state when playing sound after PM_AUTO suspend From: Macpaul Lin To: Takashi Iwai CC: Jaroslav Kysela , Takashi Iwai , Matthias Brugger , Alexander Tsoy , Johan Hovold , Hui Wang , Szabolcs =?UTF-8?Q?Sz=C5=91ke?= , , , Mediatek WSD Upstream , Macpaul Lin , , , , Greg Kroah-Hartman Date: Wed, 3 Jun 2020 11:05:15 +0800 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 586FA4C026DBFAB221D5480D4E6A63BFED753ABF860C0F7D852D822E2AAFD11B2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDIwLTA2LTAyIGF0IDE0OjQ2ICswMjAwLCBUYWthc2hpI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