Skip to content

Commit

Permalink
ASoC: Document snd-soc-dummy-dai purpose
Browse files Browse the repository at this point in the history
Signed-off-by: Anatol Pomozov <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
anatol authored and nkskjames committed Jan 13, 2016
1 parent 80bff99 commit 2bd2210
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sound/soc/soc-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 2bd2210

Please sign in to comment.