1. 05 5月, 2009 2 次提交
  2. 28 4月, 2009 1 次提交
  3. 23 4月, 2009 2 次提交
  4. 20 4月, 2009 1 次提交
  5. 17 4月, 2009 1 次提交
    • P
      ASoC: TWL4030: Fix for the constraint handling · 6b87a91f
      Peter Ujfalusi 提交于
      The original implementation of the constraints were good against sane
      applications.
      If the opening sequence is:
      stream1_open, stream1_hw_params, stream2_open, stream2_hw_params -> the
      constraints are set correctly for stream2.
      
      But if the sequence is:
      stream1_open, stream2_open, stream2_hw_params, stream1_hw_params -> than stream2
      would receive constraint rate = 0, sample_bits = 0, since the stream1 has not
      yet called hw_params...
      
      The command to trigger this event:
      gst-launch-0.10 alsasrc device=hw:0 ! alsasink device=hw:0 sync=false
      
      This patch does some 'black magic' in order to always set the correct
      constraints and sets it only when it is needed for the other stream.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      6b87a91f
  6. 07 4月, 2009 1 次提交
  7. 03 4月, 2009 1 次提交
  8. 02 4月, 2009 2 次提交
  9. 16 3月, 2009 1 次提交
    • J
      ASoC: twl4030 - Fix build error · 10d9e3d9
      Joonyoung Shim 提交于
      CC      sound/soc/codecs/twl4030.o
      sound/soc/codecs/twl4030.c:1400: warning: braces around scalar initializer
      sound/soc/codecs/twl4030.c:1400: warning: (near initialization for 'twl4030_dai.ops')
      sound/soc/codecs/twl4030.c:1401: error: field name not in record or union initializer
      sound/soc/codecs/twl4030.c:1401: error: (near initialization for 'twl4030_dai.ops')
      sound/soc/codecs/twl4030.c:1401: warning: initialization from incompatible pointer type
      sound/soc/codecs/twl4030.c:1402: error: field name not in record or union initializer
      sound/soc/codecs/twl4030.c:1402: error: (near initialization for 'twl4030_dai.ops')
      sound/soc/codecs/twl4030.c:1402: warning: excess elements in scalar initializer
      sound/soc/codecs/twl4030.c:1402: warning: (near initialization for 'twl4030_dai.ops')
      sound/soc/codecs/twl4030.c:1403: error: field name not in record or union initializer
      sound/soc/codecs/twl4030.c:1403: error: (near initialization for 'twl4030_dai.ops')
      sound/soc/codecs/twl4030.c:1403: warning: excess elements in scalar initializer
      sound/soc/codecs/twl4030.c:1403: warning: (near initialization for 'twl4030_dai.ops')
      Signed-off-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      10d9e3d9
  10. 06 3月, 2009 1 次提交
  11. 19 2月, 2009 1 次提交
  12. 29 1月, 2009 1 次提交
    • P
      ASoC: TWL4030: Add analog loopback support · 7393958f
      Peter Ujfalusi 提交于
      This patch adds the analog loopback/bypass support for twl4030 codec.
      
      Details for the implementation:
      It seams that the analog loopback needs the DAC powered on on the channel,
      where the loopback is selected. The switch for the DACs has been moved from
      the DAPM_DAC to the "Analog XX Playback Mixer". In this way the DAC will be
      powered while the audio playback is used or/and the loopback is enabled for
      the channel.
      
      The twl4030 codec powering has been reworked. Now the codec will be powered as
      long as it does not receives the SND_SOC_BIAS_OFF event. The exceptions are
      when the given change in the registers needs the codec power down/up cycle in
      order to take effect. Otherwise the codec is on.
      
      When the codec enters to STANDBY state and none of the loopback paths are
      enabled, than the amplifiers, which are no in the DAPM path are forced to turn
      off and the PLL is disabled. When playback/capture starts the disabled gains
      are restored and the PLL is enabled.
      
      When one of the loopback enabled in STANDBY mode, the disabled gains are
      restored and the PLL is enabled also.
      
      In short: the codec always goes to the lowest power state based on the
      bias_level and the bypass_state.
      Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@nokia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      7393958f
  13. 27 1月, 2009 6 次提交
  14. 20 1月, 2009 1 次提交
  15. 09 1月, 2009 2 次提交
  16. 08 1月, 2009 1 次提交
  17. 06 1月, 2009 1 次提交
  18. 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
  19. 12 12月, 2008 1 次提交
  20. 10 12月, 2008 4 次提交
  21. 09 12月, 2008 7 次提交