1. 02 10月, 2018 9 次提交
  2. 20 9月, 2018 16 次提交
  3. 14 9月, 2018 1 次提交
  4. 13 9月, 2018 1 次提交
  5. 11 9月, 2018 1 次提交
  6. 10 9月, 2018 1 次提交
  7. 04 9月, 2018 7 次提交
  8. 03 9月, 2018 1 次提交
    • T
      ALSA: rawmidi: Initialize allocated buffers · 5a7b44a8
      Takashi Iwai 提交于
      syzbot reported the uninitialized value exposure in certain situations
      using virmidi loop.  It's likely a very small race at writing and
      reading, and the influence is almost negligible.  But it's safer to
      paper over this just by replacing the existing kvmalloc() with
      kvzalloc().
      
      Reported-by: syzbot+194dffdb8b22fc5d207a@syzkaller.appspotmail.com
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5a7b44a8
  9. 30 8月, 2018 3 次提交
    • P
      ALSA: hda: move hda_codec.h to include/sound · be57bfff
      Pierre-Louis Bossart 提交于
      As suggested by Takashi, move this header file to make it easier
      to include from e.g. the Intel Skylake driver in follow-up patches
      Signed-off-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      be57bfff
    • T
      ALSA: hda - Fix cancel_work_sync() stall from jackpoll work · 16037643
      Takashi Iwai 提交于
      On AMD/ATI controllers, the HD-audio controller driver allows a bus
      reset upon the error recovery, and its procedure includes the
      cancellation of pending jack polling work as found in
      snd_hda_bus_codec_reset().  This works usually fine, but it becomes a
      problem when the reset happens from the jack poll work itself; then
      calling cancel_work_sync() from the work being processed tries to wait
      the finish endlessly.
      
      As a workaround, this patch adds the check of current_work() and
      applies the cancel_work_sync() only when it's not from the
      jackpoll_work.
      
      This doesn't fix the root cause of the reported error below, but at
      least, it eases the unexpected stall of the whole system.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=200937
      Cc: <stable@vger.kernel.org>
      Cc: Lukas Wunner <lukas@wunner.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      16037643
    • T
      ALSA: hda - Clean up jackpoll_ms option handling · 3a182c84
      Takashi Iwai 提交于
      Currently the jackpoll_ms option value is passed indirectly by
      referring to an array in chip->jackpoll_ms although each card needs to
      see only the assigned value.  Also, the sanity check is done at each
      time in get_jackpoll_interval() although basically jackpoll_ms option
      is a read-only, hence we need to evaluate only once at probe time.
      
      This patch is the code simplification about the above points: the jack
      polling interval is directly set to chip->jackpoll_interval so that it
      can be simply copied to each codec.
      
      No functional change but only code reduction.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3a182c84