1. 20 2月, 2017 1 次提交
  2. 16 2月, 2017 3 次提交
  3. 14 2月, 2017 1 次提交
  4. 09 2月, 2017 1 次提交
  5. 27 1月, 2017 1 次提交
    • B
      ALSA: cs46xx: constify snd_pcm_ops structures · a6f9dec2
      Bhumika Goyal 提交于
      Declare snd_pcm_ops structures as const as they are either stored in the
      ops field of a snd_pcm_substream structure or passed as an argument to
      the function snd_pcm_set_ops. The function argument and the ops field
      are of type const, so snd_pcm_ops structures having this property
      can be made const too.
      
      File size before: sound/pci/cs46xx/cs46xx_lib.o
         text	   data	    bss	    dec	    hex	filename
        26047	   5304	     16	  31367	   7a87	sound/pci/cs46xx/cs46xx_lib.o
      
      File size after: sound/pci/cs46xx/cs46xx_lib.o
         text	   data	    bss	    dec	    hex	filename
        27335	   4036	     16	  31387	   7a9b	sound/pci/cs46xx/cs46xx_lib.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a6f9dec2
  6. 18 1月, 2017 1 次提交
  7. 16 1月, 2017 1 次提交
  8. 15 1月, 2017 1 次提交
    • T
      ALSA: hda - Make single_cmd option to stop the fallback mechanism · 41438f13
      Takashi Iwai 提交于
      HD-audio driver has a mechanism to fall back to the single cmd mode as
      a last resort if the CORB/RIRB communication goes wrong even after
      switching to the polling mode.  The switching has worked in the past
      well, but Enrico Mioso reported that his system crashes when this
      happens.
      
      Although the actual cause of the crash isn't still fully analyzed yet,
      it'd be in anyway good to provide an option to turn off the fallback
      mode.  Now this patch extends the behavior of the existing single_cmd
      option for that.  Namely,
      
      - The option is changed from bool to bint.
      - As default, it is the mode allowing the fallback to single cmd.
      - Once when either true/false value is given to the option, the driver
        explicitly turns on/off the single cmd mode, but without the
        fallback.
      
      That is, if you want to disable the fallback, just pass single_cmd=0
      option.  Passing single_cmd=1 will keep working like before.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      41438f13
  9. 12 1月, 2017 2 次提交
  10. 05 1月, 2017 2 次提交
  11. 04 1月, 2017 3 次提交
    • T
      ALSA: hda - Fix up GPIO for ASUS ROG Ranger · 85bcf96c
      Takashi Iwai 提交于
      ASUS ROG Ranger VIII with ALC1150 codec requires the extra GPIO pin to
      up for the front panel.  Just use the existing fixup for setting up
      the GPIO pins.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=189411
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      85bcf96c
    • T
      ALSA: hda - Fix deadlock of controller device lock at unbinding · ab949d51
      Takashi Iwai 提交于
      Imre Deak reported a deadlock of HD-audio driver at unbinding while
      it's still in probing.  Since we probe the codecs asynchronously in a
      work, the codec driver probe may still be kicked off while the
      controller itself is being unbound.  And, azx_remove() tries to
      process all pending tasks via cancel_work_sync() for fixing the other
      races (see commit [0b8c8219: ALSA: hda - Cancel probe work instead
      of flush at remove]), now we may meet a bizarre deadlock:
      
      Unbind snd_hda_intel via sysfs:
        device_release_driver() ->
          device_lock(snd_hda_intel) ->
            azx_remove() ->
              cancel_work_sync(azx_probe_work)
      
      azx_probe_work():
        codec driver probe() ->
           __driver_attach() ->
             device_lock(snd_hda_intel)
      
      This deadlock is caused by the fact that both device_release_driver()
      and driver_probe_device() take both the device and its parent locks at
      the same time.  The codec device sets the controller device as its
      parent, and this lock is taken before the probe() callback is called,
      while the controller remove() callback gets called also with the same
      lock.
      
      In this patch, as an ugly workaround, we unlock the controller device
      temporarily during cancel_work_sync() call.  The race against another
      bind call should be still suppressed by the parent's device lock.
      Reported-by: NImre Deak <imre.deak@intel.com>
      Fixes: 0b8c8219 ("ALSA: hda - Cancel probe work instead of flush at remove")
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      ab949d51
    • K
      ALSA: hda/realtek - Add new codec ID ALC299 · 28f1f9b2
      Kailang Yang 提交于
      ALC299 was similar as ALC225.
      Add headset support for ALC299.
      ALC3271 was for Dell rename.
      Signed-off-by: NKailang Yang <kailang@realtek.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      28f1f9b2
  12. 28 12月, 2016 4 次提交
  13. 07 12月, 2016 1 次提交
  14. 06 12月, 2016 2 次提交
  15. 30 11月, 2016 1 次提交
  16. 29 11月, 2016 1 次提交
  17. 25 11月, 2016 1 次提交
  18. 24 11月, 2016 2 次提交
  19. 15 11月, 2016 4 次提交
    • T
      ALSA: emu10k1: Use workqueue instead of kthread for emu1010 fw polling · aeaa6203
      Takashi Iwai 提交于
      This patch is a cleanup of EMU1010 dock probing code in emu10k1 driver
      to use work instead of kthread in a loop.  The work is lighter and
      easier to control than kthread, in general.
      
      Instead of a loop with the explicit sleep, we do simply
      delayed-schedule the work.  At suspend/resume callbacks, the work is
      canceled and restarted, respectively.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      aeaa6203
    • T
      ALSA: emu10k1: Simplify firmware loader code · 4e4dfe4c
      Takashi Iwai 提交于
      The EMU1010 support in emu10k1 driver has two request_firmware()
      calls, one for the main board and one for the dock.  Both call
      patterns are fairly similar, and we can simplify it by introducing a
      helper function and a table instead of the open switch/case.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4e4dfe4c
    • T
      ALSA: emu10k1: Fix emu1010 dock attach check · e8c44abe
      Takashi Iwai 提交于
      The emu1010_firmware_thread() checks the previous dock status, but a
      wrong register is recorded as the last status when the dock is plugged
      in.  Usually this isn't a big issue since this value gets overwritten
      by the next loop after one second.  But when a dock is unplugged
      immediately after plugging, it means essentially missing undock
      handling.
      
      This patch addresses it by remembering the correct register value.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e8c44abe
    • T
      ALSA: ac97: Fix kernel-doc error with sphinx formatter · 1936f004
      Takashi Iwai 提交于
      Sphinx takes a word like (*foo)->bar in the kernel-doc comments as a
      part of the emphasized marker, and complains like
      
        ./sound/pci/ac97/ac97_codec.c:1908: WARNING: Inline emphasis start-string without end-string.
      
      For avoiding this, wrap it with the quotes (``) in the comment.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      1936f004
  20. 14 11月, 2016 1 次提交
  21. 11 11月, 2016 1 次提交
    • T
      ALSA: hda - Fix mic regression by ASRock mobo fixup · 9a254191
      Takashi Iwai 提交于
      The commit [1a3f0991: ALSA: hda - Fix surround output pins for
      ASRock B150M mobo] introduced a fixup of pin configs for ASRock
      mobos to fix the surround outputs.  However, this overrides the pin
      configs of the mic pins as if they are outputs-only, effectively
      disabling the mic inputs.  Of course, it's a regression wrt mic
      functionality.
      
      Actually the pins 0x18 and 0x1a don't need to be changed; we just need
      to disable the bogus pins 0x14 and 0x15.  Then the auto-parser will
      pick up mic pins as switchable and assign the surround outputs there.
      
      This patch removes the incorrect pin overrides of NID 0x18 and 0x1a
      from the ASRock fixup.
      
      Fixes: 1a3f0991 ('ALSA: hda - Fix surround output pins for ASRock...')
      Reported-and-tested-by: NVitor Antunes <vitor.hda@gmail.com>
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=187431
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      9a254191
  22. 10 11月, 2016 1 次提交
  23. 08 11月, 2016 1 次提交
  24. 25 10月, 2016 1 次提交
  25. 20 10月, 2016 1 次提交
  26. 18 10月, 2016 1 次提交