summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorAnatol Pomozov2015-08-31 17:24:23 +0200
committerMark Brown2015-08-31 17:40:26 +0200
commitd76f41982f2fc88492efd96c7c3178044f32e125 (patch)
treed8814c92bebb72ccf802b1115e9c35cf98f8b0fe /sound/soc
parentLinux 4.2-rc2 (diff)
downloadkernel-qcow2-linux-d76f41982f2fc88492efd96c7c3178044f32e125.tar.gz
kernel-qcow2-linux-d76f41982f2fc88492efd96c7c3178044f32e125.tar.xz
kernel-qcow2-linux-d76f41982f2fc88492efd96c7c3178044f32e125.zip
ASoC: Document snd-soc-dummy-dai purpose
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index 362c69ac1d6c..53dd085d3ee2 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -101,6 +101,15 @@ static struct snd_soc_codec_driver dummy_codec;
SNDRV_PCM_FMTBIT_S32_LE | \
SNDRV_PCM_FMTBIT_U32_LE | \
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
+/*
+ * The dummy CODEC is only meant to be used in situations where there is no
+ * actual hardware.
+ *
+ * If there is actual hardware even if it does not have a control bus
+ * the hardware will still have constraints like supported samplerates, etc.
+ * which should be modelled. And the data flow graph also should be modelled
+ * using DAPM.
+ */
static struct snd_soc_dai_driver dummy_dai = {
.name = "snd-soc-dummy-dai",
.playback = {