1. 15 10月, 2015 3 次提交
    • T
      ALSA: hda - Update mixer name for the lower codec address · 7fbe824a
      Takashi Iwai 提交于
      In most cases, we prefer the onboard codec as the primary device, thus
      it's better to set it as the mixer name.  Currently, however, the
      mixer name is updated per the device instantiation order, and user
      gets often HDMI/DP or other seen as a mixer chip name.  Also, if a
      codec name is renamed by the driver, the old chip name might be left
      still as the mixer name.
      
      This patch addresses these issues by remembering the chip address that
      was referred as the mixer name.  When a codec with the same or lower
      address gives its name, renew the mixer name accordingly, as it's
      either the update of the codec name or we get likely the more
      appropriate chip as the reference.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7fbe824a
    • T
      ALSA: hda - consolidate chip rename functions · ded255be
      Takashi Iwai 提交于
      A few multiple codec drivers do renaming the chip_name string but all
      these are open-coded and some of them have even no error check.  Let's
      make common helpers to do it properly.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ded255be
    • T
      ALSA: hda - Enable widget power saving for Cirrus codecs · 3e19fec3
      Takashi Iwai 提交于
      Cirrus codecs have also fine power controls on each widget, thus it
      gets benefit from the recent widget power-saving feature.  As we
      haven't seen any obvious regressions with tests on some MacBooks,
      let's try to enable it.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3e19fec3
  2. 13 10月, 2015 1 次提交
  3. 09 10月, 2015 1 次提交
  4. 05 10月, 2015 1 次提交
  5. 03 10月, 2015 2 次提交
  6. 25 9月, 2015 2 次提交
  7. 24 9月, 2015 1 次提交
  8. 11 9月, 2015 1 次提交
  9. 06 9月, 2015 3 次提交
  10. 04 9月, 2015 1 次提交
  11. 03 9月, 2015 1 次提交
  12. 02 9月, 2015 1 次提交
  13. 26 8月, 2015 1 次提交
  14. 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
  15. 24 8月, 2015 1 次提交
  16. 22 8月, 2015 1 次提交
  17. 21 8月, 2015 3 次提交
  18. 19 8月, 2015 1 次提交
  19. 17 8月, 2015 4 次提交
  20. 13 8月, 2015 1 次提交
  21. 10 8月, 2015 2 次提交
    • 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
    • M
      ALSA: echoaudio: Use standard C definitions of true and false · 3f6175ec
      Mark Brown 提交于
      The echoaudio locally defines TRUE and FALSE.  Not only is this
      redundant given that C now has a boolean type it results in lots of
      warnings as other headers also define these macros, causing duplicate
      definitions.  Fix this by removing the local defines and converting all
      local users to use the standard C true and false instead, simply
      removing the macros is less safe due to implicit inclusion of the other
      definitons.
      
      [fixed overlooked replacement of FALSE by tiwai]
      Signed-off-by: NMark Brown <broonie@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3f6175ec
  22. 05 8月, 2015 3 次提交
  23. 03 8月, 2015 2 次提交