1. 12 6月, 2014 1 次提交
  2. 26 2月, 2014 1 次提交
  3. 12 2月, 2014 1 次提交
  4. 06 11月, 2013 1 次提交
  5. 29 5月, 2013 1 次提交
    • T
      ALSA: PCI: Remove superfluous pci_set_drvdata(pci, NULL) at remove · 20a24225
      Takashi Iwai 提交于
      As drvdata is cleared to NULL at probe failure or at removal by the
      driver core, we don't have to call pci_set_drvdata(pci, NULL) any
      longer in each driver.
      
      The only remaining pci_set_drvdata(NULL) is in azx_firmware_cb() in
      hda_intel.c.  Since this function itself releases the card instance,
      we need to clear drvdata here as well, so that it won't be released
      doubly in the remove callback.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      20a24225
  6. 26 1月, 2013 1 次提交
    • T
      ALSA: Make snd_printd() and snd_printdd() inline · 86b27237
      Takashi Iwai 提交于
      Because currently snd_printd() and snd_printdd() macros are expanded
      to empty when CONFIG_SND_DEBUG=n, a compile warning like below
      appears sometimes, and we had to covert it by ugly ifdefs:
        sound/pci/hda/patch_sigmatel.c: In function ‘stac92hd71bxx_fixup_hp’:
        sound/pci/hda/patch_sigmatel.c:2434:24: warning: unused variable ‘spec’ [-Wunused-variable]
      
      For "fixing" these issues better, this patch replaces snd_printd() and
      snd_printdd() definitions with empty inline functions instead of
      macros.  This should have the same effect but shut up warnings like
      above.
      
      But since we had already put ifdefs, changing to inline functions
      would trigger compile errors.  So, such ifdefs is removed in this
      patch.
      
      In addition, snd_pci_quirk name field is defined only when
      CONFIG_SND_DEBUG_VERBOSE is set, and the reference to it in
      snd_printdd() argument triggers the build errors, too.  For avoiding
      these errors, introduce a new macro snd_pci_quirk_name() that is
      defined no matter how the debug option is set.
      Reported-by: NStratos Karafotis <stratosk@semaphore.gr>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      86b27237
  7. 07 12月, 2012 1 次提交
  8. 06 10月, 2012 1 次提交
  9. 07 9月, 2012 1 次提交
  10. 15 8月, 2012 1 次提交
  11. 03 7月, 2012 1 次提交
  12. 24 4月, 2012 1 次提交
  13. 14 2月, 2012 1 次提交
  14. 13 1月, 2012 1 次提交
    • R
      module_param: avoid bool abuse, add bint for special cases. · 69116f27
      Rusty Russell 提交于
      For historical reasons, we allow module_param(bool) to take an int (or
      an unsigned int).  That's going away.
      
      A few drivers really want an int: they set it to -1 and a parameter
      will set it to 0 or 1.  This sucks: reading them from sysfs will give
      'Y' for both -1 and 1, but if we change it to an int, then the users
      might be broken (if they did "param" instead of "param=1").
      
      Use a new 'bint' parser for them.
      
      (ntfs has a different problem: it needs an int for debug_msgs because
      it's also exposed via sysctl.)
      
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
      Cc: Christoph Raisch <raisch@de.ibm.com>
      Cc: Roland Dreier <roland@kernel.org>
      Cc: Sean Hefty <sean.hefty@intel.com>
      Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
      Cc: linux390@de.ibm.com
      Cc: Anton Altaparmakov <anton@tuxera.com>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: lm-sensors@lm-sensors.org
      Cc: linux-rdma@vger.kernel.org
      Cc: linux-s390@vger.kernel.org
      Cc: linux-ntfs-dev@lists.sourceforge.net
      Cc: alsa-devel@alsa-project.org
      Acked-by: Takashi Iwai <tiwai@suse.de> (For the sound part)
      Acked-by: Guenter Roeck <guenter.roeck@ericsson.com> (For the hwmon driver)
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      69116f27
  15. 19 12月, 2011 1 次提交
  16. 10 11月, 2011 2 次提交
  17. 08 11月, 2011 1 次提交
  18. 01 11月, 2011 2 次提交
  19. 31 10月, 2011 1 次提交
    • K
      ALSA: intel8x0: Improve performance in virtual environment · 228cf793
      Konstantin Ozerkov 提交于
      v3: detection code is x86 and KVM specific, hide it under ifdef
      v2: add detection for virtual environments (KVM and Parallels)
      
      This patch is intended to improve performance in virtualized environments
      like Parallels Desktop or KVM/VirtualBox/QEMU (virtual ICH/AC97 audio).
      
      I/O access is very time-expensive operation in virtual world: VCPU
      can be rescheduled and in the worst case we get more than 10ms delay on
      each I/O access.
      
      In the virtual environment loop exit rule
      (old_civ == current_civ && old_picb == current_picb) is never satisfied,
      because old_picb is never the same as current_picb due to delay inspired
      by reading current_civ. As a result loop ended by timeout and we get 10x
      more I/O operations.
      
      Experimental data from Prallels Desktop 7, RHEL6 guest (I/O ops per
      second):
      
      Original code:
      In Port    Counter         Callback
         f014      41550         fffff00000179d00 ac97_bm_read_civ+0x000
         f018      41387         fffff0000017a580 ac97_bm_read_picb+0x000
      
      With patch:
      In Port    Counter         Callback
         f014       4090         fffff00000179d00 ac97_bm_read_civ+0x000
         f018       1964         fffff0000017a580 ac97_bm_read_picb+0x000
      Signed-off-by: NKonstantin Ozerkov <kozerkov@parallels.com>
      Signed-off-by: NDenis V. Lunev <den@openvz.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      228cf793
  20. 15 7月, 2011 1 次提交
  21. 10 6月, 2011 2 次提交
    • T
      ALSA: use KBUILD_MODNAME for request_irq argument in sound/pci/* · 934c2b6d
      Takashi Iwai 提交于
      The name argument of request_irq() appears in /proc/interrupts, and
      it's quite ugly when the name entry contains a space or special letters.
      In general, it's simpler and more readable when the module name appears
      there, so let's replace all entries with KBUILD_MODNAME.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      934c2b6d
    • T
      ALSA: Use KBUILD_MODNAME for pci_driver.name entries · 3733e424
      Takashi Iwai 提交于
      The convention for pci_driver.name entry in kernel drivers seem to be
      the module name or equivalent ones.  But, so far, almost all PCI sound
      drivers use more verbose name like "ABC Xyz (12)", and these are fairly
      confusing when appearing as a file name.
      
      This patch converts the all pci_driver.name entries in sound/pci/* to
      use KBUILD_MODNAME for more unified appearance.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      3733e424
  22. 31 3月, 2011 1 次提交
  23. 22 11月, 2010 1 次提交
  24. 18 10月, 2010 1 次提交
  25. 19 8月, 2010 1 次提交
  26. 09 2月, 2010 1 次提交
  27. 25 11月, 2009 1 次提交
  28. 05 11月, 2009 1 次提交
  29. 02 10月, 2009 1 次提交
  30. 01 10月, 2009 1 次提交
  31. 25 6月, 2009 1 次提交
  32. 15 6月, 2009 1 次提交
    • T
      ALSA: intel8x0 - Fix PCM position craziness · f708eb1d
      Takashi Iwai 提交于
      The PCM pointer callback sometimes returns invalid positions and this
      screws up the hw_ptr updater in PCM core.  Especially since now the
      jiffies check is optional with xrun_debug, the invalid position is
      handled as is, and causes serious sound skips, etc.
      
      This patch simplifies the position-fix strategy in intel8x0 to be more
      robust:
      - just falls back to the last position if bogus position is detected
      - another sanity check for the backward move of the position due to
        a race of register update and the base-index update
      
      This patch is applicable also for 2.6.30.
      Tested-by: NDavid Miller <davem@davemloft.net>
      Cc: <stable@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f708eb1d
  33. 21 4月, 2009 1 次提交
  34. 16 4月, 2009 2 次提交
  35. 15 4月, 2009 2 次提交