1. 12 2月, 2018 2 次提交
  2. 07 2月, 2018 3 次提交
  3. 19 1月, 2018 1 次提交
  4. 18 1月, 2018 7 次提交
  5. 17 1月, 2018 3 次提交
  6. 16 1月, 2018 7 次提交
  7. 15 1月, 2018 2 次提交
    • T
      ALSA: seq: Process queue tempo/ppq change in a shot · 671ec859
      Takashi Iwai 提交于
      The SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO ioctl sets the tempo and the ppq
      in a single call, while the current implementation updates each value
      one by one.  This is a bit racy, and also suboptimal from the
      performance POV, as each call does re-acquire the lock and invokes
      the update of ALSA timer resolution.
      
      This patch reorganizes the code slightly so that we change both the
      tempo and the ppq in a shot.  The skew value can be put into the same
      lock, but this is rather a rarely used feature and completely
      independent from the temp/ppq (it's evaluated only in the interrupt),
      so it's left as it was.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      671ec859
    • M
      ALSA: usb-audio: Add a quirk for Nura's first gen headset · 33193dca
      Martin Peres 提交于
      The capture interface does not work, and the playback interface
      actually supports only 48kHz unlike what is advertised (44.1, 32, 22,
      16, 8).
      
      The only unknown here is if there are other devices that use the same
      product ID, but given that this ID is currently unknown, I would assume
      it is specially allocated for the nura headset.
      Signed-off-by: NMartin Peres <martin.peres@free.fr>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      33193dca
  8. 13 1月, 2018 5 次提交
  9. 12 1月, 2018 3 次提交
  10. 11 1月, 2018 5 次提交
    • T
      ALSA: seq: Make ioctls race-free · b3defb79
      Takashi Iwai 提交于
      The ALSA sequencer ioctls have no protection against racy calls while
      the concurrent operations may lead to interfere with each other.  As
      reported recently, for example, the concurrent calls of setting client
      pool with a combination of write calls may lead to either the
      unkillable dead-lock or UAF.
      
      As a slightly big hammer solution, this patch introduces the mutex to
      make each ioctl exclusive.  Although this may reduce performance via
      parallel ioctl calls, usually it's not demanded for sequencer usages,
      hence it should be negligible.
      Reported-by: NLuo Quan <a4651386@163.com>
      Reviewed-by: NKees Cook <keescook@chromium.org>
      Reviewed-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b3defb79
    • W
      ASoC: stm32: fix a typo in stm32_adfsdm_probe() · 6dee6722
      Wei Yongjun 提交于
      Fix a typo, we should return PTR_ERR(priv->iio_cb) instead of
      PTR_ERR(priv->iio_ch).
      
      Fixes: 55da0948 ("ASoC: stm32: add DFSDM DAI support")
      Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      6dee6722
    • A
      ASoC: stm32: select IIO_BUFFER · 9cee7972
      Arnd Bergmann 提交于
      The new stm32_adfsdm driver has incomplete dependencies as shown
      by Kconfig:
      
      warning: (SND_SOC_STM32_DFSDM && LMP91000) selects IIO_BUFFER_CB which has unmet direct dependencies (IIO && IIO_BUFFER)
      sound/soc/stm/stm32_adfsdm.o: In function `stm32_adfsdm_trigger':
      stm32_adfsdm.c:(.text+0x8c): undefined reference to `stm32_dfsdm_get_buff_cb'
      stm32_adfsdm.c:(.text+0x9c): undefined reference to `stm32_dfsdm_release_buff_cb'
      
      This makes the dependency on SND_SOC_STM32_DFSDM unconditional, so we can
      always resolve the stm32_dfsdm_get_buff_cb/stm32_dfsdm_release_buff_cb
      symbols and get the implied IIO_BUFFER dependency.
      
      compile-testing on other platforms is still possible as long as that IIO
      driver is there.
      
      Fixes: 55da0948 ("ASoC: stm32: add DFSDM DAI support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      9cee7972
    • T
      ALSA: pcm: Remove yet superfluous WARN_ON() · 23b19b7b
      Takashi Iwai 提交于
      muldiv32() contains a snd_BUG_ON() (which is morphed as WARN_ON() with
      debug option) for checking the case of 0 / 0.  This would be helpful
      if this happens only as a logical error; however, since the hw refine
      is performed with any data set provided by user, the inconsistent
      values that can trigger such a condition might be passed easily.
      Actually, syzbot caught this by passing some zero'ed old hw_params
      ioctl.
      
      So, having snd_BUG_ON() there is simply superfluous and rather
      harmful to give unnecessary confusions.  Let's get rid of it.
      
      Reported-by: syzbot+7e6ee55011deeebce15d@syzkaller.appspotmail.com
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      23b19b7b
    • A
      ASoC: ux500: add MODULE_LICENSE tag · 1783c9d7
      Arnd Bergmann 提交于
      This adds MODULE_LICENSE/AUTHOR/DESCRIPTION tags to the ux500
      platform drivers, to avoid these build warnings:
      
      WARNING: modpost: missing MODULE_LICENSE() in sound/soc/ux500/snd-soc-ux500-plat-dma.o
      WARNING: modpost: missing MODULE_LICENSE() in sound/soc/ux500/snd-soc-ux500-mach-mop500.o
      
      The company no longer exists, so the email addresses of the authors
      don't work any more, but I've added them anyway for consistency.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      1783c9d7
  11. 10 1月, 2018 2 次提交