1. 13 7月, 2020 1 次提交
  2. 11 7月, 2020 2 次提交
  3. 07 7月, 2020 4 次提交
  4. 17 6月, 2020 1 次提交
  5. 16 6月, 2020 1 次提交
  6. 08 6月, 2020 1 次提交
  7. 27 5月, 2020 1 次提交
  8. 26 5月, 2020 1 次提交
    • T
      ALSA: hda/realtek - Add a model for Thinkpad T570 without DAC workaround · 399c01aa
      Takashi Iwai 提交于
      We fixed the regression of the speaker volume for some Thinkpad models
      (e.g. T570) by the commit 54947cd6 ("ALSA: hda/realtek - Fix
      speaker output regression on Thinkpad T570").  Essentially it fixes
      the DAC / pin pairing by a static table.  It was confirmed and merged
      to stable kernel later.
      
      Now, interestingly, we got another regression report for the very same
      model (T570) about the similar problem, and the commit above was the
      culprit.  That is, by some reason, there are devices that prefer the
      DAC1, and another device DAC2!
      
      Unfortunately those have the same ID and we have no idea what can
      differentiate, in this patch, a new fixup model "tpt470-dock-fix" is
      provided, so that users with such a machine can apply it manually.
      When model=tpt470-dock-fix option is passed to snd-hda-intel module,
      it avoids the fixed DAC pairing and the DAC1 is assigned to the
      speaker like the earlier versions.
      
      Fixes: 54947cd6 ("ALSA: hda/realtek - Fix speaker output regression on Thinkpad T570")
      BugLink: https://apibugzilla.suse.com/show_bug.cgi?id=1172017
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20200526062406.9799-1-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      399c01aa
  9. 19 5月, 2020 1 次提交
  10. 18 5月, 2020 1 次提交
  11. 15 5月, 2020 1 次提交
  12. 12 5月, 2020 4 次提交
  13. 10 5月, 2020 1 次提交
  14. 04 5月, 2020 2 次提交
  15. 01 5月, 2020 4 次提交
  16. 27 4月, 2020 1 次提交
  17. 23 4月, 2020 1 次提交
  18. 19 4月, 2020 1 次提交
    • T
      ALSA: hda/realtek - Fix unexpected init_amp override · 67791202
      Takashi Iwai 提交于
      The commit 1c76aa5f ("ALSA: hda/realtek - Allow skipping
      spec->init_amp detection") changed the way to assign spec->init_amp
      field that specifies the way to initialize the amp.  Along with the
      change, the commit also replaced a few fixups that set spec->init_amp
      in HDA_FIXUP_ACT_PROBE with HDA_FIXUP_ACT_PRE_PROBE.  This was rather
      aligning to the other fixups, and not supposed to change the actual
      behavior.
      
      However, this change turned out to cause a regression on FSC S7020,
      which hit exactly the above.  The reason was that there is still one
      place that overrides spec->init_amp after HDA_FIXUP_ACT_PRE_PROBE
      call, namely in alc_ssid_check().
      
      This patch fixes the regression by adding the proper spec->init_amp
      override check, i.e. verifying whether it's still ALC_INIT_UNDEFINED.
      
      Fixes: 1c76aa5f ("ALSA: hda/realtek - Allow skipping spec->init_amp detection")
      Cc: <stable@vger.kernel.org>
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207329
      Link: https://lore.kernel.org/r/20200418190639.10082-1-tiwai@suse.deSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      67791202
  19. 11 4月, 2020 1 次提交
  20. 08 4月, 2020 1 次提交
  21. 07 4月, 2020 2 次提交
  22. 03 4月, 2020 1 次提交
  23. 31 3月, 2020 2 次提交
    • T
      ALSA: hda/realtek - Remove now-unnecessary XPS 13 headphone noise fixups · f36938aa
      Thomas Hebb 提交于
      patch_realtek.c has historically failed to properly configure the PC
      Beep Hidden Register for the ALC256 codec (among others). Depending on
      your kernel version, symptoms of this misconfiguration can range from
      chassis noise, picked up by a poorly-shielded PCBEEP trace, getting
      amplified and played on your internal speaker and/or headphones to loud
      feedback, which responds to the "Headphone Mic Boost" ALSA control,
      getting played through your headphones. For details of the problem, see
      the patch in this series titled "ALSA: hda/realtek - Set principled PC
      Beep configuration for ALC256", which fixes the configuration.
      
      These symptoms have been most noticed on the Dell XPS 13 9350 and 9360,
      popular laptops that use the ALC256. As a result, several model-specific
      fixups have been introduced to try and fix the problem, the most
      egregious of which locks the "Headphone Mic Boost" control as a hack to
      minimize noise from a feedback loop that shouldn't have been there in
      the first place.
      
      Now that the underlying issue has been fixed, remove all these fixups.
      Remaining fixups needed by the XPS 13 are all picked up by existing pin
      quirks.
      
      This change should, for the XPS 13 9350/9360
      
       - Significantly increase volume and audio quality on headphones
       - Eliminate headphone popping on suspend/resume
       - Allow "Headphone Mic Boost" to be set again, making the headphone
         jack fully usable as a microphone jack too.
      
      Fixes: 8c69729b ("ALSA: hda - Fix headphone noise after Dell XPS 13 resume back from S3")
      Fixes: 423cd785 ("ALSA: hda - Fix headphone noise on Dell XPS 13 9360")
      Fixes: e4c9fd10 ("ALSA: hda - Apply headphone noise quirk for another Dell XPS 13 variant")
      Fixes: 1099f484 ("ALSA: hda/realtek: Reduce the Headphone static noise on XPS 9350/9360")
      Cc: stable@vger.kernel.org
      Signed-off-by: NThomas Hebb <tommyhebb@gmail.com>
      Link: https://lore.kernel.org/r/b649a00edfde150cf6eebbb4390e15e0c2deb39a.1585584498.git.tommyhebb@gmail.comSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      f36938aa
    • T
      ALSA: hda/realtek - Set principled PC Beep configuration for ALC256 · c4473744
      Thomas Hebb 提交于
      The Realtek PC Beep Hidden Register[1] is currently set by
      patch_realtek.c in two different places:
      
      In alc_fill_eapd_coef(), it's set to the value 0x5757, corresponding to
      non-beep input on 1Ah and no 1Ah loopback to either headphones or
      speakers. (Although, curiously, the loopback amp is still enabled.) This
      write was added fairly recently by commit e3743f431143 ("ALSA:
      hda/realtek - Dell headphone has noise on unmute for ALC236") and is a
      safe default. However, it happens in the wrong place:
      alc_fill_eapd_coef() runs on module load and cold boot but not on S3
      resume, meaning the register loses its value after suspend.
      
      Conversely, in alc256_init(), the register is updated to unset bit 13
      (disable speaker loopback) and set bit 5 (set non-beep input on 1Ah).
      Although this write does run on S3 resume, it's not quite enough to fix
      up the register's default value of 0x3717. What's missing is a set of
      bit 14 to disable headphone loopback. Without that, we end up with a
      feedback loop where the headphone jack is being driven by amplified
      samples of itself[2].
      
      This change eliminates the update in alc256_init() and replaces it with
      the 0x5757 write from alc_fill_eapd_coef(). Kailang says that 0x5757 is
      supposed to be the codec's default value, so using it will make
      debugging easier for Realtek.
      
      Affects the ALC255, ALC256, ALC257, ALC235, and ALC236 codecs.
      
      [1] Newly documented in Documentation/sound/hd-audio/realtek-pc-beep.rst
      
      [2] Setting the "Headphone Mic Boost" control from userspace changes
      this feedback loop and has been a widely-shared workaround for headphone
      noise on laptops like the Dell XPS 13 9350. This commit eliminates the
      feedback loop and makes the workaround unnecessary.
      
      Fixes: e1e8c1fd ("ALSA: hda/realtek - Dell headphone has noise on unmute for ALC236")
      Cc: stable@vger.kernel.org
      Signed-off-by: NThomas Hebb <tommyhebb@gmail.com>
      Link: https://lore.kernel.org/r/bf22b417d1f2474b12011c2a39ed6cf8b06d3bf5.1585584498.git.tommyhebb@gmail.comSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      c4473744
  24. 29 3月, 2020 1 次提交
    • H
      ALSA: hda/realtek - a fake key event is triggered by running shutup · 476c02e0
      Hui Wang 提交于
      On the Lenovo X1C7 machines, after we plug the headset, the rt_resume()
      and rt_suspend() of the codec driver will be called periodically, the
      driver can't stay in the rt_suspend state even users doen't use the
      sound card.
      
      Through debugging, I found  when running rt_suspend(), it will call
      alc225_shutup(), in this function, it will change 3k pull down control
      by alc_update_coef_idx(codec, 0x4a, 0, 3 << 10), this will trigger a
      fake key event and that event will resume the codec, when codec
      suspend agin, it will trigger the fake key event one more time, this
      process will repeat.
      
      If disable the key event before changing the pull down control, it
      will not trigger fake key event. It also needs to restore the pull
      down control and re-enable the key event, otherwise the system can't
      get key event when codec is in rt_suspend state.
      
      Also move some functions ahead of alc225_shutup(), this can save the
      function declaration.
      
      Fixes: 76f7dec0 (ALSA: hda/realtek - Add Headset Button supported for ThinkPad X1)
      Cc: Kailang Yang <kailang@realtek.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NHui Wang <hui.wang@canonical.com>
      Link: https://lore.kernel.org/r/20200329082018.20486-1-hui.wang@canonical.comSigned-off-by: NTakashi Iwai <tiwai@suse.de>
      476c02e0
  25. 27 3月, 2020 1 次提交
  26. 18 3月, 2020 2 次提交