From: Giuliano Pochini Date: Sun, 14 Feb 2010 17:15:51 +0000 (+0100) Subject: ALSA: Echoaudio - Add firmware cache #2 X-Git-Tag: v2.6.34-rc1~243^2~2^2~13^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8ada444cc7a7ea70cdc81f098b34c5f1f2df41;p=pandora-kernel.git ALSA: Echoaudio - Add firmware cache #2 This patch implements a simple cache for the firmware files when CONFIG_PM is defined. This patch changes get_firmware(), free_firmware() and adds free_firmware_cache(). The first two functions implement a very simple cache and the latter is used to actually release all the stored firmwares when the module is unloaded. When CONFIG_PM is not enabled those functions act as before, that is free_firmware() releases the firmware immediately and free_firmware_cache() does nothing. Signed-off-by: Giuliano Pochini Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed