Merge remote-tracking branch 'asoc/topic/mxs' into asoc-next
[linux-block.git] / include / sound / soc-dai.h
index b0ee6590b8baa25de6d85af8caeb097190adb0d5..800c101bb096fd6f5c1170ebbdce1ab06cead062 100644 (file)
@@ -169,6 +169,13 @@ struct snd_soc_dai_ops {
                struct snd_soc_dai *);
        int (*prepare)(struct snd_pcm_substream *,
                struct snd_soc_dai *);
+       /*
+        * NOTE: Commands passed to the trigger function are not necessarily
+        * compatible with the current state of the dai. For example this
+        * sequence of commands is possible: START STOP STOP.
+        * So do not unconditionally use refcounting functions in the trigger
+        * function, e.g. clk_enable/disable.
+        */
        int (*trigger)(struct snd_pcm_substream *, int,
                struct snd_soc_dai *);
        int (*bespoke_trigger)(struct snd_pcm_substream *, int,