1. 08 Apr, 2021 1 commit
  2. 07 Apr, 2021 2 commits
  3. 06 Apr, 2021 1 commit
  4. 02 Apr, 2021 1 commit
  5. 01 Apr, 2021 2 commits
  6. 31 Mar, 2021 1 commit
    • Bastian Germann's avatar
      ASoC: sunxi: sun4i-codec: fill ASoC card owner · 7c0d6e48
      Bastian Germann authored
      card->owner is a required property and since commit 81033c6b ("ALSA:
      core: Warn on empty module") a warning is issued if it is empty. Add it.
      This fixes following warning observed on Lamobo R1:
      
      WARNING: CPU: 1 PID: 190 at sound/core/init.c:207 snd_card_new+0x430/0x480 [snd]
      Modules linked in: sun4i_codec(E+) sun4i_backend(E+) snd_soc_core(E) ...
      CPU: 1 PID: 190 Comm: systemd-udevd Tainted: G         C  E     5.10.0-1-armmp #1 Debian 5.10.4-1
      Hardware name: Allwinner sun7i (A20) Family
      Call trace:
       (snd_card_new [snd])
       (snd_soc_bind_card [snd_soc_core])
       (snd_soc_register_card [snd_soc_core])
       (sun4i_codec_probe [sun4i_codec])
      
      Fixes: 45fb6b6f ("ASoC: sunxi: add support for the on-chip codec on early Allwinner SoCs")
      Related: commit 3c27ea23 ("ASoC: qcom: Set card->owner to avoid warnings")
      Related: commit ec653df2 ("drm/vc4/vc4_hdmi: fill ASoC card owner")
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: alsa-devel@alsa-project.org
      Signed-off-by: default avatarBastian Germann <bage@linutronix.de>
      Link: https://lore.kernel.org/r/20210331151843.30583-1-bage@linutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      7c0d6e48
  7. 30 Mar, 2021 3 commits
  8. 29 Mar, 2021 2 commits
  9. 25 Mar, 2021 2 commits
  10. 24 Mar, 2021 2 commits
  11. 23 Mar, 2021 10 commits
  12. 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.comSigned-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.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      febf2256
  13. 18 Mar, 2021 2 commits
  14. 16 Mar, 2021 8 commits
  15. 15 Mar, 2021 1 commit