1. 06 5月, 2014 1 次提交
  2. 02 5月, 2014 1 次提交
  3. 25 3月, 2014 2 次提交
  4. 12 3月, 2014 1 次提交
  5. 11 3月, 2014 2 次提交
  6. 10 3月, 2014 3 次提交
    • L
      ASoC: Add a per component dai list · 1438c2f6
      Lars-Peter Clausen 提交于
      Now that every DAI has a component we can track the DAIs on a per component
      basis. This simplifies the DAI lookup when we are only interested in DAIs of a
      specific component and also makes it possible to have multiple components with
      the same parent device and also register DAIs.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      1438c2f6
    • L
      ASoC: Pass CODEC to snd_soc_register_dais() · 6cc240f3
      Lars-Peter Clausen 提交于
      snd_soc_register_dais() looks up the CODEC that is registering the DAIs by
      looping over all registered CODECs. This patch updates the code to
      simply pass the CODEC that registers the DAIs to snd_soc_register_dais() thus
      avoiding the lookup.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      6cc240f3
    • L
      ASoC: Consolidate snd_soc_register_dai() and snd_soc_register_dais() · 32c9ba54
      Lars-Peter Clausen 提交于
      snd_soc_register_dais() has basically the same code as snd_soc_register_dai(),
      but running in a loop. The only difference is that snd_soc_register_dai() calls
      fmt_single_name() to generate the DAIs name and snd_soc_register_dais() calls
      fmt_multiple_name(). This patch pushes the check in __snd_soc_register_component()
      which decides whether to call snd_soc_register_dai() or snd_soc_register_dais()
      to snd_soc_register_dais() to decide which naming scheme to use. This allows us
      to remove snd_soc_register_dai().
      
      The patch also updates snd_soc_register_dais() to unregister every DAI it finds
      for the component rather than trying to unregister one DAI for each DAI that was
      registered. Both have the same result since there won't be more DAIs than what
      have been registered, but the former is easier to implement.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      32c9ba54
  7. 06 3月, 2014 3 次提交
  8. 04 3月, 2014 2 次提交
  9. 01 3月, 2014 1 次提交
    • L
      ASoC: Consolidate enum and value enum controls · 29ae2fa5
      Lars-Peter Clausen 提交于
      The implementations for enum and value enum controls are almost identical. The
      only difference is that the value enum uses an additional look-up table to map
      the control value to the register value, while the enum control uses a direct
      mapping. Enums and value enums can easily be distinguished at runtime, for value
      enums the values field of the snd_soc_enum struct contains the look-up table,
      while for enums it is NULL. This patch adds two new small helper functions
      called snd_soc_enum_item_to_val() and snd_soc_enum_val_to_item() which map
      between register value and control item. If the items field of the snd_soc_enum
      struct is NULL the function will do a direct mapping otherwise they'll use the
      look-up table to do the mapping. Using these small helper functions it is
      possible to use the same kcontrol handlers for both enums and value enums. The
      functions are added a inline functions in soc.h so they can also be used by the
      DAPM code to accomplish similar consolidation.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      29ae2fa5
  10. 28 2月, 2014 1 次提交
    • X
      ASoC: core: Set the default I/O up try regmap. · fe2265e4
      Xiubo Li 提交于
      For most CODEC drivers which the REGMAP is used, the soc_probe_codec()
      will do the stuff work of snd_soc_codec_set_cache_io(), which the CODEC
      drivers' ASoC probe will do too, and almost at the same time.
      
      This patch set the default I/O up try regmap, and then the CODEC drivers'
      stuff work of snd_soc_codec_set_cache_io() will be redundant, while if one
      CODEC driver needed to set it's own I/O, then it can rewrite the default ones.
      Then could we just discard the snd_soc_codec_set_cache_io() from the CODEC
      drivers' ASoC probe to simplify the code.
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      fe2265e4
  11. 23 2月, 2014 1 次提交
    • X
      ASoC: core: add TDM slot parsing from DT supports · 89c67857
      Xiubo Li 提交于
      For some CPU/CODEC DAI devices the TDM slot infomation maybe needed. This
      patch adds the slot parsing from DT supports.
      
      TDM slot properties:
          dai-tdm-slot-num : Number of slots in use.
          dai-tdm-slot-width :  Width in bits for each slot.
      
      For instance:
          dai-tdm-slot-num = <2>;
          dai-tdm-slot-width = <8>;
      
      And for each spcified driver, there could be one .of_xlate_tdm_slot_mask()
      to specify a explicit mapping of the channels and the slots. If it's absent
      the default snd_soc_of_xlate_tdm_slot_mask() will be used to generating the
      tx and rx masks.
      
      For snd_soc_of_xlate_tdm_slot_mask(), the tx and rx masks will use a 1 bit
      for an active slot as default, and the default active bits are at the LSB of
      the masks.
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      89c67857
  12. 20 2月, 2014 1 次提交
  13. 14 2月, 2014 1 次提交
  14. 10 2月, 2014 1 次提交
    • X
      ASoC: add snd_soc_of_parse_audio_simple_widgets for DT · 9a6d4860
      Xiubo Li 提交于
      This patch adds snd_soc_of_parse_audio_simple_widgets() and supports
      below style of widgets name on DT:
      
      	"template-wname", "user supplied wname"
      
      For instance:
      	simple-audio-widgets =
      		"Microphone", "Microphone Jack",
      		"Line", "Line In Jack",
      		"Line", "Line Out Jack",
      		"Headphone", "Headphone Jack",
      		"Speaker", "Speaker External";
      
      The "template-wname" currently includes: "Microphone", "Line", "Headphone"
      and "Speaker".
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      9a6d4860
  15. 03 2月, 2014 1 次提交
    • M
      ASoC: core: Add signed register volume control logic · f227b88f
      Markus Pargmann 提交于
      Some codecs use signed volume control representation with non standard
      register sizes, e.g. 6 or 7 bit signed integers.
      
      This patch adds generic signed register volume control logic to
      soc-core. Instead of a fixed width signed register control, this
      implementation uses a 'min' value and the signed bit location to translate
      it to an absolute volume. Using the 'sign_bit' we can calculate a
      correct mask for the register values and translate it back into signed
      integers of standard size.
      Signed-off-by: NMarkus Pargmann <mpa@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      f227b88f
  16. 24 1月, 2014 1 次提交
  17. 16 1月, 2014 1 次提交
  18. 08 1月, 2014 1 次提交
  19. 01 1月, 2014 1 次提交
  20. 29 11月, 2013 1 次提交
  21. 05 11月, 2013 1 次提交
    • N
      ASoC: Add pinctrl PM to components of active DAIs · 988e8cc4
      Nicolin Chen 提交于
      It's quite popular that more drivers are using pinctrl PM, for example:
      (Documentation/devicetree/bindings/arm/primecell.txt). Just like what
      runtime PM does, it would deactivate and activate pin group depending
      on whether it's being used or not.
      
      And this pinctrl PM might be also beneficial to cpu dai drivers because
      they might have actual pinctrl so as to sleep their pins and wake them
      up as needed.
      
      To achieve this goal, this patch sets pins to the default state during
      resume or startup; While during suspend and shutdown, it would set pins
      to the sleep state.
      
      As pinctrl PM would return zero if there is no such pinctrl sleep state
      settings, this patch would not break current ASoC subsystem directly.
      
      [ However, there is still an exception that the patch can not handle,
      that is, when cpu dai driver does not have pinctrl property but another
      device has it. (The AUDMUX <-> SSI on Freescale i.MX6 series for example.
      SSI as a cpu dai doesn't contain pinctrl property while AUDMUX, an Audio
      Multiplexer, has it). In this case, this kind of cpu dai driver needs to
      find a way to obtain the pinctrl property as its own, by moving property
      from AUDMUX to SSI, or creating a pins link/dependency between these two
      devices, or using a more decent way after we figure it out. ]
      Signed-off-by: NNicolin Chen <b42378@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      988e8cc4
  22. 01 11月, 2013 1 次提交
  23. 18 10月, 2013 1 次提交
  24. 17 9月, 2013 8 次提交
  25. 14 9月, 2013 1 次提交
  26. 27 8月, 2013 1 次提交