1. 25 Jun, 2020 1 commit
    • Hui Wang's avatar
      ALSA: hda - let hs_mic be picked ahead of hp_mic · 6a6ca788
      Hui Wang authored
      We have a Dell AIO, there is neither internal speaker nor internal
      mic, only a multi-function audio jack on it.
      
      Users reported that after freshly installing the OS and plug
      a headset to the audio jack, the headset can't output sound. I
      reproduced this bug, at that moment, the Input Source is as below:
      Simple mixer control 'Input Source',0
        Capabilities: cenum
        Items: 'Headphone Mic' 'Headset Mic'
        Item0: 'Headphone Mic'
      
      That is because the patch_realtek will set this audio jack as mic_in
      mode if Input Source's value is hp_mic.
      
      If it is not fresh installing, this issue will not happen since the
      systemd will run alsactl restore -f /var/lib/alsa/asound.state, this
      will set the 'Input Source' according to history value.
      
      If there is internal speaker or internal mic, this issue will not
      happen since there is valid sink/source in the pulseaudio, the PA will
      set the 'Input Source' according to active_port.
      
      To fix this issue, change the parser function to let the hs_mic be
      stored ahead of hp_mic.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
      Link: https://lore.kernel.org/r/20200625083833.11264-1-hui.wang@canonical.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      6a6ca788
  2. 24 Jun, 2020 1 commit
    • Takashi Iwai's avatar
      ALSA: usb-audio: Fix OOB access of mixer element list · 220345e9
      Takashi Iwai authored
      The USB-audio mixer code holds a linked list of usb_mixer_elem_list,
      and several operations are performed for each mixer element.  A few of
      them (snd_usb_mixer_notify_id() and snd_usb_mixer_interrupt_v2())
      assume each mixer element being a usb_mixer_elem_info object that is a
      subclass of usb_mixer_elem_list, cast via container_of() and access it
      members.  This may result in an out-of-bound access when a
      non-standard list element has been added, as spotted by syzkaller
      recently.
      
      This patch adds a new field, is_std_info, in usb_mixer_elem_list to
      indicate that the element is the usb_mixer_elem_info type or not, and
      skip the access to such an element if needed.
      
      Reported-by: syzbot+fb14314433463ad51625@syzkaller.appspotmail.com
      Reported-by: syzbot+2405ca3401e943c538b5@syzkaller.appspotmail.com
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20200624122340.9615-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      220345e9
  3. 23 Jun, 2020 2 commits
  4. 22 Jun, 2020 1 commit
    • Takashi Iwai's avatar
      Merge tag 'asoc-fix-v5.8-rc2' of... · 91ef3d9f
      Takashi Iwai authored
      Merge tag 'asoc-fix-v5.8-rc2' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
      
      ASoC: Fixes for v5.8
      
      This is a collection of mostly small fixes, mostly fixing fallout from
      some of the DPCM changes that went in last time around which shook out
      some issues on i.MX and Qualcomm platforms.  The addition of a managed
      version of snd_soc_register_dai() is to fix resource leaks.
      
      There's also a few new device IDs for x86 systems.
      91ef3d9f
  5. 18 Jun, 2020 3 commits
  6. 17 Jun, 2020 7 commits
  7. 16 Jun, 2020 2 commits
  8. 15 Jun, 2020 11 commits
  9. 12 Jun, 2020 5 commits
  10. 11 Jun, 2020 3 commits
  11. 10 Jun, 2020 1 commit
  12. 09 Jun, 2020 3 commits