1. 02 6月, 2009 1 次提交
    • J
      ALSA: Core - add snd_card_set_id() function · 10a8ebbb
      Jaroslav Kysela 提交于
      Introduce snd_card_set_id() function to allow lowlevel drivers to set
      default identification name for card slot. The function checks also
      for identification name collisions and tries to create unique name.
      
      Also, the snd_card_create() function is simplified, because this new
      function is used. As bonus, proper name collision checks are evaluated
      at the card create time.
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      10a8ebbb
  2. 09 3月, 2009 1 次提交
  3. 12 1月, 2009 1 次提交
    • T
      ALSA: Introduce snd_card_create() · 53fb1e63
      Takashi Iwai 提交于
      Introduced snd_card_create() function as a replacement of snd_card_new().
      The new function returns a negative error code so that the probe callback
      can return the proper error code, while snd_card_new() can give only NULL
      check.
      
      The old snd_card_new() is still provided as an inline function but with
      __deprecated attribute.  It'll be removed soon later.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      53fb1e63
  4. 19 11月, 2008 1 次提交
  5. 13 11月, 2008 1 次提交
  6. 12 11月, 2008 1 次提交
  7. 02 11月, 2008 1 次提交
    • A
      saner FASYNC handling on file close · 233e70f4
      Al Viro 提交于
      As it is, all instances of ->release() for files that have ->fasync()
      need to remember to evict file from fasync lists; forgetting that
      creates a hole and we actually have a bunch that *does* forget.
      
      So let's keep our lives simple - let __fput() check FASYNC in
      file->f_flags and call ->fasync() there if it's been set.  And lose that
      crap in ->release() instances - leaving it there is still valid, but we
      don't have to bother anymore.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      233e70f4
  8. 17 10月, 2008 1 次提交
  9. 13 8月, 2008 1 次提交
  10. 22 7月, 2008 1 次提交
  11. 28 5月, 2008 1 次提交
    • T
      [ALSA] Improve the slots option handling · a93bbaa7
      Takashi Iwai 提交于
      Fix and improve the slots option handling.  The sound core tries to
      find the slot with the given module name first and assign if it's
      still available.  If all pre-given slots are unavailable, then try
      to find another free slot.
      
      Also, when a module name begins with '!', it means the negative match:
      the slot will be given for any modules but that one.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      a93bbaa7
  12. 24 4月, 2008 3 次提交
  13. 01 2月, 2008 3 次提交
  14. 16 10月, 2007 1 次提交
  15. 03 5月, 2007 1 次提交
    • J
      PCI: Cleanup the includes of <linux/pci.h> · 6473d160
      Jean Delvare 提交于
      I noticed that many source files include <linux/pci.h> while they do
      not appear to need it. Here is an attempt to clean it all up.
      
      In order to find all possibly affected files, I searched for all
      files including <linux/pci.h> but without any other occurence of "pci"
      or "PCI". I removed the include statement from all of these, then I
      compiled an allmodconfig kernel on both i386 and x86_64 and fixed the
      false positives manually.
      
      My tests covered 66% of the affected files, so there could be false
      positives remaining. Untested files are:
      
      arch/alpha/kernel/err_common.c
      arch/alpha/kernel/err_ev6.c
      arch/alpha/kernel/err_ev7.c
      arch/ia64/sn/kernel/huberror.c
      arch/ia64/sn/kernel/xpnet.c
      arch/m68knommu/kernel/dma.c
      arch/mips/lib/iomap.c
      arch/powerpc/platforms/pseries/ras.c
      arch/ppc/8260_io/enet.c
      arch/ppc/8260_io/fcc_enet.c
      arch/ppc/8xx_io/enet.c
      arch/ppc/syslib/ppc4xx_sgdma.c
      arch/sh64/mach-cayman/iomap.c
      arch/xtensa/kernel/xtensa_ksyms.c
      arch/xtensa/platform-iss/setup.c
      drivers/i2c/busses/i2c-at91.c
      drivers/i2c/busses/i2c-mpc.c
      drivers/media/video/saa711x.c
      drivers/misc/hdpuftrs/hdpu_cpustate.c
      drivers/misc/hdpuftrs/hdpu_nexus.c
      drivers/net/au1000_eth.c
      drivers/net/fec_8xx/fec_main.c
      drivers/net/fec_8xx/fec_mii.c
      drivers/net/fs_enet/fs_enet-main.c
      drivers/net/fs_enet/mac-fcc.c
      drivers/net/fs_enet/mac-fec.c
      drivers/net/fs_enet/mac-scc.c
      drivers/net/fs_enet/mii-bitbang.c
      drivers/net/fs_enet/mii-fec.c
      drivers/net/ibm_emac/ibm_emac_core.c
      drivers/net/lasi_82596.c
      drivers/parisc/hppb.c
      drivers/sbus/sbus.c
      drivers/video/g364fb.c
      drivers/video/platinumfb.c
      drivers/video/stifb.c
      drivers/video/valkyriefb.c
      include/asm-arm/arch-ixp4xx/dma.h
      sound/oss/au1550_ac97.c
      
      I would welcome test reports for these files. I am fine with removing
      the untested files from the patch if the general opinion is that these
      changes aren't safe. The tested part would still be nice to have.
      
      Note that this patch depends on another header fixup patch I submitted
      to LKML yesterday:
        [PATCH] scatterlist.h needs types.h
        http://lkml.org/lkml/2007/3/01/141Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6473d160
  16. 13 2月, 2007 1 次提交
  17. 09 2月, 2007 1 次提交
  18. 30 1月, 2007 1 次提交
    • T
      [PATCH] ALSA: Fix sysfs breakage · 7d2aae1e
      Takashi Iwai 提交于
      The recent change for a new sysfs tree with card* object breaks the
      /sys/class/sound tree if CONFIG_SYSFS_DEPRECATED is enabled.
      The device in each entry doesn't point the correct device object:
      
        /sys/class/sound
        ...
        |-- pcmC0D0c
        |   |-- dev
        |   |-- device -> ../../../class/sound/card0
        |   |-- pcm_class
        |   |-- power
        |   |   `-- wakeup
        |   |-- subsystem -> ../../../class/sound
        |   `-- uevent
      
      Also, this change breaks some drivers (like sound/arm/*) referring
      card->dev directly to obtain the device object for memory handling.
      
      This patch reverts the semantics of card->dev to the former version,
      which points to a real device object.  The card* object is stored in a
      new card->card_dev field, instead.  The device parent is chosen either
      card->dev or card->card_dev according to CONFIG_SYSFS_DEPRECATED to
      keep the tree compatibility.
      Also, card* isn't created if CONFIG_SYSFS_DEPRECATED is enabled.  The
      reason of card* object is a root of all beloing devices, and it makes
      little sense if each sound device points to the real device object
      directly.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Acked-by: NMonty Montgomery <xiphmont@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7d2aae1e
  19. 02 12月, 2006 1 次提交
    • G
      Driver core: convert sound core to use struct device · d80f19fa
      Greg Kroah-Hartman 提交于
      Converts from using struct "class_device" to "struct device" making
      everything show up properly in /sys/devices/ with symlinks from the
      /sys/class directory.
      
      It also makes the struct sound_card to show up as a "real" device
      where all the different sound class devices are placed as childs
      and different card attribute files can hang off of. /sys/class/sound is
      still a flat directory, but the symlink targets of all devices belonging
      to the same card, point the the /sys/devices tree below the new card
      device object.
      
      Thanks to Kay for the updates to this patch.
      Signed-off-by: NKay Sievers <kay.sievers@novell.com>
      Acked-by: NJaroslav Kysela <perex@suse.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d80f19fa
  20. 07 10月, 2006 1 次提交
  21. 23 9月, 2006 3 次提交
  22. 23 6月, 2006 4 次提交
  23. 31 3月, 2006 1 次提交
  24. 29 3月, 2006 1 次提交
  25. 22 3月, 2006 2 次提交
  26. 03 1月, 2006 4 次提交
  27. 10 11月, 2005 1 次提交