1. 28 10月, 2014 1 次提交
  2. 22 10月, 2014 5 次提交
    • L
      ASoC: dapm: Remove path 'walked' flag · 130897ac
      Lars-Peter Clausen 提交于
      The 'walked' flag was used to avoid walking paths that have already been
      walked. But since we started caching the number of inputs and outputs of a
      path we never actually get into a situation where we try to walk a path that
      has the 'walked' flag set.
      
      There are two cases in which we can end up walking a path multiple times
      within a single run of is_connected_output_ep() or is_connected_input_ep().
      
      1) If a path splits up and rejoins later:
      
      	     .--> C ---v
      	A -> B         E --> F
      	     '--> D ---^
      
      When walking from A to F we'll end up at E twice, once via C and once via D.
      But since we do a depth first search we'll fully discover the path and
      initialize the number of outputs/inputs of the widget the first time we get
      there. The second time we get there we'll use the cached value and not
      bother to check any of the paths again. So we'll never see a path where
      'walked' is set in this case.
      
      2) If there is a circle:
      
      	A --> B <-- C <-.--> F
      	      '--> D ---'
      
      When walking from A to F we'll end up twice at B. But since there is a
      circle the 'walking' flag will still be set on B once we get there the
      second time. This means we won't look at any of it's outgoing paths. So in
      this case we won't ever see a path where 'walked' is set either.
      
      So it is safe to remove the flag. This on one hand means we remove some
      always true checks from one of the hottest paths of the DAPM algorithm and
      on the other hand means we do not have to do the tedious clearing of the
      flag after checking the number inputs or outputs of a widget.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      130897ac
    • L
      ASoC: dapm: Remove special DAI widget power check functions · cdef2ad3
      Lars-Peter Clausen 提交于
      dapm_adc_check_power() checks if the widget is active, if yes it only checks
      whether there are any connected input paths. Otherwise it calls
      dapm_generic_check_power() which will check for both connected input and
      output paths. But the function that checks for connected output paths will
      return true if the widget is a active sink. Which means the generic power
      check function will work just fine and there is no need for a special power
      check function.
      
      The same applies for dapm_dac_check_power(), but with input and output paths
      reversed.
      
      This patch removes both dapm_adc_check_power() and dapm_dac_check_power()
      and replace their usage with dapm_generic_check_power().
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      cdef2ad3
    • L
      ASoC: dapm: Remove always true path source/sink checks · 7ddd4cd5
      Lars-Peter Clausen 提交于
      A path has always a valid source and a valid sink otherwise we wouldn't add
      it in the first place. Hence all tests that check if sink/source is non NULL
      always evaluate to true and can be removed.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      7ddd4cd5
    • L
      ASoC: dapm: Reduce number of checked paths in dapm_widget_in_card_paths() · cdc4508b
      Lars-Peter Clausen 提交于
      Each widget has a list of all the paths that it is connected to. There is no
      need to iterate over all paths when we are only interested in the paths of a
      specific widget.
      Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      cdc4508b
    • R
      ASoC: dapm: Remove redundant cast · 98ad73c9
      Rasmus Villemoes 提交于
      Both path->name and e->texts[i] have type const char*, so the cast is
      slightly confusing and certainly unnecessary.
      Signed-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      98ad73c9
  3. 15 10月, 2014 2 次提交
  4. 14 10月, 2014 2 次提交
  5. 10 10月, 2014 1 次提交
  6. 08 10月, 2014 8 次提交
  7. 07 10月, 2014 8 次提交
  8. 05 10月, 2014 1 次提交
  9. 04 10月, 2014 2 次提交
  10. 03 10月, 2014 7 次提交
  11. 02 10月, 2014 3 次提交