From patchwork Tue Nov 28 16:09:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 119890 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1902264qgn; Tue, 28 Nov 2017 08:09:38 -0800 (PST) X-Google-Smtp-Source: AGs4zMb+/VEfhtqbLBEHeQlIT+Yl0ayteG/xRqWD6vJhGJzA4hFWrTu9Y/H7BSzpnV/JRO1LuKKl X-Received: by 10.223.184.47 with SMTP id h44mr32956396wrf.11.1511885378069; Tue, 28 Nov 2017 08:09:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511885378; cv=none; d=google.com; s=arc-20160816; b=0CyYIx2eW7atRDmBGtYatl08Rj1ILAp/tvasDXOSW7bIX0SuxPXqJ2IWEaJIHLPMkP JC0fzvV5nVqn/X/5Q0HQwZAfIojYWTfyILsh0cbLOFGKw3vGwzzhHt/7yFxy4IdFawEU 5mVpXRTFyLh+nKnCUGJXxsT05IDOIieRdY+2rcW4++47//Os89s3UGXDH3jPphM0uXEY uX4YXt/AJPF++hhZzdat+EVrvN92ez/WscfbO1gu5gJkmQ90rL4jc1f8rxqpwiQHRICS f4v0mpUlHYNIvvBDnMAwzrkuzjofBqYFRNA5BrON/4ciCLBb/wtT74ILs4NWaIuPY60o ii4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=MERHPT+qHgrt8Bbghex2CNQFl/FHvAxpIAWGvEa29ZU=; b=rLo9tYZEAqwEwOVZEYvQQpCPkKBadyVX1BFeI2ju0P0S70wGt7v4kH4siEeI0gKWkQ bNJKAodIuYTUainLBDGowOiBzl23Ipg1LgJqdxpCixG4FxTqtC6iaLfsG1T8HasmOnZ5 fPhUHShEOWVxh/8qoZDecpVsS+fVphn2/CZMli8Ph9QSSrfA2WYInjun/+3EOsRvsALB ML9tvpQ6vJlvP7ucINw/0ctekZAyybFWI102QcoMc6pE626OCu2FNfdkETQHWKA/b2A7 Qh6FvU5urssT3mZDy7Q34ji7WqXb59sM8ehNZkTneysm0qKO19UHOblieMrCayVo4TST arvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=r+/+oga+; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 21si13171094wmp.233.2017.11.28.08.09.37; Tue, 28 Nov 2017 08:09:38 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=r+/+oga+; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 318EA26780D; Tue, 28 Nov 2017 17:09:26 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 041B9267803; Tue, 28 Nov 2017 17:09:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 3CE052677F9 for ; Tue, 28 Nov 2017 17:09:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=VrEAZN9b6khMdeaBWXD9YOkzwo7E+4xWWtxYjAUO5Os=; b=r+/+oga+Y5/n n7ru6wlQf9IAhcvx4bhKzhGvvUOFS/Vc1ucsof8S90tqOKOZ0tiXSRje3x79JfvjR3chJmged5Xdc HKk6LRuCea5jfMCRb+FxVg5XPTGDMcjaKMAzy2WQ+wy7bMt+vfe7y+osBeGuAWsk/qgs2TywlOfQW gvuMw=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eJiRc-0008Nz-SO; Tue, 28 Nov 2017 16:09:12 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eJiRc-0001rc-DX; Tue, 28 Nov 2017 16:09:12 +0000 From: Mark Brown To: Kuninori Morimoto In-Reply-To: <87o9of4xjt.wl%kuninori.morimoto.gx@renesas.com> Message-Id: Date: Tue, 28 Nov 2017 16:09:12 +0000 Cc: Takashi Iwai , alsa-devel@alsa-project.org, Mark Brown , Simon Subject: [alsa-devel] Applied "ASoC: add snd_soc_disconnect_sync()" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: add snd_soc_disconnect_sync() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From ef2e8175eb19011f756469d4d14f4207bf7f289c Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 28 Nov 2017 06:27:09 +0000 Subject: [PATCH] ASoC: add snd_soc_disconnect_sync() Now, we have snd_card_disconnect_sync() on ALSA framework. snd_soc_disconnect_sync() is ASoC version of it. Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- include/sound/soc.h | 2 ++ sound/soc/soc-core.c | 10 ++++++++++ 2 files changed, 12 insertions(+) -- 2.15.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/include/sound/soc.h b/include/sound/soc.h index 1a7323238c49..22f479e1da0a 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -494,6 +494,8 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num); int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num); #endif +void snd_soc_disconnect_sync(struct device *dev); + struct snd_pcm_substream *snd_soc_get_dai_substream(struct snd_soc_card *card, const char *dai_link, int stream); struct snd_soc_pcm_runtime *snd_soc_get_pcm_runtime(struct snd_soc_card *card, diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index c0edac80df34..9047046c749c 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1392,6 +1392,16 @@ static int soc_init_dai_link(struct snd_soc_card *card, return 0; } +void snd_soc_disconnect_sync(struct device *dev) +{ + struct snd_soc_component *component = snd_soc_lookup_component(dev, NULL); + + if (!component || !component->card) + return; + + snd_card_disconnect_sync(component->card->snd_card); +} + /** * snd_soc_add_dai_link - Add a DAI link dynamically * @card: The ASoC card to which the DAI link is added