1. 16 3月, 2009 2 次提交
    • J
      Rationalize fasync return values · 60aa4924
      Jonathan Corbet 提交于
      Most fasync implementations do something like:
      
           return fasync_helper(...);
      
      But fasync_helper() will return a positive value at times - a feature used
      in at least one place.  Thus, a number of other drivers do:
      
           err = fasync_helper(...);
           if (err < 0)
                   return err;
           return 0;
      
      In the interests of consistency and more concise code, it makes sense to
      map positive return values onto zero where ->fasync() is called.
      
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      60aa4924
    • J
      Use f_lock to protect f_flags · db1dd4d3
      Jonathan Corbet 提交于
      Traditionally, changes to struct file->f_flags have been done under BKL
      protection, or with no protection at all.  This patch causes all f_flags
      changes after file open/creation time to be done under protection of
      f_lock.  This allows the removal of some BKL usage and fixes a number of
      longstanding (if microscopic) races.
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: NJonathan Corbet <corbet@lwn.net>
      db1dd4d3
  2. 06 3月, 2009 2 次提交
  3. 02 3月, 2009 1 次提交
  4. 28 2月, 2009 2 次提交
  5. 24 2月, 2009 1 次提交
  6. 23 2月, 2009 5 次提交
  7. 20 2月, 2009 2 次提交
  8. 19 2月, 2009 1 次提交
    • C
      sound: virtuoso: revert "do not overwrite EEPROM on Xonar D2/D2X" · 6ce6c473
      Clemens Ladisch 提交于
      This reverts commit 7e86c0e6 ("do not
      overwrite EEPROM on Xonar D2/D2X") because it did not actually help with
      the problem.
      
      More user reports show that the overwriting of the EEPROM is not
      triggered by using this driver but by installing Linux, and that the
      installation of any other operating system (even one without any CMI8788
      driver) has the same effect.  In other words, the presence of this
      driver does not have any effect on the occurrence of the error.  (So
      far, the available evidence seems to point to a BIOS bug.)
      
      Furthermore, it turns out that the EEPROM chip is protected against
      stray write commands by the command format and by requiring a separate
      write-enable command, so the error scenario in the previous commit (that
      SPI writes can be misinterpreted as an EEPROM write command) is not even
      theoretically possible.
      
      The mixer control that was removed as a consequence of the previous
      commit can only be partially emulated in userspace, which also means it
      cannot be seen be the in-kernel OSS API emulation, so it is better to
      revert that change.
      Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
      Cc: <stable@kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      6ce6c473
  9. 18 2月, 2009 1 次提交
    • T
      ALSA: jack - Use card->shortname for input name · 2678f60d
      Takashi Iwai 提交于
      Currently the jack layer refers to card->longname as a part of
      its input device name string.  However, longname is often really long
      and way too ugly as an identifier, such as,
      "HDA Intel at 0xf8400000 irq 21".
      
      This patch changes the code to use card->shortname instead.
      The shortname string contains usually the h/w vendor and product
      names but without messy I/O port or IRQ numbers.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2678f60d
  10. 17 2月, 2009 2 次提交
  11. 16 2月, 2009 2 次提交
  12. 13 2月, 2009 4 次提交
  13. 12 2月, 2009 2 次提交
  14. 11 2月, 2009 6 次提交
  15. 10 2月, 2009 1 次提交
  16. 06 2月, 2009 5 次提交
  17. 05 2月, 2009 1 次提交
    • T
      ALSA: hda - Fix misc workqueue issues · e8c0ee5d
      Takashi Iwai 提交于
      Some fixes regarding snd-hda-intel workqueue:
      - Use create_singlethread_workqueue() instead of create_workqueue()
        as per-CPU work isn't required.
      - Allocate workq name string properly
      - Renamed the workq name to "hd-audio*" to be more obvious.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      e8c0ee5d