This project is mirrored from https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git. Pull mirroring updated .
  1. 30 Mar, 2021 3 commits
  2. 29 Mar, 2021 1 commit
  3. 22 Mar, 2021 2 commits
    • Hui Wang's avatar
      ALSA: hda/realtek: call alc_update_headset_mode() in hp_automute_hook · e54f30be
      Hui Wang authored
      
      
      We found the alc_update_headset_mode() is not called on some machines
      when unplugging the headset, as a result, the mode of the
      ALC_HEADSET_MODE_UNPLUGGED can't be set, then the current_headset_type
      is not cleared, if users plug a differnt type of headset next time,
      the determine_headset_type() will not be called and the audio jack is
      set to the headset type of previous time.
      
      On the Dell machines which connect the dmic to the PCH, if we open
      the gnome-sound-setting and unplug the headset, this issue will
      happen. Those machines disable the auto-mute by ucm and has no
      internal mic in the input source, so the update_headset_mode() will
      not be called by cap_sync_hook or automute_hook when unplugging, and
      because the gnome-sound-setting is opened, the codec will not enter
      the runtime_suspend state, so the update_headset_mode() will not be
      called by alc_resume when unplugging. In this case the
      hp_automute_hook is called when unplugging, so add
      update_headset_mode() calling to this function.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
      Link: https://lore.kernel.org/r/20210320091542.6748-2-hui.wang@canonical.com
      
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      e54f30be
    • Hui Wang's avatar
      ALSA: hda/realtek: fix a determine_headset_type issue for a Dell AIO · febf2256
      Hui Wang authored
      
      
      We found a recording issue on a Dell AIO, users plug a headset-mic and
      select headset-mic from UI, but can't record any sound from
      headset-mic. The root cause is the determine_headset_type() returns a
      wrong type, e.g. users plug a ctia type headset, but that function
      returns omtp type.
      
      On this machine, the internal mic is not connected to the codec, the
      "Input Source" is headset mic by default. And when users plug a
      headset, the determine_headset_type() will be called immediately, the
      codec on this AIO is alc274, the delay time for this codec in the
      determine_headset_type() is only 80ms, the delay is too short to
      correctly determine the headset type, the fail rate is nearly 99% when
      users plug the headset with the normal speed.
      
      Other codecs set several hundred ms delay time, so here I change the
      delay time to 850ms for alc2x4 series, after this change, the fail
      rate is zero unless users plug the headset slowly on purpose.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
      Link: https://lore.kernel.org/r/20210320091542.6748-1-hui.wang@canonical.com
      
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      febf2256
  4. 18 Mar, 2021 2 commits
  5. 16 Mar, 2021 8 commits
  6. 15 Mar, 2021 1 commit
  7. 14 Mar, 2021 1 commit
  8. 12 Mar, 2021 3 commits
  9. 11 Mar, 2021 2 commits
  10. 10 Mar, 2021 17 commits