Skip to content
  1. Dec 18, 2010
  2. Dec 17, 2010
  3. Dec 16, 2010
    • Jarkko Nikula's avatar
      ASoC: Extend DAPM to handle power changes on cross-device paths · 7be31be8
      Jarkko Nikula authored
      
      
      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: default avatarJarkko Nikula <jhnikula@gmail.com>
      Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      7be31be8
    • Jarkko Nikula's avatar
      ASoC: Move widgets from DAPM context to snd_soc_card · 97c866de
      Jarkko Nikula authored
      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: default avatarJarkko Nikula <jhnikula@gmail.com>
      Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      97c866de
    • Jarkko Nikula's avatar
      ASoC: Move DAPM paths from DAPM context to snd_soc_card · 8ddab3f5
      Jarkko Nikula authored
      
      
      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: default avatarJarkko Nikula <jhnikula@gmail.com>
      Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      8ddab3f5
  4. Dec 15, 2010
  5. Dec 14, 2010
  6. Dec 13, 2010
  7. Dec 11, 2010
  8. Dec 09, 2010
  9. Dec 08, 2010
  10. Dec 07, 2010