From: Takashi Iwai Subject: Re: Feature needed for EMU1820m driver Date: Thu, 28 Sep 2006 14:54:51 +0200 Message-ID: References: <451ABFD1.5030206@superbug.co.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Jaroslav Kysela Cc: alsa-devel , James Courtier-Dutton List-Id: alsa-devel@alsa-project.org At Wed, 27 Sep 2006 20:58:57 +0200 (CEST), Jaroslav Kysela wrote: > > On Wed, 27 Sep 2006, James Courtier-Dutton wrote: > > > Hi, > > > > The E-MU 1820m consists of a PCI card with a connector on it. > > A cable then runs to an external box called the AudioDock with all the > > audio IO on it. > > The AudioDock is hot pluggable. > > The problem is that no interrupts occur if one connects the AudioDock. > > One would have to poll the device until one saw a certain bit being set. > > One would then know the AudioDock was there. The driver then needs to > > load some firmware into the AudioDock. > > > > My question is, what should I use to monitor for the plug/unplug of the > > AudioDock? I would expect some user land app could do the polling, but > > that might require some new ALSA api to support it. > > I would use a low resolution (probably ~1 sec) system timer to check this > bit and request the additional firmware in tasklet or workqueue. In this > case, the userland is not required to participate. Agreed (tasklet cannot used for firmware loading, though). The unplug would be more tough, I guess. The driver has to accept that the box can be unplugged at any time. Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV