From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57680 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159Ab1FLRi0 (ORCPT ); Sun, 12 Jun 2011 13:38:26 -0400 Message-ID: <4DF4F98C.5000405@redhat.com> Date: Sun, 12 Jun 2011 14:38:20 -0300 From: Mauro Carvalho Chehab MIME-Version: 1.0 To: Andy Walls CC: Devin Heitmueller , Hans Verkuil , Linux Media Mailing List Subject: Re: [RFCv1 PATCH 7/7] tuner-core: s_tuner should not change tuner mode. References: <1307799283-15518-1-git-send-email-hverkuil@xs4all.nl> <201106121430.03114.hverkuil@xs4all.nl> <1307883186.2592.10.camel@localhost> <201106121523.15127.hverkuil@xs4all.nl> <1307886285.2592.31.camel@localhost> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: Sender: Em 12-06-2011 12:34, Andy Walls escreveu: > Devin Heitmueller wrote: > >> On Sun, Jun 12, 2011 at 9:44 AM, Andy Walls >> wrote: >>> BTW, the cx18-alsa module annoys me as a developer. PulseAudio holds >>> the device nodes open, pinning the cx18-alsa and cx18 modules in >> kernel. >>> When killed, PulseAudio respawns rapidly and reopens the nodes. >>> Unloading cx18 for development purposes is a real pain when the >>> cx18-alsa module exists. >> >> We've talked about this before, but something just feels wrong about >> this. I don't have this problem with other drivers that provide an >> "-alsa" module. For example, my ngene tree has four ALSA PCM devices >> and 16 mixer controls, yet PulseAudio doesn't keep the module in use. >> >> The more I think about this, the more I suspect this is just some sort >> of subtle bug in the cx18 ALSA driver where some resource is not being >> freed. >> >> Devin >> >> -- >> Devin J. Heitmueller - Kernel Labs >> http://www.kernellabs.com > > I'll recheck with my shiny new Fedora 15 install maybe later tonight. > > The only thing that springs to mind that PA may not like is no mixer controls. Some basic code is there in cx18-alsa-mixer.c, but never registered. > > Pactl does have some magic cmd to let go of the nodes, but I can never remember it. This should do the job: # yum remove -y pulseaudio :) Cheers, Mauro