ASoC: audio-graph-card2: add comment for format property
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 23 Aug 2023 00:19:42 +0000 (00:19 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Aug 2023 16:40:09 +0000 (17:40 +0100)
We don't need to have "format" property on DT any more if
CPU/Codec driver has .auto_selectable_formats settings
on snd_soc_dai_ops. The sample dtsi doesn't have it.
To avoid user confusion, this patch indicates it on comment.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87edjuzk2p.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card2-custom-sample.dtsi
sound/soc/generic/audio-graph-card2.c

index 2ac0de3..8acaa2d 100644 (file)
  *             ...
  *     };
  *
+ *
+ * Below sample doesn't use "format" property,
+ * because test-component driver (test-cpu/test-codec) is supporting
+ * snd_soc_dai_ops :: .auto_selectable_formats.
+ * see
+ *     snd_soc_runtime_get_dai_fmt()
+ *     linux/sound/soc/generic/test-component.c :: test_dai_formats
  */
 / {
        /*
index 9873246..b1c675c 100644 (file)
  see
        graph_parse_daifmt().
 
+ "format" property is no longer needed on DT if both CPU/Codec drivers are
+ supporting snd_soc_dai_ops :: .auto_selectable_formats.
+ see
+       snd_soc_runtime_get_dai_fmt()
+
+       sample driver
+               linux/sound/soc/sh/rcar/core.c
+               linux/sound/soc/codecs/ak4613.c
+               linux/sound/soc/codecs/pcm3168a.c
+               linux/sound/soc/soc-utils.c
+               linux/sound/soc/generic/test-component.c
+
  ************************************
        Normal Audio-Graph
  ************************************