15 Feb, 2010

3 commits

  • 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: Giuliano Pochini
    Signed-off-by: Takashi Iwai

    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: Giuliano Pochini
    Signed-off-by: Takashi Iwai

    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: Giuliano Pochini
    Signed-off-by: Takashi Iwai

    Giuliano Pochini
     

19 Mar, 2009

1 commit


01 Feb, 2008

1 commit


29 Jun, 2006

1 commit