An error occurred fetching the project authors.
  1. 25 Mar, 2011 1 commit
    • Takashi Iwai's avatar
      ALSA: Fix yet another race in disconnection · a45e3d6b
      Takashi Iwai authored
      This patch fixes a race between snd_card_file_remove() and
      snd_card_disconnect().  When the card is added to shutdown_files list
      in snd_card_disconnect(), but it's freed in snd_card_file_remove() at
      the same time, the shutdown_files list gets corrupted.  The list member
      must be freed in snd_card_file_remove() as well.
      Reported-and-tested-by: default avatarRuss Dill <russ.dill@gmail.com>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      a45e3d6b
  2. 01 Nov, 2010 1 commit
  3. 22 Oct, 2010 1 commit
    • Kay Sievers's avatar
      driver core: remove CONFIG_SYSFS_DEPRECATED_V2 but keep it for block devices · 39aba963
      Kay Sievers authored
      This patch removes the old CONFIG_SYSFS_DEPRECATED_V2 config option,
      but it keeps the logic around to handle block devices in the old manner
      as some people like to run new kernel versions on old (pre 2007/2008)
      distros.
      Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Stephen Hemminger <shemminger@vyatta.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: "James E.J. Bottomley" <James.Bottomley@suse.de>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: David Howells <dhowells@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      
      39aba963
  4. 16 Sep, 2010 1 commit
  5. 07 Sep, 2009 1 commit
  6. 03 Jun, 2009 2 commits
    • Jaroslav Kysela's avatar
      ALSA: Core - clean up snd_card_set_id* calls and remove possible id collision · 5fdc18d9
      Jaroslav Kysela authored
      Move locking outside snd_card_set_id_internal() function and rename it
      to snd_card_set_id_no_lock() for better function description.
      
      User defined id is just copied to card structure at allocation time.
      The real unique id procedure is called in snd_card_register() to
      ensure real atomicity.
      Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      5fdc18d9
    • Mark Brown's avatar
      ALSA: Fix double locking of card list in snd_card_register() · 872c7820
      Mark Brown authored
      The introduction of snd_card_set_id() added a lock on the card list
      to the old choose_default_id() function when using it to implement
      the new API call. This lock is needed to allow us to walk the list
      and check to see if our new name is a duplicate. Unfortunately this
      causes a lockup when called from snd_card_register() (in cases
      where no ID is supplied for the card) since the card list is already
      locked there.
      
      Fix this fairly hideously by factoring out the implementation and
      using a flag to indicate if the lock should be held. A better fix
      would probably be to refactor snd_card_register() to move the
      _set_id() outside the locking region but I can't immediately see
      anything I can convince myself is safe.
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      872c7820
  7. 02 Jun, 2009 1 commit
    • Jaroslav Kysela's avatar
      ALSA: Core - add snd_card_set_id() function · 10a8ebbb
      Jaroslav Kysela authored
      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: default avatarJaroslav Kysela <perex@perex.cz>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      10a8ebbb
  8. 09 Mar, 2009 1 commit
  9. 12 Jan, 2009 1 commit
    • Takashi Iwai's avatar
      ALSA: Introduce snd_card_create() · 53fb1e63
      Takashi Iwai authored
      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: default avatarTakashi Iwai <tiwai@suse.de>
      53fb1e63
  10. 18 Nov, 2008 1 commit
  11. 12 Nov, 2008 2 commits
  12. 01 Nov, 2008 1 commit
    • Al Viro's avatar
      saner FASYNC handling on file close · 233e70f4
      Al Viro authored
      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: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      233e70f4
  13. 16 Oct, 2008 1 commit
  14. 13 Aug, 2008 1 commit
  15. 22 Jul, 2008 1 commit
  16. 28 May, 2008 1 commit
    • Takashi Iwai's avatar
      [ALSA] Improve the slots option handling · a93bbaa7
      Takashi Iwai authored
      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: default avatarTakashi Iwai <tiwai@suse.de>
      a93bbaa7
  17. 24 Apr, 2008 3 commits
  18. 31 Jan, 2008 3 commits
  19. 16 Oct, 2007 1 commit
  20. 03 May, 2007 1 commit
    • Jean Delvare's avatar
      PCI: Cleanup the includes of <linux/pci.h> · 6473d160
      Jean Delvare authored
      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: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      6473d160
  21. 12 Feb, 2007 1 commit
  22. 09 Feb, 2007 1 commit
  23. 29 Jan, 2007 1 commit
    • Takashi Iwai's avatar
      [PATCH] ALSA: Fix sysfs breakage · 7d2aae1e
      Takashi Iwai authored
      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: default avatarTakashi Iwai <tiwai@suse.de>
      Acked-by: default avatarMonty Montgomery <xiphmont@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      7d2aae1e
  24. 01 Dec, 2006 1 commit
    • Greg Kroah-Hartman's avatar
      Driver core: convert sound core to use struct device · d80f19fa
      Greg Kroah-Hartman authored
      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: default avatarKay Sievers <kay.sievers@novell.com>
      Acked-by: default avatarJaroslav Kysela <perex@suse.cz>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d80f19fa
  25. 06 Oct, 2006 1 commit
  26. 23 Sep, 2006 3 commits
  27. 22 Jun, 2006 4 commits
  28. 31 Mar, 2006 1 commit
  29. 28 Mar, 2006 1 commit