From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuninori Morimoto Subject: Re: [PATCH 2/3] ASoC: add snd_soc_card_disconnect_sync() Date: Wed, 11 Oct 2017 08:47:10 +0000 Message-ID: <87tvz6nknl.wl%kuninori.morimoto.gx@renesas.com> References: <87fuaqp5e7.wl%kuninori.morimoto.gx@renesas.com> <87bmlep58s.wl%kuninori.morimoto.gx@renesas.com> <20171011084252.awkhvhpuubj4gdvy@sirena.co.uk> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 7932B26735C for ; Wed, 11 Oct 2017 10:47:16 +0200 (CEST) In-Reply-To: <20171011084252.awkhvhpuubj4gdvy@sirena.co.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: Takashi Iwai , Linux-ALSA , Simon List-Id: alsa-devel@alsa-project.org Hi Mark > > +void snd_soc_card_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); > > Is this the right name for ASoC or should it just be > snd_soc_disconnect_sync()? It'll work for any device that's in a card. Ahh, indeed. snd_soc_disconnect_sync() is better naming. I will fix name in v2 (Based on Takashi's branch) Best regards --- Kuninori Morimoto