From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaroslav Kysela Subject: Re: Can not rmmod snd_hda_codec_hdmi Date: Wed, 24 Dec 2014 20:02:31 +0100 Message-ID: <549B0DC7.5030309@perex.cz> References: <1419332872.4067.10.camel@xbing-ubuntu> <680798B3-0846-423E-80F5-11AA542B563A@ladisch.de> <1419414572.1861.3.camel@gmail.com> <549A8DF8.1010004@iki.fi> <1419422073.1929.5.camel@gmail.com> <549AB171.8030700@sakamocchi.jp> <1419426474.4103.10.camel@xbing-ubuntu> <549ABDC4.7010901@sakamocchi.jp> <1419427660.2226.4.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail1.perex.cz (mail1.perex.cz [77.48.224.245]) by alsa0.perex.cz (Postfix) with ESMTP id 072D32604DF for ; Wed, 24 Dec 2014 20:02:33 +0100 (CET) In-Reply-To: <1419427660.2226.4.camel@gmail.com> 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: Xuebing Wang , Takashi Sakamoto Cc: "; Libin Yang" , "alsa-devel@alsa-project.org" , "; Takashi Iwai" , "; Mengdong Lin" , Clemens Ladisch , Anssi Hannula , "; Fengguang Wu" List-Id: alsa-devel@alsa-project.org Dne 24.12.2014 v 14:27 Xuebing Wang napsal(a): > On Wed, 2014-12-24 at 22:21 +0900, Takashi Sakamoto wrote: >> On Dec 24 2014 22:07, Xuebing Wang wrote: >>> 2) However, in Fedora, 'pulseaudio --kill' or your way can get refcount >>> of snd_hda_intel from 7 to 2 (5 decreased). Any suggestions how to >>> decrease the rest 2 refcount? >>> >>> 3) I did try to build tag 3.13 from mainline kernel (using Fedora 3.17.4 >>> config file) and tried 3.13 kernel on Fedora, and got the same result >>> (refcount of snd_hda_intel is down from 7 to 2). >> >> Hm. In this case that the refcount is down to 2, how is the output of >> 'fuser' command? If any applications use these character devices, we can >> see the name of command. > > Sakamoto-san, thanks for your help. > > I found out that it is alsactl in Fedora. After kill alsactl, refcnt is > now down to 0, and both snd_hda_intel and snd_hda_codec_hdmi can be > rmmod'ed. 'fuser -v /dev/snd' does not reveal alsactl. > > Thanks again. The command should be: $ fuser /dev/snd/* And you can stop the alsa state service in Fedora using: $ systemctl stop alsa-state.service Jaroslav --- Jaroslav Kysela Linux Kernel Sound Maintainer ALSA Project; Red Hat, Inc.