1. 29 2月, 2020 1 次提交
  2. 25 2月, 2020 1 次提交
  3. 13 2月, 2020 1 次提交
  4. 10 1月, 2020 1 次提交
    • K
      ASoC: soc-core: remove snd_soc_rtdcom_list · 613fb500
      Kuninori Morimoto 提交于
      Current ALSA SoC is using struct snd_soc_rtdcom_list to
      connecting component to rtd by using list_head.
      
      	struct snd_soc_rtdcom_list {
      		struct snd_soc_component *component;
      		struct list_head list; /* rtd::component_list */
      	};
      
      	struct snd_soc_pcm_runtime {
      		...
      		struct list_head component_list; /* list of connected components */
      		...
      	};
      
      The CPU/Codec/Platform component which will be connected to rtd (a)
      is indicated via dai_link at snd_soc_add_pcm_runtime()
      
      	int snd_soc_add_pcm_runtime(...)
      	{
      		...
      		/* Find CPU from registered CPUs */
      		rtd->cpu_dai = snd_soc_find_dai(dai_link->cpus);
      		...
      (a)		snd_soc_rtdcom_add(rtd, rtd->cpu_dai->component);
      		...
      
      		/* Find CODEC from registered CODECs */
      (b)		for_each_link_codecs(dai_link, i, codec) {
      			rtd->codec_dais[i] = snd_soc_find_dai(codec);
      			...
      (a)			snd_soc_rtdcom_add(rtd, rtd->codec_dais[i]->component);
      		}
      		...
      
      		/* Find PLATFORM from registered PLATFORMs */
      (b)		for_each_link_platforms(dai_link, i, platform) {
      			for_each_component(component) {
      				...
      (a)				snd_soc_rtdcom_add(rtd, component);
      			}
      		}
      
      	}
      
      It shows, it is possible to know how many components will be
      connected to rtd by using
      
      	dai_link->num_cpus
      	dai_link->num_codecs
      	dai_link->num_platforms
      
      If so, we can use component pointer array instead of list_head,
      in such case, code can be more simple.
      This patch removes struct snd_soc_rtdcom_list that is only
      of temporary value, and convert to pointer array.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Reviewed-By: NRanjani Sridharan <ranjani.sridharan@linux.intel.com>
      Link: https://lore.kernel.org/r/87a76wt4wm.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: NMark Brown <broonie@kernel.org>
      613fb500
  5. 08 1月, 2020 1 次提交
  6. 22 11月, 2019 1 次提交
  7. 20 11月, 2019 1 次提交
  8. 24 10月, 2019 1 次提交
  9. 08 10月, 2019 3 次提交
  10. 05 8月, 2019 25 次提交
  11. 28 6月, 2019 1 次提交
  12. 19 6月, 2019 1 次提交
    • K
      ASoC: soc-utils: remove dummy Platform · 64ee5067
      Kuninori Morimoto 提交于
      ALSA SoC used 2 type of Platform if sound card doesn't need
      Platform.
      
      	1) use Dummy Platform as Platform component
      	2) use CPU component  as Platform component
      
      Now, ALSA SoC allows "no Platform" settings, and it will behave
      same as 2) case selection. And, all sound card which doesn't need
      specific Platform are now not selecting Platform any more.
      
      This means, no sound card is using dummy Platform on ALSA SoC any
      more. This patch removes unused dummy Platform.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      64ee5067
  13. 28 9月, 2018 1 次提交
    • M
      ASoC: soc-utils: Rename dummy_dma_ops to snd_dummy_dma_ops · 42cfb412
      Matthias Kaehlcke 提交于
      The symbols 'dummy_dma_ops' is declared with different data types by
      sound/soc/soc-utils.c and arch/arm64/include/asm/dma-mapping.h. This
      leads to conflicts when soc-utils.c (indirectly) includes dma-mapping.h:
      
      sound/soc/soc-utils.c:282:33: error: conflicting types for 'dummy_dma_ops'
        static const struct snd_pcm_ops dummy_dma_ops = {
                                        ^
      ...
      arch/arm64/include/asm/dma-mapping.h:27:33: note: previous declaration of 'dummy_dma_ops' was here
        extern const struct dma_map_ops dummy_dma_ops;
                                        ^
      
      Rename the symbol in soc-utils.c to 'snd_dummy_dma_ops' to avoid the
      conflict.
      Signed-off-by: NMatthias Kaehlcke <mka@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      42cfb412
  14. 02 7月, 2018 1 次提交