1. 13 12月, 2018 8 次提交
  2. 06 12月, 2018 11 次提交
  3. 01 12月, 2018 1 次提交
    • T
      ALSA: oss: Use kvzalloc() for local buffer allocations · 27d6abfb
      Takashi Iwai 提交于
      commit 65766ee0bf7fe8b3be80e2e1c3ef54ad59b29476 upstream.
      
      PCM OSS layer may allocate a few temporary buffers, one for the core
      read/write and another for the conversions via plugins.  Currently
      both are allocated via vmalloc().  But as the allocation size is
      equivalent with the PCM period size, the required size might be quite
      small, depending on the application.
      
      This patch replaces these vmalloc() calls with kvzalloc() for covering
      small period sizes better.  Also, we use "z"-alloc variant here for
      addressing the possible uninitialized access reported by syzkaller.
      
      Reported-by: syzbot+1cb36954e127c98dd037@syzkaller.appspotmail.com
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      27d6abfb
  4. 27 11月, 2018 2 次提交
  5. 14 11月, 2018 11 次提交
  6. 04 10月, 2018 1 次提交
  7. 20 9月, 2018 1 次提交
    • T
      ALSA: hda: Fix the audio-component completion timeout · b3a5402c
      Takashi Iwai 提交于
      The timeout of audio component binding was incorrectly specified in
      msec, not in jiffies, which results in way too shorter timeout than
      expected.
      
      Along with fixing it, add the information print about the binding
      failure to show the unexpected situation more clearly.
      
      Fixes: a57942bf ("ALSA: hda: Make audio component support more generic")
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      b3a5402c
  8. 17 9月, 2018 4 次提交
  9. 13 9月, 2018 1 次提交
    • T
      ALSA: hda - Enable runtime PM only for discrete GPU · 37a3a98e
      Takashi Iwai 提交于
      The recent change of vga_switcheroo allowed the runtime PM for
      HD-audio on AMD GPUs, but this also resulted in a regression.  When
      the HD-audio controller driver gets runtime-suspended, HD-audio link
      is turned off, and the hotplug notification is ignored.  This leads to
      the inconsistent audio state (the connection isn't notified and ELD is
      ignored).
      
      The best fix would be to implement the proper ELD notification via the
      audio component, but it's still not ready.  As a quick workaround,
      this patch adds the check of runtime_idle and allows the runtime
      suspend only when the vga_switcheroo is bound with discrete GPU.
      That is, a system with a single GPU and APU would be again without
      runtime PM to keep the HD-audio link for the hotplug notification and
      ELD read out.
      
      Also, the codec->auto_runtime_pm flag is set only for the discrete GPU
      at the time GPU gets bound via vga_switcheroo (i.e. only dGPU is
      forcibly runtime-PM enabled), so that APU can still get the ELD
      notification.
      
      For identifying which GPU is bound, a new vga_switcheroo client
      callback, gpu_bound, is implemented.  The vga_switcheroo simply calls
      this when GPU is bound, and tells whether it's dGPU or APU.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=200945
      Fixes: 07f4f97d ("vga_switcheroo: Use device link for HDA controller")
      Reported-by: NJian-Hong Pan <jian-hong@endlessm.com>
      Tested-by: NJian-Hong Pan <jian-hong@endlessm.com>
      Acked-by: NLukas Wunner <lukas@wunner.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      37a3a98e