From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Xuebing Wang <xbing6@gmail.com>, Anssi Hannula <anssi.hannula@iki.fi>
Cc: "; Libin Yang" <libin.yang@intel.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"; Takashi Iwai" <tiwai@suse.de>,
"; Mengdong Lin" <mengdong.lin@intel.com>,
Clemens Ladisch <clemens@ladisch.de>,
"; Fengguang Wu" <fengguang.wu@intel.com>
Subject: Re: Can not rmmod snd_hda_codec_hdmi
Date: Wed, 24 Dec 2014 21:28:33 +0900 [thread overview]
Message-ID: <549AB171.8030700@sakamocchi.jp> (raw)
In-Reply-To: <1419422073.1929.5.camel@gmail.com>
On Dec 24 2014 20:54, Xuebing Wang wrote:
> Anssi, thanks for your help.
>
> 1) In Fedora 21 (kernel 3.17.4),
> 'fuser -v /dev/snd/*' shows below:
> /dev/snd/controlC0: xbing 2400 F.... pulseaudio
> /dev/snd/controlC1: xbing 2400 F.... pulseaudio
> /dev/snd/pcmC0D3p: xbing 2400 F...m pulseaudio
> /dev/snd/pcmC1D0c: xbing 2400 F...m pulseaudio
> /dev/snd/pcmC1D0p: xbing 2400 F...m pulseaudio
>
> After 'pulseaudio --kill' to kill pulseaudio (after disable autospawn),
> lsmod shows refcount of snd_hda_intel is down from 7 to 2 as below:
> $ lsmod | grep hda_intel
> snd_hda_intel 30479 2
>
> 'rmmod snd_hda_intel' still shows this module is in use.
>
> 2) But, in Ubuntu 14.04.1 (kernel 3.13.0) DOES work after 'pulseaudio --kill', because lsmod shows refcount of snd_hda_intel is 5.
>
> Any suggestions? Could it be because of kernel difference 3.17.4 vs 3.13.0?
In Ubuntu, pulseaudio process re-run even if you kill the process. See:
https://wiki.ubuntu.com/PulseAudio/Log
But in this case, you don't need to kill pulseaudio. You just set 'off'
for card profile, or unload alsa-card module. Then these character
devices are released.
The way to set card profile:
$ pactl list cards | grep Card
Card #3
$ pactl set-card-profile 3 off
Or use 'configuration' tab in pavucontrol GUI. In Ubuntu, this
application is released by 'pavucontrol' package.
The way to unload alsa-card module:
$ pactl list modules | grep alsa
(... you can see module-alsa-card is loaded.)
$ pactl unload-module module-alsa-card
$ pactl list modules | grep alsa
(... you can see module-alsa-card is unloaded.)
Regards
Takashi Sakamoto
o-takashi@sakamocchi.jp
next prev parent reply other threads:[~2014-12-24 12:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-23 11:07 Can not rmmod snd_hda_codec_hdmi Xuebing Wang
2014-12-23 16:21 ` Clemens Ladisch
2014-12-24 9:49 ` Xuebing Wang
2014-12-24 9:57 ` Anssi Hannula
2014-12-24 11:54 ` Xuebing Wang
2014-12-24 12:28 ` Takashi Sakamoto [this message]
2014-12-24 13:07 ` Xuebing Wang
2014-12-24 13:21 ` Takashi Sakamoto
2014-12-24 13:27 ` Xuebing Wang
2014-12-24 19:02 ` Jaroslav Kysela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=549AB171.8030700@sakamocchi.jp \
--to=o-takashi@sakamocchi.jp \
--cc=alsa-devel@alsa-project.org \
--cc=anssi.hannula@iki.fi \
--cc=clemens@ladisch.de \
--cc=fengguang.wu@intel.com \
--cc=libin.yang@intel.com \
--cc=mengdong.lin@intel.com \
--cc=tiwai@suse.de \
--cc=xbing6@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.