1. 25 2月, 2010 2 次提交
  2. 24 2月, 2010 1 次提交
    • Z
      ALSA: hda - remove unnecessary msleep on power state transitions · dd2b4a7a
      Zhang, Rui 提交于
      This will save ~15ms boot time.
      
      The first 10ms sleep was introduced in commit d2595d86 for (buggy)
      Cxt codecs, so better to limit the sleep to the problem hardware.
      
      For the second 10ms sleep, the HDA spec says:
      
      Power State[1:0]:
      00: Node Power state (D0) is fully on.
      01: Node Power state (D1) allows for (does not require) the lowest possible power consuming state from which it
      can return to the "fully on" state (D0) within 10 ms, excepting analog pass through circuits (e.g., CD analog
      playback) which must remain fully on.
      10: Node Power state (D2) allows for (does not require) the lowest possible power consuming state from which it
      can return to the "fully on" state (D0) within 10 ms. For modems, this is the "wake on ring" power state.
      11: Node Power state (D3) allows for (does not require) lowest possible power consuming state under software
      control. Note that any low power state set by software must retain sufficient operational capability to properly
      respond to subsequent software Power State command.
      
      So 10ms is actually the max wait time. It should be safe to
      remove/reduce it and rely on the loop of 1ms-sleeps.
      
      CC: Marc Boucher <marc@linuxant.com>
      CC: Arjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      dd2b4a7a
  3. 23 2月, 2010 3 次提交
  4. 22 2月, 2010 6 次提交
  5. 18 2月, 2010 2 次提交
  6. 17 2月, 2010 1 次提交
    • G
      ALSA: Echoaudio, fix Guru Meditation #5.48454C50 · b721e68b
      Giuliano Pochini 提交于
      This patch fixes a division by zero error in the irq handler.
      
      There is a small window between the hw_params() callback and when
      runtime->frame_bits is set by ALSA middle layer. When another substream is
      already running, if an interrupt is delivered during that window the irq
      handler calls pcm_pointer() which does a division by zero. The patch below
      makes the irq handler skip substreams that are initialized but not started
      yet. Cc to Clemens Ladisch because he proposed an alternate fix.
      
      For more information, please read the original thread in the linux-kernel
      mailing list: http://lkml.org/lkml/2010/2/2/187Signed-off-by: NGiuliano Pochini <pochini@shiny.it>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b721e68b
  7. 16 2月, 2010 1 次提交
  8. 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
  9. 13 2月, 2010 2 次提交
  10. 10 2月, 2010 1 次提交
    • J
      ALSA: hda-intel: Avoid divide by zero crash · fed08d03
      Jody Bruchon 提交于
      On my AMD780V chipset, hda_intel.c can crash the kernel with a divide by
      zero
      for as-yet unknown reasons. A simple check for zero prevents it, though
      the problem that causes it remains. Since the workaround is harmless and
      won't affect anyone except victims of this bug, it should be safe;
      moreover,
      because this crash can be triggered by a user-mode application, there are
      denial of service implications on the systems affected by the bug without
      the patch.
      Signed-off-by: NJody Bruchon <jody@nctritech.com>
      Cc: <stable@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      fed08d03
  11. 09 2月, 2010 2 次提交
  12. 08 2月, 2010 3 次提交
  13. 05 2月, 2010 5 次提交
  14. 04 2月, 2010 5 次提交
  15. 29 1月, 2010 2 次提交