From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Hammerfall (hdsp) initialization problem Date: Fri, 30 Jul 2004 15:01:52 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <1090607568.17750.7.camel@modemcable182.55-70-69.mc.videotron.ca> <20040724100520.26b4ac8f@laptop> <1090734488.3156.2.camel@modemcable182.55-70-69.mc.videotron.ca> <1090754189.15178.8.camel@localhost> <1090944426.4065.10.camel@modemcable182.55-70-69.mc.videotron.ca> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jean-Marc Valin Cc: Thomas Charbonnel , Tim Blechmann , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 27 Jul 2004 18:30:15 +0200, I wrote: > > At Tue, 27 Jul 2004 12:07:06 -0400, > Jean-Marc Valin wrote: > > > > > The problem is that you have to know the PCI pointer to call > > > dma_alloc_coherent() correctly beforehand. Otherwise you'll get only > > > ZONE_DMA under 16MB region. > > > > Still, there must be *something* that can be done, no? What are other > > OSs doing about that? I mean, the card manual doesn't say "if you insert > > this card after boot, it won't work", so I don't see why ALSA > > fundamentally couldn't support hot-plugging cards. > > Of course hotplug is supported (how can you read above in such a way?) > The question is only the memory preallocation for the cardbus device. > > hdsp driver and/or memalloc.c should be changed to handle properly the > buffer preservation after replugging. Most likely the pci device > pointer is changed after replug. Can anyone check whether pci_dev > pointer is changed at each time? Ok, I now simplified the middle layer code for buffer allocation. Now the HDSP buffer should be preserved during replugging and the same buffer should be reused. I don't attach here the patch since it's a relatively massive change. Please check the cvs tree later after sync'ed. (Or wait for 1.0.6-rc release, scheduled soon later) Takashi ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com