From: Takashi Iwai Subject: Re: Update: emu1212m Date: Wed, 21 Jun 2006 12:37:37 +0200 Message-ID: References: <44951964.9020509@superbug.co.uk> <4498FBC4.5090900@superbug.co.uk> <20060621091447.GW3206@master.mivlgu.local> 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: <20060621091447.GW3206@master.mivlgu.local> 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: Sergey Vlasov Cc: alsa-devel , James Courtier-Dutton List-Id: alsa-devel@alsa-project.org At Wed, 21 Jun 2006 13:14:47 +0400, Sergey Vlasov wrote: > > > The trouble is, that if one changes some controls on the device, e.g. > > switching from SPDIF to ADAT digital outputs, a whole new different > > firmware image is loaded. So, one has multiple different firmware > > images, with one swapping between them. Should these firmware images be > > left in the kernel then, instead of using the userspace firmware api? > > There are some drivers in the kernel which load different firmware images > in different modes. E.g., the ipw2200 driver can load ipw2200-bss.fw, > ipw2200-ibss.fw or ipw2200-sniffer.fw depending on the mode set by > iwconfig (and can switch between them at runtime). > > There is also an option to use a single firmware file consisting of > multiple parts used for different modes, but this obviously has a higher > memory overhead. IMHO this should be used only when there are some > latency restrictions for switching modes (so that a driver can request all > firmware parts during initialization and then load different parts without > waiting for userspace helpers). Well, from programming perspective, keeping all firmware images would be easier, so I would implement the cached images at first. In addition, these images are also useful to implement suspend/resume. Takashi