1. 13 9月, 2012 1 次提交
    • T
      ALSA: hda - Allow to pass position_fix=0 explicitly · 1dac6695
      Takashi Iwai 提交于
      Set the default value of position_fix -1, and allow user passing
      position_fix=0 explicitly to set the "auto" position-fix mode.
      Otherwise the auto mode may be switched to others like COMBO of
      VIACOMBO when the controller prefers it, thus user can't set the auto
      mode any longer.
      
      Also updated the documentation appropriately, too.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      1dac6695
  2. 11 9月, 2012 2 次提交
  3. 30 8月, 2012 2 次提交
    • T
      ALSA: hda - Clean up CONFIG_SND_HDA_POWER_SAVE · 83012a7c
      Takashi Iwai 提交于
      CONFIG_SND_HDA_POWER_SAVE is no longer an experimental feature and its
      behavior can be well controlled via the default value and module
      parameter.  Let's just replace it with the standard CONFIG_PM.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      83012a7c
    • T
      ALSA: hda - Fix runtime PM leftover refcounts · 68467f51
      Takashi Iwai 提交于
      When the HD-audio is removed, it leaves the refcounts when codecs are
      powered up (usually yes) in the destructor.  For fixing the unbalance,
      and cleaning up the code mess, this patch changes the following:
      - change pm_notify callback to take the explicit power on/off state,
      - check of D3 stop-clock and keep_link_on flags is moved to the caller
        side,
      - call pm_notify callback in snd_hda_codec_new() and snd_hda_codec_free()
        so that the refcounts are proprely updated.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      68467f51
  4. 24 8月, 2012 1 次提交
  5. 23 8月, 2012 1 次提交
    • M
      ALSA: hda - add runtime PM support · b8dfc462
      Mengdong Lin 提交于
      Runtime PM can bring more power saving:
      - When the controller is suspended, its parent device will also have a chance
        to suspend.
      - PCI subsystem can choose the lowest power state the controller can signal
        wake up from. This state can be D3cold on platforms with ACPI PM support.
      And runtime PM can provide a gerneral sysfs interface for a system policy
      manager.
      
      Runtime PM support is based on current HDA power saving implementation. The user
      can enable runtime PM on platfroms that provide acceptable latency on transition
      from D3 to D0.
      
      Details:
      - When both power saving and runtime PM are enabled:
        -- If a codec supports 'stop-clock' in D3, it will request suspending the
           controller after it enters D3 and request resuming the controller before
           back to D0. Thus the controller will be suspended only when all codecs are
           suspended and support stop-clock in D3.
        -- User IO operations and HW wakeup signal can resume the controller back to
           D0.
      - If runtime PM is disabled, power saving just works as before.
      - If power saving is disabled, the controller won't be suspended because the
        power usage counter can never be 0.
      
      More about 'stop-clock' feature:
      If a codec can support targeted pass-through operations in D3 state when there
      is no BCLK present on the link, it will set CLKSTOP flag in the supported power
      states and report PS-ClkStopOk when entering D3 state. Please refer to HDA spec
      section 7.3.3.10 Power state and 7.3.4.12 Supported Power State.
      
      [Fixed CONFIG_PM_RUNTIME dependency in hda_intel.c by tiwai]
      Signed-off-by: NMengdong Lin <mengdong.lin@intel.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b8dfc462
  6. 20 8月, 2012 1 次提交
  7. 15 8月, 2012 1 次提交
  8. 10 8月, 2012 1 次提交
  9. 09 8月, 2012 3 次提交
  10. 16 7月, 2012 2 次提交
  11. 04 7月, 2012 1 次提交
    • T
      ALSA: hda - Remove beep_mode=2 · 0920c9b4
      Takashi Iwai 提交于
      The beep_mode=2 option was introduced to make the beep mixer
      controlling the beep input allocation/deallocation dynamically, so
      that a user can switch between HD-audio codec digital beep and the
      system beep only via mixer API.  This was necessary because the
      keyboard driver took only the first input beep instance at that time.
      
      However, the recent keyboard driver already processes the multiple
      input instances, thus there is no point to keep this mode.
      
      Let's remove it.
      Acked-by: NJaroslav Kysela <perex@perex.cz>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      0920c9b4
  12. 03 7月, 2012 1 次提交
  13. 18 6月, 2012 1 次提交
    • D
      ALSA: hda - Handle open while transitioning to D3. · b4a91cf0
      Dylan Reid 提交于
      This addresses an issue encountered when a pcm is opened while
      transitioning to low power state (codec->power_on == 1 &&
      codec->power_transition == -1).  Add snd_pcm_power_up_d3wait to
      hda_codec.  This function is used to power up from azx_open as opposed
      to snd_hda_power_up used from codec_exec_verb. When powering up from
      azx_open, wait for pending power downs to complete, avoiding the power
      up continuing in parallel with the power down on the work queue.
      
      The specific issue seen was with the CS4210 codec, it powers off the ADC
      and DAC nid in its suspend handler.  If it is re-opened before the
      ~100ms power down process completes, the ADC and DAC nid are initialized
      while powered down and audio is lost until another suspend/resume cycle.
      Signed-off-by: NDylan Reid <dgreid@chromium.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b4a91cf0
  14. 15 6月, 2012 1 次提交
  15. 11 6月, 2012 2 次提交
  16. 08 6月, 2012 2 次提交
    • S
      ALSA: hda - HDMI Audio init all connectors when VGA-switcheroo is off · 8393ec4a
      Steven Newbury 提交于
      When VGA_SWITCHEROO support is enabled hda_intel initialises the HDMI
      audio device on the current VGA device.  When it's not enabled it only
      initialises the HDMI device on the default VGA adaptor, this means
      secondary cards get no audio support which is very unhelpful for
      multi-seat!
      
      With this patch, when SUPPORT_VGA_SWITCHEROO is disabled hda_intel
      initialises all HDMI audio devices, not just the default VGA.
      
      [minor optimizations by tiwai]
      Signed-off-by: NSteven Newbury <steve@snewbury.org.uk>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      8393ec4a
    • T
      ALSA: hda - Fix uninitialized HDMI controllers with VGA-switcheroo · 12b78a7f
      Takashi Iwai 提交于
      When VGA-switcheroo is built in but unused on systems with multiple
      graphics cards, the initializations of non-default graphics cards are
      skipped and never enabled (because the switcheroo is activated only
      when the controller supports).  The current behavior is for avoiding
      the system lockup by accessing the disabled GPU, but due to the recent
      change in VGA-switcheroo, it determines the state simply by checking
      with the default VGA device.  This is the culprit.
      
      Now with the new vga_switcheroo_get_client_state(), we can know the
      initial state of the bound GPU, thus can determine the initial audio
      client state more correctly.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      12b78a7f
  17. 18 5月, 2012 1 次提交
  18. 15 5月, 2012 1 次提交
  19. 14 5月, 2012 2 次提交
  20. 10 5月, 2012 1 次提交
  21. 09 5月, 2012 2 次提交
    • D
      ALSA: HDA: Lessen CPU usage when waiting for chip to respond · 32cf4023
      David Henningsson 提交于
      When an IRQ for some reason gets lost, we wait up to a second using
      udelay, which is CPU intensive. This patch improves the situation by
      waiting about 30 ms in the CPU intensive mode, then stepping down to
      using msleep(2) instead. In essence, we trade some granularity in
      exchange for less CPU consumption when the waiting time is a bit longer.
      
      As a result, PulseAudio should no longer be killed by the kernel
      for taking up to much RT-prio CPU time. At least not for *this* reason.
      Signed-off-by: NDavid Henningsson <david.henningsson@canonical.com>
      Tested-by: NArun Raghavan <arun.raghavan@collabora.co.uk>
      Cc: <stable@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      32cf4023
    • T
      ALSA: hda - Always resume the codec immediately · 7f30830b
      Takashi Iwai 提交于
      This is a fix for the problem in commit 785f857d, the pop noise
      issue on some machines with ALC269.  The problem was the uninitialized
      state after the resume due to the delayed resume of the codec chips.
      In that commit, we tried to fix by forcibly putting the codec to D3 at
      suspend.  But, this still also leaves the uninitialized state after
      resume, and it _might_ be still problematic with some BIOS.  Since the
      commit turned out to regress another issues, we reverted it in the
      end.
      
      Now, in this fix, try to fix by turning on the codec immediately at
      the resume path.  We need to take care of the power-saving in this
      case.  When the device is woken up at the power-saved state, it should
      go power-saving again after the resume.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7f30830b
  22. 08 5月, 2012 1 次提交
    • T
      Revert "ALSA: hda - Set codec to D3 forcibly even if not used" · 619a341b
      Takashi Iwai 提交于
      This reverts commit 785f857d.
      
      The commit causes a problem with the wrong D3 state after suspend
      because the call of hda_set_power_state() involves with the power-up
      sequence, which changes the power_count, and this confuses the resume
      sequence that checks the power_count as well.
      
      Originally, this go-to-D3 sequence should be a simple task without the
      power-up sequence.  But, it'd need some proper sanity checks in the
      case of power-saved state, so it's not too easy to write now in the
      3.4-rc cycle.
      
      In short, the safest option now is to revert this affecting commit.
      
      Of course, we need to clean up and robustify the power-saving code
      better for 3.5 kernel.
      Reported-by: NKonstantin Khlebnikov <khlebnikov@openvz.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      619a341b
  23. 24 4月, 2012 1 次提交
  24. 07 3月, 2012 1 次提交
    • T
      ALSA: hda - Set codec to D3 forcibly even if not used · 785f857d
      Takashi Iwai 提交于
      We've seen a problem with a pop-noise at suspend/resume on a HP
      machine with ALC269, and it turned out to be an issue that the
      controller going to D3 while the codec is unused.
      
      When the device is once suspended and resumed and kept unused, the
      driver doesn't initialize the codecs.  Instead, the codec chips are
      set up dynamically at the first usage.  Now, suppose the device going
      to suspend again before the codec is set up.  The controller is turned
      off to D3 while the codec chips are untouched.  This caused a pop
      noise because the codec chip might have been turned on implicitly by
      the hardware.
      
      As a workaround, the codec chip needs to be set to D3 when going to
      suspend no matter whether it was used or not.  Also, for making it
      happening, the controller has to be always set up in the resume path.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      785f857d
  25. 28 2月, 2012 1 次提交
  26. 08 2月, 2012 1 次提交
  27. 24 1月, 2012 2 次提交
  28. 20 1月, 2012 1 次提交
  29. 13 1月, 2012 1 次提交
  30. 08 1月, 2012 1 次提交