]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ALSA: compress: Add SNDRV_PCM_STATE_PREPARED state explanation
authorVinod Koul <vinod.koul@intel.com>
Fri, 4 Mar 2016 14:55:29 +0000 (20:25 +0530)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 Mar 2016 16:49:42 +0000 (17:49 +0100)
Stream states were explained in the code comments but
SNDRV_PCM_STATE_PREPARED was missed so add it

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c

index 9e7c2f0831d7b7d2d859072282a7354a6d1f5404..a5b213e4cd7b78e1086059f5c89fe23b0ce893c5 100644 (file)
@@ -74,6 +74,9 @@ struct snd_compr_file {
  * SNDRV_PCM_STATE_SETUP: When stream has been initialized. This is done by
  *     calling SNDRV_COMPRESS_SET_PARAMS. running streams will come to this
  *     state at stop by calling SNDRV_COMPRESS_STOP, or at end of drain.
+ * SNDRV_PCM_STATE_PREPARED: When a stream has been written to (for
+ *     playback only). User after setting up stream writes the data buffer
+ *     before starting the stream.
  * SNDRV_PCM_STATE_RUNNING: When stream has been started and is
  *     decoding/encoding and rendering/capturing data.
  * SNDRV_PCM_STATE_DRAINING: When stream is draining current data. This is done