mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ASoC: snd_soc_dai_ops trigger function description
Add a comment to the trigger function in snd_soc_dai_ops struct about possible command sequences. Signed-off-by: Markus Pargmann <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
38f2b8cbfb
commit
9f1614aae5
1 changed files with 7 additions and 0 deletions
|
|
@ -166,6 +166,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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue