1. 18 2月, 2010 2 次提交
  2. 17 2月, 2010 3 次提交
  3. 16 2月, 2010 8 次提交
  4. 15 2月, 2010 4 次提交
    • G
      ALSA: Echoaudio - Add suspend support #2 · 47b5d028
      Giuliano Pochini 提交于
      This patch adds rearranges parts of the initialization code and adds
      suspend and resume callbacks.
      
      This patch adds suspend and resume callbacks.
      It also rearranges parts of the initialization code so it can be
      used in both the first initialization (when the module is loaded we
      also have to load default settings) and the resume callback (where
      we have to restore the previous settings).
      Signed-off-by: NGiuliano Pochini <pochini@shiny.it>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      47b5d028
    • G
      ALSA: Echoaudio - Add suspend support #1 · ad3499f4
      Giuliano Pochini 提交于
      Move the controls init code outside the init_hw() function because is must
      not be called during resume.
      
      This patch moves the code that initializes the card's controls with
      default valued from the init_hw() function into a separated
      set_mixer_defaults() function (one for each of the 16 supported
      cards). This change is necessary because during resume we must
      resurrect the hardware without losing the previous
      settings. set_mixer_defaults() must be called only once when the
      module is loaded.
      Signed-off-by: NGiuliano Pochini <pochini@shiny.it>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ad3499f4
    • G
      ALSA: Echoaudio - Add firmware cache #2 · 4f8ada44
      Giuliano Pochini 提交于
      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: NGiuliano Pochini <pochini@shiny.it>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4f8ada44
    • G
      ALSA: Echoaudio - Add firmware cache #1 · 19b50063
      Giuliano Pochini 提交于
      Changes the way the firmware is passed through functions.
      
      When CONFIG_PM is enabled the firmware cannot be released because the
      driver will need it again to resume the card. 
      With this patch the firmware is passed as an index of the struct
      firmware card_fw[] in place of a pointer. That same index is then used
      to locate the firmware in the firmware cache.
      Signed-off-by: NGiuliano Pochini <pochini@shiny.it>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      19b50063
  5. 13 2月, 2010 8 次提交
  6. 12 2月, 2010 15 次提交