Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1233365ybg; Tue, 2 Jun 2020 04:56:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkHvbKRQVlnOre/7BfyIu4H8vqm9cvzqf5JA8t2QHjRQXUoVUyYVmvQdf45SAb7ooEyaYd X-Received: by 2002:a17:906:60d3:: with SMTP id f19mr22114018ejk.478.1591098984254; Tue, 02 Jun 2020 04:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591098984; cv=none; d=google.com; s=arc-20160816; b=wPR1vvCIETE8ToLOuejK/rCTy+diKZm5MtIL8unwQ0f0dbCoqkwmGjnGkd20hB85uv 3XWtXFG+Y/X4iRZPsWGmd79VIQAkcGkCul1K4RhMxW1ts//bVRiJUFJK7PKhfdQrYIfe 5UOlkVeOcZZerNZRoV5bZbrliuRLII2Zcyh+RXbpnI1c8LVoT77aAnmljvD2ms3yDGuO T61BainC9RU82Q5yGs3lKmCRaNafRAvLyj1kjrXTvuAslQQ6+IUJHCe3h6cYq2Zt2bHt 7p5ibmaF9RZhQcGqtmegSEP5ykKKMbFd1hNrJgVXsybzrw4GsWyr5lRJvNkmPAPqJEMc N7lw== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=L8W+8mcW7tehoLHNruKxathHioAmFWgzPfCM36oBzVI=; b=wxXfUcKWswK3ThtcwGhqri8Mug1JAMFeENjetT5/eOGQ2NP3hzdfYaKOLBGPSGD82h 4zR+E+6h4BvZuQQw7TkfduT+Og4wqkmNHRigBc0ZZFpS5XdfTDAWm007ltfKJMsDSTdI wpmXWl23wt4grfKLSkbOwAHrWXI1fbKYqKIe1+z//uG8uMLT0EF3Sv55Q0CL+peJs3zY FplTMNTo5JmnlUfbAuzgZODpV/Dj0FolktRr9vNm8pOBQZeMG1LYha5EaZRw0Vq/FEQX r5hMzhA4Yp7jnSUEbEzTMUYwrcHoglOuLo4z2dBBvBAr57d4EUVJidrwVrJtDQDxrR6b HL2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=k9mn8oVK; 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 bs24si1405899edb.4.2020.06.02.04.56.00; Tue, 02 Jun 2020 04:56:24 -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=k9mn8oVK; 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 S1726750AbgFBLyP (ORCPT + 99 others); Tue, 2 Jun 2020 07:54:15 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:62304 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726267AbgFBLyP (ORCPT ); Tue, 2 Jun 2020 07:54:15 -0400 X-UUID: db722be8915d4774a20434feec800d44-20200602 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=L8W+8mcW7tehoLHNruKxathHioAmFWgzPfCM36oBzVI=; b=k9mn8oVKytEFmfU9V9wfE7bOeHl582gKVvTUdOLHqqCH7lSp7cflofcwSgaHQ0ZeaoDugr6BF/FB6eHeRMa4ma2CVUniQg21aktdRPhztGUzRTYCM7UqUwSZOh1PjvKZdklXygr7vZ8rdF/qyB5qTjsL4yEYpKiAmqrxOacpFw0=; X-UUID: db722be8915d4774a20434feec800d44-20200602 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 723940935; Tue, 02 Jun 2020 19:54:12 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 2 Jun 2020 19:54:01 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 2 Jun 2020 19:54:01 +0800 From: Macpaul Lin To: Jaroslav Kysela , Takashi Iwai , "Matthias Brugger" , Alexander Tsoy , "Johan Hovold" , Hui Wang , =?UTF-8?q?Szabolcs=20Sz=C5=91ke?= , Macpaul Lin , , CC: Mediatek WSD Upstream , Macpaul Lin , , , Subject: [PATCH] sound: usb: pcm: fix incorrect power state when playing sound after PM_AUTO suspend Date: Tue, 2 Jun 2020 19:53:41 +0800 Message-ID: <1591098821-17910-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain 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 VGhpcyBwYXRjaCBmaXggaW5jb3JyZWN0IHBvd2VyIHN0YXRlIGNoYW5nZWQgYnkgdXNiX2F1ZGlv X3N1c3BlbmQoKQ0Kd2hlbiBDT05GSUdfUE0gaXMgZW5hYmxlZC4NCg0KQWZ0ZXIgcmVjZWl2aW5n IHN1c3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