From patchwork Fri Dec 17 17:56:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 524994 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82E86C433EF for ; Fri, 17 Dec 2021 18:02:01 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A2E57289E; Fri, 17 Dec 2021 19:01:09 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A2E57289E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1639764119; bh=OUfYfB9FwkQbrFW8I835LS+lqG+miLAVKQXKnH48vps=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Et/jZW0Fm9LQ2NBpEb+M4w+E3deS7a5KXuZ4UvloLrVfQbh/6rW2dKC/jknTI0t+N QCF+okE+BUQnqHJkeju4rburtb3UIPeQX6qY4kttqFRWpibO0C8fnNUoCcxX4jicR5 +n9WH7v/TsKVERMrbDILQWYIuBLC8HCdQ8d85v/s= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id EA7C4F8052F; Fri, 17 Dec 2021 18:58:28 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 03A35F80528; Fri, 17 Dec 2021 18:58:24 +0100 (CET) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 9415CF8047B for ; Fri, 17 Dec 2021 18:58:12 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9415CF8047B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hTeyIA3Z" Received: by mail-lj1-x22e.google.com with SMTP id bn20so4567626ljb.8 for ; Fri, 17 Dec 2021 09:58:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=btGZfuKkvHGlpDu1vpCSHhDujyvUpwrfJCWjKl++rLQ=; b=hTeyIA3ZMR1GhJuhwrMK33OO6tU4vclI8f1veWvFSxUY32rLFMAmHLt1tF9OU0+BXt V8V7ezaLiZ6dtUp/Tdhhz4QLhbJwRVqJmY1ECIqUgOJ4K1GZ84CLz1wO9EmEZIUrk7k0 UkKZhLQBBvDUbnuJv98SnQQRZsHAQJgc0wd4JlA5DL11S+xtIScRTIyK71r0mY7WxBH2 eTCkSZ9umnI5ZasO6qcp+6wPQ1cFpSgKQ/Xfz0YmFfLsRpp9L+KtauwBTV+crq642CLp GysCVKk6qi6IhRxGLdRTXCjbw8iN1bor/3Qa+ARhNPYp7ThEFNDmJUUNcpGGOf2F/o2L qxlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=btGZfuKkvHGlpDu1vpCSHhDujyvUpwrfJCWjKl++rLQ=; b=PuiR3TOFrwR8fH9Rvs02dhjr7iRfeceFnccOVcz5RIS0Ha8aDvXNQI/a/gv8tgKDw+ VPMZ3N3PyoUaUrbSTf0bCXrhKlcGrYCvh2JEXDkx7UOFi6XjdaO8EID04PAnTBjvfUt1 SDsa6EGIKHCqORPXS/go+ccnDR+nj5FkFYrvGmMnfY34gzidF6U4gQxiMAro1dFzVgAD j+i7QD/HPGAkJZdZ/taQ/iv68dtAD2eyhK/MtXk92PhDPKj6zrvv/p5/yaSo/E/hgUZs 4gcv616uMXPfZryA3EXPxztNW/RGJ616LEsqqOAwYm3cUsbpU713O+H+AcR9nyVnUACM 8ozg== X-Gm-Message-State: AOAM53095ZgF6xPFHyIlZsQnm3isUFsJeMPU07sgLlwbKsxMJKeA5rAa a7ELXWSOkOqjXBpHc9KaceA= X-Google-Smtp-Source: ABdhPJwc6k2Csr10tHFwoicg91w/boebavr0X5MJSYT45hxlb3vZvhXbsT4HBnNCjE7+UvzLbzTfbA== X-Received: by 2002:a2e:548:: with SMTP id 69mr3636945ljf.225.1639763890228; Fri, 17 Dec 2021 09:58:10 -0800 (PST) Received: from localhost.localdomain (94-29-63-156.dynamic.spd-mgts.ru. [94.29.63.156]) by smtp.gmail.com with ESMTPSA id w23sm1479244lfa.191.2021.12.17.09.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 09:58:09 -0800 (PST) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Mark Brown , Takashi Iwai , Jaroslav Kysela , Liam Girdwood , Agneli Subject: [PATCH v5 09/11] ASoC: tegra20: spdif: Support system suspend Date: Fri, 17 Dec 2021 20:56:04 +0300 Message-Id: <20211217175606.22645-10-digetx@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211217175606.22645-1-digetx@gmail.com> References: <20211217175606.22645-1-digetx@gmail.com> MIME-Version: 1.0 Cc: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Support system suspend by enforcing runtime PM suspend/resume. Now there is no doubt that h/w is indeed stopped during suspend and that h/w state will be properly restored after resume. Acked-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra20_spdif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/tegra/tegra20_spdif.c b/sound/soc/tegra/tegra20_spdif.c index bc45a0a8afab..a4aa5614aef4 100644 --- a/sound/soc/tegra/tegra20_spdif.c +++ b/sound/soc/tegra/tegra20_spdif.c @@ -345,6 +345,8 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev) static const struct dev_pm_ops tegra20_spdif_pm_ops = { SET_RUNTIME_PM_OPS(tegra20_spdif_runtime_suspend, tegra20_spdif_runtime_resume, NULL) + SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, + pm_runtime_force_resume) }; static const struct of_device_id tegra20_spdif_of_match[] = {