1. 20 4月, 2009 1 次提交
    • K
      ALSA: us122l: add snd_us122l_free() · 5d4af1be
      Karsten Wiese 提交于
      Use it to clean up snd_us122l_card_used[].
      
      Without patch unplugging of an US122L soundcard didn't reset the
      corresponding element of snd_us122l_card_used[] to 0.
      The (SNDRV_CARDS + 1)th plugging in did not result in creating the soundcard
      device anymore.
      Index values supplied with the modprobe command line were not used correctly
      anymore after the first unplugging of an US122L.
      Signed-off-by: NKarsten Wiese <fzu@wemgehoertderstaat.de>
      Cc: stable@kernel.org
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      5d4af1be
  2. 12 1月, 2009 2 次提交
  3. 02 1月, 2009 1 次提交
    • J
      ALSA: Use usb_set/get_intfdata · f4e9749f
      Julia Lawall 提交于
      Use the USB functions usb_get_intfdata and usb_set_intfdata instead of
      dev_get_drvdata and dev_set_drvdata, respectively.
      
      The semantic patch that makes this change for the usb_get_intfdata case is
      as follows: (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @header@
      @@
      
      #include <linux/usb.h>
      
      @same depends on header@
      position p;
      @@
      
      usb_get_intfdata@p(...) { ... }
      
      @depends on header@
      position _p!=same.p;
      identifier _f;
      struct usb_interface*intf;
      @@
      
      _f@_p(...) { <+...
      - dev_get_drvdata(&intf->dev)
      + usb_get_intfdata(intf)
      ...+> }
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f4e9749f
  4. 15 10月, 2008 1 次提交
  5. 01 8月, 2008 1 次提交