1. 25 9月, 2015 2 次提交
    • T
      ALSA: hda - Disable power_save_node for Thinkpads · 7f57d803
      Takashi Iwai 提交于
      Lenovo Thinkpads with recent Realtek codecs seem suffering from click
      noises at power transition since the introduction of widget power
      saving in 4.1 kernel.  Although this might be solved by some delays in
      appropriate points, as a quick workaround, just disable the
      power_save_node feature for now.  The gain it gives is relatively
      small, and this makes the situation back to pre 4.1 time.
      
      This patch ended up with a bit more code changes than usual because
      the existing fixup for Thinkpads is highly chained.  Instead of adding
      yet another chain, combine a few of them into a single fixup entry, as
      a gratis cleanup.
      
      Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=943982
      Cc: <stable@vger.kernel.org> # v4.1+
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7f57d803
    • L
      vga_switcheroo: Set active attribute to false for audio clients · 21b45676
      Lukas Wunner 提交于
      The active attribute in struct vga_switcheroo_client denotes whether
      the outputs are currently switched to this client. The attribute is
      only meaningful for vga clients. It is never used for audio clients.
      
      The function vga_switcheroo_register_audio_client() misuses this
      attribute to store whether the audio device is fully initialized.
      Most likely there was a misunderstanding about the meaning of
      "active" when this was added.
      
      Comment from Takashi's review:
      
      "Not really.  The full initialization of audio was meant that the audio
      is active indeed.  Admittedly, though, the active flag for each audio
      client doesn't play any role because the audio always follows the gfx
      state changes, and the value passed there doesn't reflect the actual
      state due to the later change.  So, I agree with the removal of the
      flag itself -- or let the audio active flag following the
      corresponding gfx flag.  The latter will make the proc output more
      consistent while the former is certainly more reduction of code."
      
      Set the active attribute to false for audio clients. Remove the
      active parameter from vga_switcheroo_register_audio_client() and
      its sole caller, hda_intel.c:register_vga_switcheroo().
      
      vga_switcheroo_register_audio_client() was introduced by 3e9e63db
      ("vga_switcheroo: Add the support for audio clients"). Its use in
      hda_intel.c was introduced by a82d51ed ("ALSA: hda - Support
      VGA-switcheroo").
      
      v1.1: The changes above imply that in find_active_client() the call
      to client_is_vga() is now superfluous. Drop it.
      
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NLukas Wunner <lukas@wunner.de>
      [danvet: Add Takashi's clarification to the commit message.]
      Reviewed-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      21b45676
  2. 24 9月, 2015 1 次提交
  3. 06 9月, 2015 3 次提交
  4. 04 9月, 2015 1 次提交
  5. 03 9月, 2015 1 次提交
  6. 02 9月, 2015 1 次提交
  7. 26 8月, 2015 1 次提交
  8. 25 8月, 2015 3 次提交
    • T
      ALSA: hda - Refresh sysfs at snd_hda_codec_update_widgets() · 9dcc144b
      Takashi Iwai 提交于
      In the commit [fa4f18b4: ALSA: hda - Refresh widgets sysfs at
      probing Haswell+ HDMI codecs], snd_hdac_refresh_widget_sysfs() is
      explicitly called in the codec driver.  But this results in refreshing
      twice, as snd_hdac_refresh_widget_sysfs() itself calls
      snd_hdac_refresh_widgets() function.
      
      Instead, we can replace the call in snd_hda_codec_update_widgets()
      with snd_hdac_refresh_widget_sysfs().  This also fixes the missing
      sysfs update for ca0132, too.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9dcc144b
    • T
      ALSA: hda - Fix path power activation · c7cd0ef6
      Takashi Iwai 提交于
      The widget power-saving code tries to turn up/down the power of each
      widget in the I/O paths that are modified at each jack plug/unplug.
      The recent report revealed that the power activation leaves some
      widgets unpowered after plugging.  This is because
      snd_hda_activate_path() turns on path->active flag at the end of the
      function while the path power management is done before that.  Then
      it's regarded as if nothing is active, and the driver turns off the
      power.
      
      The fix is simply to set the flag at the beginning of the function,
      before trying to power up.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=102521
      Cc: <stable@vger.kernel.org> [v4.1+]
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      c7cd0ef6
    • T
      ALSA: hda - Check all inputs for is_active_nid_for_any() · 9d2b48f7
      Takashi Iwai 提交于
      The is_active_nid_for_any() function in the generic parser is supposed
      to check all connections from/to the given widget, but the current
      code checks only the first input connection (index = 0).
      
      This patch corrects the code to check all inputs by passing -1 to
      index argument.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=102521
      Cc: <stable@vger.kernel.org> [v4.1+]
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9d2b48f7
  9. 24 8月, 2015 1 次提交
  10. 21 8月, 2015 2 次提交
  11. 19 8月, 2015 1 次提交
  12. 17 8月, 2015 4 次提交
  13. 13 8月, 2015 1 次提交
  14. 10 8月, 2015 1 次提交
    • T
      ALSA: hda - Fix pin config and mapping on Alienware 15 · fe14f39e
      Takashi Iwai 提交于
      Alienware 15 has CA0132 codec for its onboard sound, but the pin
      config and mapping seem quite different from other Creative boards.
      This patch corrects them, at least, for providing the right headphone
      and mic jack notification, as well as removing the non-existing SPDIF
      pins.
      
      Even with this fix, not all stuff works perfectly yet, mainly because
      of the badly written ca0132 driver code -- it has too many implicit
      assumptions of pin configs and maps.  Nevertheless, this is a small
      good step forward.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=101981Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      fe14f39e
  15. 05 8月, 2015 3 次提交
  16. 03 8月, 2015 1 次提交
  17. 31 7月, 2015 1 次提交
  18. 30 7月, 2015 1 次提交
  19. 29 7月, 2015 1 次提交
  20. 27 7月, 2015 2 次提交
  21. 25 7月, 2015 2 次提交
  22. 22 7月, 2015 2 次提交
  23. 21 7月, 2015 1 次提交
  24. 20 7月, 2015 2 次提交
  25. 19 7月, 2015 1 次提交