1. 10 7月, 2008 1 次提交
  2. 21 5月, 2008 1 次提交
    • G
      SOUND: fix race in device_create · 5d99a8b8
      Greg Kroah-Hartman 提交于
      There is a race from when a device is created with device_create() and
      then the drvdata is set with a call to dev_set_drvdata() in which a
      sysfs file could be open, yet the drvdata will be NULL, causing all
      sorts of bad things to happen.
      
      This patch fixes the problem by using the new function,
      device_create_drvdata().
      
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Jaroslav Kysela <perex@perex.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      5d99a8b8
  3. 15 2月, 2008 1 次提交
  4. 01 2月, 2008 1 次提交
    • T
      [ALSA] Remove sound/driver.h · 9004acc7
      Takashi Iwai 提交于
      This header file exists only for some hacks to adapt alsa-driver
      tree.  It's useless for building in the kernel.  Let's move a few
      lines in it to sound/core.h and remove it.
      With this patch, sound/driver.h isn't removed but has just a single
      compile warning to include it.  This should be really killed in
      future.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      9004acc7
  5. 16 10月, 2007 2 次提交
  6. 20 7月, 2007 1 次提交
  7. 13 2月, 2007 1 次提交
  8. 09 2月, 2007 1 次提交
  9. 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
  10. 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
  11. 23 9月, 2006 2 次提交
  12. 13 7月, 2006 1 次提交
  13. 27 6月, 2006 1 次提交
  14. 23 6月, 2006 4 次提交
  15. 29 3月, 2006 1 次提交
  16. 22 3月, 2006 2 次提交
  17. 04 1月, 2006 1 次提交
  18. 03 1月, 2006 10 次提交
  19. 10 11月, 2005 1 次提交
  20. 04 11月, 2005 4 次提交
  21. 29 10月, 2005 1 次提交
  22. 12 9月, 2005 1 次提交