1. 27 1月, 2011 1 次提交
  2. 26 1月, 2011 1 次提交
  3. 25 1月, 2011 2 次提交
  4. 22 1月, 2011 3 次提交
  5. 20 1月, 2011 1 次提交
  6. 19 1月, 2011 2 次提交
    • M
      ASoC: Provide per widget type callback when executing DAPM sequences · 474b62d6
      Mark Brown 提交于
      Many modern devices have features such as DC servos which take time to start.
      Currently these are handled by per-widget events but this makes it difficult
      to paralleise operations on multiple widgets, meaning delays can end up
      being needlessly serialised. By providing a callback to drivers when all
      widgets of a given type have been handled during a DAPM sequence the core
      allows drivers to start operations separately and wait for them to complete
      much more simply.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      474b62d6
    • M
      ASoC: Add support for sequencing within · 20e4859d
      Mark Brown 提交于
      With larger devices there may be many widgets of the same type in series
      in an audio path. Allow drivers to specify an additional level of ordering
      within each widget type by adding a subsequence number to widgets and then
      splitting operations on widgets so that widgets of the same type but
      different sequence numbers are processed separately.  A typical example
      would be a supply widget which requires that another widget be enabled
      to provide power or clocking.
      
      SND_SOC_DAPM_PGA_S() and SND_SOC_DAPM_SUPPLY_S() macros are provided
      allowing this to be used with PGAs and supplies as these are the most
      commonly affected widgets.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      20e4859d
  7. 17 1月, 2011 1 次提交
  8. 15 1月, 2011 1 次提交
  9. 14 1月, 2011 1 次提交
  10. 13 1月, 2011 3 次提交
  11. 12 1月, 2011 1 次提交
  12. 11 1月, 2011 2 次提交
  13. 10 1月, 2011 1 次提交
  14. 18 12月, 2010 1 次提交
  15. 17 12月, 2010 1 次提交
  16. 16 12月, 2010 3 次提交
    • J
      ASoC: Extend DAPM to handle power changes on cross-device paths · 7be31be8
      Jarkko Nikula 提交于
      Power change event like stream start/stop or kcontrol change in a
      cross-device path originates from one device but codec bias and widget power
      changes must be populated to another devices on that path as well.
      
      This patch modifies the dapm_power_widgets so that all the widgets on a
      sound card are checked for a power change, not just those that are specific
      to originating device. Also bias management is extended to check all the
      devices. Only exception in bias management are widgetless codecs whose bias
      state is changed only if power change is originating from that context.
      
      DAPM context test is added to dapm_seq_run to take care of if power sequence
      extends to an another device which requires separate register writes.
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      7be31be8
    • J
      ASoC: Move widgets from DAPM context to snd_soc_card · 97c866de
      Jarkko Nikula 提交于
      Decoupling widgets from DAPM context is required when extending the ASoC
      core to cross-device paths. Even the list of widgets are now kept in
      struct snd_soc_card, the widget listing in sysfs and debugs remain sorted
      per device.
      
      This patch makes possible to build cross-device paths but does not extend
      yet the DAPM to handle codec bias and widget power changes of an another
      device.
      
      Cross-device paths are registered by listing the widgets from device A in
      a map for device B. In case of conflicting widget names between the devices,
      a uniform name prefix is needed to separate them. See commit ead9b919
      "ASoC: Add optional name_prefix for kcontrol, widget and route names" for
      help.
      
      An example below shows a path that connects MONO out of A into Line In of B:
      
      static const struct snd_soc_dapm_route mapA[] = {
      	{"MONO", NULL, "DAC"},
      };
      
      static const struct snd_soc_dapm_route mapB[] = {
      	{"Line In", NULL, "MONO"},
      };
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      97c866de
    • J
      ASoC: Move DAPM paths from DAPM context to snd_soc_card · 8ddab3f5
      Jarkko Nikula 提交于
      Decoupling DAPM paths from DAPM context is a first prerequisite when
      extending ASoC core to cross-device paths. This patch is almost a nullop and
      does not allow to construct cross-device setup but the path clean-up part in
      dapm_free_widgets is prepared to remove cross-device paths between a device
      being removed and others.
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      8ddab3f5
  17. 15 12月, 2010 1 次提交
  18. 14 12月, 2010 1 次提交
  19. 09 12月, 2010 1 次提交
  20. 06 12月, 2010 2 次提交
  21. 04 12月, 2010 6 次提交
  22. 03 12月, 2010 2 次提交
  23. 01 12月, 2010 1 次提交
  24. 30 11月, 2010 1 次提交
    • J
      ASoC: Add support for optional auxiliary dailess codecs · 2eea392d
      Jarkko Nikula 提交于
      This makes possible to register auxiliary dailess codecs in a machine
      driver. Term dailess is used here for amplifiers and codecs without DAI or
      DAI being unused.
      
      Dailess auxiliary codecs are kept in struct snd_soc_aux_dev and those codecs
      are probed after initializing the DAI links. There are no major differences
      between DAI link codecs and dailess codecs in ASoC core point of view. DAPM
      handles them equally and sysfs and debugfs directories for dailess codecs
      are similar except the pmdown_time node is not created.
      
      Only suspend and resume functions are modified to traverse all probed codecs
      instead of DAI link codecs.
      
      Example below shows a dailess codec registration.
      
      struct snd_soc_aux_dev foo_aux_dev[] = {
      	{
      		.name = "Amp",
      		.codec_name = "codec.2",
      		.init = foo_init2,
      	},
      };
      
      static struct snd_soc_card card = {
      	...
      	.aux_dev = foo_aux_dev,
      	.num_aux_devs = ARRAY_SIZE(foo_aux_dev),
      };
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      2eea392d