From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com ([192.55.52.88]:51263 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755690AbcG0DNp (ORCPT ); Tue, 26 Jul 2016 23:13:45 -0400 Date: Wed, 27 Jul 2016 08:51:11 +0530 From: Vinod Koul To: Kuninori Morimoto Cc: Mark Brown , linux-renesas-soc@vger.kernel.org, Linux-ALSA , Simon , Liam Girdwood Subject: Re: [alsa-devel] Question about struct snd_soc_dai() :: cpu_dai->codec Message-ID: <20160727032111.GY9681@localhost> References: <878twpj739.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878twpj739.wl%kuninori.morimoto.gx@renesas.com> Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: On Tue, Jul 26, 2016 at 05:41:56AM +0000, Kuninori Morimoto wrote: > > Hi ALSA SoC > > My current headache is ALSA SoC's each modules (= Card/Codec/CPU/Platform) > doesn't care about "unbind/rmmod". > For example, if someone unbinded/rmmoded "Codec", Card or other modules > doesn't know about it. Thus, user can continue to use this sound card, > and kernel will be Oops. Are you sure about this? Have you tried removing a module? During card probe, asoc will hold a reference to the component. See the calls to try_module_get(). This will prevent from unloading under normal cases. -- ~Vinod