1. 22 12月, 2014 2 次提交
    • L
      ASoC: dapm: Simplify fully route card handling · 86d75003
      Lars-Peter Clausen 提交于
      For legacy reasons the ASoC framework assumes that a CODEC INPUT or OUTPUT
      widget that is not explicitly connected to a external source or sink is
      potentially connected to a source or a sink and hence the framework treats
      the widget itself as source (for INPUT) or sink (for OUTPUT). For this
      reason a INPUT or OUTPUT widget that is really not connected needs to be
      explicitly marked as so.
      
      Setting the card's fully_routed flag will cause the ASoC core, once that all
      widgets and routes have been registered, to go through the list of all
      widgets and mark all INPUT and OUTPUT that are not externally connected as
      non-connected. This essentially negates the default behaviour of treating
      INPUT or OUTPUT widgets without external routes as sources or sinks.
      
      This patch takes a different approach while getting the same result. Instead
      of first marking INPUT and OUTPUT widgets as sinks/sources and then later
      marking them as non-connected, just never mark them as a sink or a source if
      the fully_routed flag is set on a card.
      
      This requires a lot less code and also results in a slightly faster card
      initialization since there is no need to iterate over all widgets and check
      whether the INPUT and OUTPUT widgets are connected or not.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      86d75003
    • L
      ASoC: dapm: Don't mark MICBIAS widgets as auto non-connected · 768c0564
      Lars-Peter Clausen 提交于
      The connected flag of a widget only affects widgets that are either a source
      or a sink. The MICBIAS widget is a simple pass-through widget though and
      hence its behavior is the same regardless of whether the connected flag is
      set or not.
      
      Hence there is not much point in trying to automatically mark MICBIAS
      widgets as non-connected, so just remove it.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      768c0564
  2. 19 12月, 2014 3 次提交
  3. 18 12月, 2014 6 次提交
  4. 17 12月, 2014 2 次提交
  5. 16 12月, 2014 3 次提交
  6. 15 12月, 2014 5 次提交
  7. 14 12月, 2014 1 次提交
  8. 13 12月, 2014 1 次提交
  9. 12 12月, 2014 1 次提交
  10. 10 12月, 2014 16 次提交