Skip to content
  1. Apr 28, 2021
  2. Apr 27, 2021
  3. Apr 26, 2021
    • Takashi Iwai's avatar
      Merge tag 'asoc-v5.13' of... · 0301201b
      Takashi Iwai authored
      Merge tag 'asoc-v5.13' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
      
      ASoC: Updates for v5.13
      
      A lot of changes here for quite a quiet release in subsystem terms -
      there's been a lot of fixes and cleanups all over the subsystem both
      from generic work and from people working on specific drivers.
      
       - More cleanup and consolidation work in the core and the generic card
         drivers from Morimoto-san.
       - Lots of cppcheck fixes for Pierre-Louis Brossart.
       - New drivers for Freescale i.MX DMA over rpmsg, Mediatek MT6358
         accessory detection, and Realtek RT1019, RT1316, RT711 and RT715.
      0301201b
    • Lv Yunlong's avatar
      ALSA: emu8000: Fix a use after free in snd_emu8000_create_mixer · 1c98f574
      Lv Yunlong authored
      
      
      Our code analyzer reported a uaf.
      
      In snd_emu8000_create_mixer, the callee snd_ctl_add(..,emu->controls[i])
      calls snd_ctl_add_replace(.., kcontrol,..). Inside snd_ctl_add_replace(),
      if error happens, kcontrol will be freed by snd_ctl_free_one(kcontrol).
      Then emu->controls[i] points to a freed memory, and the execution comes
      to __error branch of snd_emu8000_create_mixer. The freed emu->controls[i]
      is used in snd_ctl_remove(card, emu->controls[i]).
      
      My patch set emu->controls[i] to NULL if snd_ctl_add() failed to avoid
      the uaf.
      
      Signed-off-by: default avatarLv Yunlong <lyl2019@mail.ustc.edu.cn>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210426131129.4796-1-lyl2019@mail.ustc.edu.cn
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      1c98f574
    • Sami Loone's avatar
      ALSA: hda/realtek: fix static noise on ALC285 Lenovo laptops · 9bbb94e5
      Sami Loone authored
      Remove a duplicate vendor+subvendor pin fixup entry as one is masking
      the other and making it unreachable. Consider the more specific newcomer
      as a second chance instead.
      
      The generic entry is made less strict to also match for laptops with
      slightly different 0x12 pin configuration. Tested on Lenovo Yoga 6 (AMD)
      where 0x12 is 0x40000000.
      
      Fixes: 607184cb
      
       ("ALSA: hda/realtek - Add supported for more Lenovo ALC285 Headset Button")
      Signed-off-by: default avatarSami Loone <sami@loone.fi>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/YIXS+GT/dGI/LtK6@yoga
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      9bbb94e5
    • Takashi Iwai's avatar
      ALSA: usb-audio: Fix implicit sync clearance at stopping stream · 988cc175
      Takashi Iwai authored
      
      
      The recent endpoint management change for implicit feedback mode added
      a clearance of ep->sync_sink (formerly ep->sync_slave) pointer at
      snd_usb_endpoint_stop() to assure no leftover for the feedback from
      the already stopped capture stream.  This turned out to cause a
      regression, however, when full-duplex streams were running and only a
      capture was stopped.  Because of the above clearance of ep->sync_sink
      pointer, no more feedback is done, hence the playback will stall.
      
      This patch fixes the ep->sync_sink clearance to be done only after all
      endpoints are released, for addressing the regression.
      
      Reported-and-tested-by: default avatarLucas Endres <jaffa225man@gmail.com>
      Fixes: bf6313a0
      
       ("ALSA: usb-audio: Refactor endpoint management")
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20210426063349.18601-1-tiwai@suse.de
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      988cc175
  4. Apr 24, 2021
  5. Apr 23, 2021
  6. Apr 22, 2021
    • Arnd Bergmann's avatar
      ASoC: tegra: mark runtime-pm functions as __maybe_unused · ccd4cc3e
      Arnd Bergmann authored
      A reorganization of the driver source led to two of them causing
      a compile time warning in some configurations:
      
      tegra/tegra20_spdif.c:36:12: error: 'tegra20_spdif_runtime_resume' defined but not used [-Werror=unused-function]
         36 | static int tegra20_spdif_runtime_resume(struct device *dev)
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      tegra/tegra20_spdif.c:27:12: error: 'tegra20_spdif_runtime_suspend' defined but not used [-Werror=unused-function]
         27 | static int tegra20_spdif_runtime_suspend(struct device *dev)
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      tegra/tegra30_ahub.c:64:12: error: 'tegra30_ahub_runtime_resume' defined but not used [-Werror=unused-function]
         64 | static int tegra30_ahub_runtime_resume(struct device *dev)
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      tegra/tegra30_ahub.c:43:12: error: 'tegra30_ahub_runtime_suspend' defined but not used [-Werror=unused-function]
         43 | static int tegra30_ahub_runtime_suspend(struct device *dev)
            |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Mark these functions as __maybe_unused to avoid this kind of warning.
      
      Fixes: b5571449 ("ASoC: tegra30: ahub: Remove handing of disabled runtime PM")
      Fixes: c53b396f ("ASoC: tegra20: spdif: Remove handing of disabled runtime PM")
      Fixes: 80ec4a4c ("ASoC: tegra20: i2s: Remove handing of disabled runtime PM")
      Fixes: b5f6f781
      
       ("ASoC: tegra30: i2s: Remove handing of disabled runtime PM")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20210422133418.1757893-1-arnd@kernel.org
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      ccd4cc3e
    • Niklas Carlsson's avatar
      ASoC: adau17x1: Avoid overwriting CHPF · a89f3a93
      Niklas Carlsson authored
      
      
      Configuring number of channels per LRCLK frame by using e.g.
      snd_soc_dai_set_tdm_slot before configuring DAI format was being
      overwritten by the latter due to a regmap_write which would write over
      the whole register.
      
      Signed-off-by: default avatarNiklas Carlsson <niklasc@axis.com>
      Link: https://lore.kernel.org/r/20210422130226.15201-1-Niklas.Carlsson@axis.com
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      a89f3a93
  7. Apr 21, 2021