1. 22 1月, 2019 1 次提交
    • K
      ASoC: soc-core: add .num_platform for dai_link · 910fdcab
      Kuninori Morimoto 提交于
      Current snd_soc_dai_link is starting to use snd_soc_dai_link_component
      (= modern) style for Platform, but it is still assuming single Platform
      so far. We will need to have multi Platform support in the not far
      future.
      
      Currently only simple card is using it as sound card driver,
      and other drivers are converted to it from legacy style by
      snd_soc_init_platform().
      To avoid future problem of multi Platform support, let's add
      num_platforms before it is too late.
      
      In the same time, to make it same naming mothed, "platform" should
      be "platforms". This patch fixup it too.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      910fdcab
  2. 04 1月, 2019 1 次提交
    • K
      ASoC: simple-card-utils: check "reg" property on asoc_simple_card_get_dai_id() · a0c426fe
      Kuninori Morimoto 提交于
      We will get DAI ID from "reg" property if it has on DT, otherwise get
      it by counting port/endpoint.
      
      But in below case, we need to get DAI ID = 0 via port reg = <0>, but
      current implementation returns ID = 1, because it can't judge ID = 0 was
      from "non reg" or "reg = <0>".
      Thus, it will count port/endpoint number as "non reg" case.
      
      of_graph_parse_endpoint() implementation itself is not a problem,
      but because asoc_simple_card_get_dai_id() need to count port/endpoint
      number when "non reg" case, it need to know ID = 0 was from
      "non reg" or "reg = <0>".
      This patch fix this issue.
      
      	port {
      		reg = <0>;
      		xxxx: endpoint@0 {
      		};
      =>		xxxx: endpoint@1 {
      		};
      	};
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a0c426fe
  3. 14 12月, 2018 1 次提交
  4. 11 12月, 2018 1 次提交
  5. 05 12月, 2018 1 次提交
  6. 21 11月, 2018 4 次提交
  7. 21 9月, 2018 1 次提交
  8. 31 8月, 2018 4 次提交
  9. 02 7月, 2018 1 次提交
  10. 18 6月, 2018 1 次提交
  11. 01 9月, 2017 1 次提交
  12. 31 8月, 2017 1 次提交
  13. 01 8月, 2017 1 次提交
    • T
      device property: Fix usecount for of_graph_get_port_parent() · c0a480d1
      Tony Lindgren 提交于
      Fix inconsistent use of of_graph_get_port_parent() where
      asoc_simple_card_parse_graph_dai() does of_node_get() before
      calling it while other callers do not. We can fix this by
      not trashing the node passed to of_graph_get_port_parent().
      
      Let's also make sure the callers have correct refcounts and remove
      related incorrect of_node_put() calls for of_for_each_phandle
      as that's done by of_phandle_iterator_next() except when
      we break out of the loop early.
      
      Let's fix both issues with a single patch to avoid kobject
      refcounts getting messed up more if two patches are merged
      separately.
      
      Otherwise strange issues can happen caused by memory corruption
      caused by too many kobject_del() calls such as:
      
      BUG: sleeping function called from invalid context at
      kernel/locking/mutex.c:747
      ...
      (___might_sleep)
      (__mutex_lock)
      (mutex_lock_nested)
      (kernfs_remove)
      (kobject_del)
      (kobject_put)
      (of_get_next_parent)
      (of_graph_get_port_parent)
      (asoc_simple_card_parse_graph_dai [snd_soc_simple_card_utils])
      (asoc_graph_card_probe [snd_soc_audio_graph_card])
      
      Fixes: 0ef472a9 ("of_graph: add of_graph_get_port_parent()")
      Fixes: 2692c1c6 ("ASoC: add audio-graph-card support")
      Fixes: 1689333f ("ASoC: simple-card-utils: add asoc_simple_card_parse_graph_dai()")
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      Reviewed-by: NRob Herring <robh@kernel.org>
      Tested-by: NAntonio Borneo <borneo.antonio@gmail.com>
      Tested-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      c0a480d1
  14. 17 6月, 2017 1 次提交
  15. 16 6月, 2017 2 次提交
  16. 14 6月, 2017 2 次提交
    • K
      ASoC: simple_card_utils: add EXPORT_SYMBOL_GPL() for asoc_simple_card_clk_xxx() · 63a5f592
      Kuninori Morimoto 提交于
      commit 891caea4 ("ASoC: simple_card_utils:
      add asoc_simple_card_clk_xxx()") added new asoc_simple_card_clk_xxx(),
      but, it didn't have EXPORT_SYMBOL_GPL().
      This patch adds it. Otherwise, we will get below error
      
      ERROR: "asoc_simple_card_clk_enable" [sound/soc/generic/snd-soc-simple-scu-card.ko] undefined!
      ERROR: "asoc_simple_card_clk_disable" [sound/soc/generic/snd-soc-simple-scu-card.ko] undefined!
      ERROR: "asoc_simple_card_clk_enable" [sound/soc/generic/snd-soc-simple-card.ko] undefined!
      ERROR: "asoc_simple_card_clk_disable" [sound/soc/generic/snd-soc-simple-card.ko] undefined!
      ERROR: "asoc_simple_card_clk_enable" [sound/soc/generic/snd-soc-audio-graph-scu-card.ko] undefined!
      ERROR: "asoc_simple_card_clk_disable" [sound/soc/generic/snd-soc-audio-graph-scu-card.ko] undefined!
      ERROR: "asoc_simple_card_clk_enable" [sound/soc/generic/snd-soc-audio-graph-card.ko] undefined!
      ERROR: "asoc_simple_card_clk_disable" [sound/soc/generic/snd-soc-audio-graph-card.ko] undefined!
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      63a5f592
    • K
      ASoC: simple_card_utils: add asoc_simple_card_clk_xxx() · 891caea4
      Kuninori Morimoto 提交于
      Current simple-card-utils sets asoc_simple_dai::clk via
      asoc_simple_card_parse_clk().
      Current simple card drivers are using it directly for
      clk_enable/disable.
      Encapsulation is one of simple card util's purpose.
      Let's encapsulate it.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      891caea4
  17. 07 6月, 2017 4 次提交
  18. 26 5月, 2017 1 次提交
  19. 25 5月, 2017 1 次提交
  20. 17 5月, 2017 2 次提交
  21. 25 3月, 2017 1 次提交
  22. 24 1月, 2017 1 次提交
  23. 05 12月, 2016 1 次提交
  24. 29 10月, 2016 1 次提交
  25. 11 8月, 2016 2 次提交
  26. 09 8月, 2016 2 次提交