1. 23 6月, 2006 1 次提交
    • J
      [PATCH] OSS: cs46xx cleanup and tiny bugfix · 2eebb192
      Jesper Juhl 提交于
      Here's a patch for cs46xx that
       - (mostly) cleans up the cs46xx driver according to CodingStyle
       - removes a bunch of pointless casts
       - fixes a small, potential use of uninitialized variable, bug
       - reduces the size of the compiled code by 36 bytes
       - reduces the size of the source file by 1831 bytes
      
      I know I should probably have split this into bits, but since I only
      thought of that *after* doing all the edits, splitting it up would have
      been a royal pain. And since these are all pretty trivial changes I thought
      I'd just submit the one huge patch and hope people could live with it (if
      not, then just tell me and I'll split it).
      
      The bug fix that's in there may be hard to spot, so I'll point it out. It's
      the
         -       int val, valsave, mapped, ret;
         +       int val, valsave, ret;
         +       int mapped = 0;
      bit.
      Without that change we may use `mapped' uninitialized if, in cs_ioctl, the
      first test of "if(state)" is false and the second "if(state)" test is true.
      Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2eebb192
  2. 23 3月, 2006 1 次提交
  3. 10 1月, 2006 1 次提交
  4. 07 1月, 2006 1 次提交
    • P
      [PATCH] oss: remove deprecated PM interface from cs46xx driver · 94661e7c
      Patrick Mochel 提交于
      This change removes the old, deprecated interface from the cs46xx driver,
      including the pm_{,un}register() calls, the local storage of the pmdev object
      and the reference to the old header files.  This change is done to assist in
      eradicating the users of the legacy interface so as to help facilitate the
      removal of the interface itself.
      
      Note this driver has PCI PM hooks which are set properly.  It also has the
      ability to trigger suspend/resume from an ioctl.  This functionality was not
      touched, though it could use a serious review if this driver continues to
      persist in the mainline tree..
      
      Note that this driver has been obsoleted by an ALSA equivalent.
      Signed-off-by: NPatrick Mochel <mochel@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      94661e7c
  5. 08 7月, 2005 1 次提交
  6. 17 4月, 2005 2 次提交