1. 12 1月, 2009 2 次提交
  2. 09 1月, 2009 1 次提交
  3. 07 1月, 2009 2 次提交
  4. 06 1月, 2009 11 次提交
  5. 05 1月, 2009 1 次提交
  6. 04 1月, 2009 1 次提交
    • J
      ALSA: sound/usb: Use negated usb_endpoint_xfer_control, etc · 913ae5a2
      Julia Lawall 提交于
      This patch extends 42a6e66f by using
      usb_endpoint_xfer_control, usb_endpoint_xfer_isoc, usb_endpoint_xfer_bulk,
      and usb_endpoint_xfer_int in the negated case as well.
      
      This patch also rewrites some calls to usb_endpoint_dir_in as negated calls
      to !usb_endpoint_dir_out, and vice versa, to better correspond to the
      intent of the original code.
      
      The semantic patch that makes this change is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_CONTROL\|0\))
      + !usb_endpoint_xfer_control(epd)
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_ISOC\|1\))
      + !usb_endpoint_xfer_isoc(epd)
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_BULK\|2\))
      + !usb_endpoint_xfer_bulk(epd)
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - (usb_endpoint_type(epd) != \(USB_ENDPOINT_XFER_INT\|3\))
      + !usb_endpoint_xfer_int(epd)
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      913ae5a2
  7. 03 1月, 2009 4 次提交
  8. 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
  9. 01 1月, 2009 5 次提交
  10. 31 12月, 2008 2 次提交
    • P
      ASoC: TWL4030: DAPM based capture implementation · 276c6222
      Peter Ujfalusi 提交于
      This patch adds DAPM implementaion for the capture path
      on twlx030.
      
      TWL has two physical ADC and two digital microphone (stereo) connections.
      The CPU interface has four microphone channels.
      For simplicity the microphone channel paths are named as:
      TX1 (Left/Right) - when using i2s mode, only the TX1 data is valid
      TX2 (Left/Right)
      
      Input routing (simplified version):
      There is two levels of mux settings for TWL in input path:
      Analog input mux:
       ADCL <- {Off, Main mic, Headset mic, AUXL, Carkit mic}
       ADCR <- {Off, Sub mic, AUXR}
      
      Analog/Digital mux:
      TX1 Analog mode:
       TX1L <- ADCL
       TX1R <- ADCR
      TX1 Digital mode:
       TX1L <- Digimic0 (Left)
       TX1R <- Digimic0 (Right)
      
      TX2 Analog mode:
       TX2L <- ADCL
       TX2R <- ADCR
      TX2 Digital mode:
       TX2L <- Digimic1 (Left)
       TX2R <- Digimic1 (Right)
      
      The patch provides the following user controls for the capture path:
      Mux settings:
      "TX1 Capture Route": {Analog, Digimic0}
      "TX2 Capture Route": {Analog, Digimic1}
      "Analog Left Capture Route":  {Off, Main Mic, Headset Mic, AUXL, Carkit Mic}
      "Analog Right Capture Route": {Off, Sub Mic, AUXR}
      
      Volume/Gain controls:
      "TX1 Digital Capture Volume": Stereo gain control for TX1 path
      "TX2 Digital Capture Volume": Stereo gain control for TX2 path
      "Analog Capture Volume":      Stereo gain control for the analog path only
      
      Important things for the board files:
      Microphone bias:
      "Mic Bias 1":       Bias for Main mic or for digimic0 (analog or digital path)
      "Mic Bias 2":       Bias for Sub mic or for digimic1 (analog or digital path)
      "Headset Mic Bias": Bias for Headset mic
      
      When the routing configured correctly only the needed components will be
      powered/enabled.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      276c6222
    • P
      ASoC: TWL4030: Make the enum filter generic for twl4030 · f9a3fba2
      Peter Ujfalusi 提交于
      Modify the enum filter to more generic that it will filter
      out the enums with text "Invalid".
      The enum filter also required for the capture path.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f9a3fba2
  11. 30 12月, 2008 1 次提交
  12. 24 12月, 2008 1 次提交
  13. 23 12月, 2008 3 次提交
  14. 21 12月, 2008 2 次提交
  15. 20 12月, 2008 3 次提交