ALSA: pcm: rewrite snd_pcm_playback_silence()
[linux-2.6-microblaze.git] / include / sound / pcm.h
index 27040b4..19f5646 100644 (file)
@@ -378,18 +378,18 @@ struct snd_pcm_runtime {
        unsigned int rate_den;
        unsigned int no_period_wakeup: 1;
 
-       /* -- SW params -- */
-       int tstamp_mode;                /* mmap timestamp is updated */
+       /* -- SW params; see struct snd_pcm_sw_params for comments -- */
+       int tstamp_mode;
        unsigned int period_step;
        snd_pcm_uframes_t start_threshold;
        snd_pcm_uframes_t stop_threshold;
-       snd_pcm_uframes_t silence_threshold; /* Silence filling happens when
-                                               noise is nearest than this */
-       snd_pcm_uframes_t silence_size; /* Silence filling size */
-       snd_pcm_uframes_t boundary;     /* pointers wrap point */
+       snd_pcm_uframes_t silence_threshold;
+       snd_pcm_uframes_t silence_size;
+       snd_pcm_uframes_t boundary;
 
+       /* internal data of auto-silencer */
        snd_pcm_uframes_t silence_start; /* starting pointer to silence area */
-       snd_pcm_uframes_t silence_filled; /* size filled with silence */
+       snd_pcm_uframes_t silence_filled; /* already filled part of silence area */
 
        union snd_pcm_sync_id sync;     /* hardware synchronization ID */