ALSA: aloop: Describe units of variables
authorTimo Wischer <twischer@de.adit-jv.com>
Wed, 20 Nov 2019 17:49:49 +0000 (11:49 -0600)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Nov 2019 18:38:26 +0000 (19:38 +0100)
Describe the unit of the variables used to calculate the hw pointer
depending on jiffies ticks.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Link: https://lore.kernel.org/r/20191120174955.6410-2-andrew_gabbasov@mentor.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/aloop.c

index 54f8b17476a12cc1d5c0faeb5f0f45ae5c2e9ee4..573b06cf7cf56f081c62434835e863002212ea4c 100644 (file)
@@ -102,8 +102,10 @@ struct loopback_pcm {
        /* flags */
        unsigned int period_update_pending :1;
        /* timer stuff */
-       unsigned int irq_pos;           /* fractional IRQ position */
-       unsigned int period_size_frac;
+       unsigned int irq_pos;           /* fractional IRQ position in jiffies
+                                        * ticks
+                                        */
+       unsigned int period_size_frac;  /* period size in jiffies ticks */
        unsigned int last_drift;
        unsigned long last_jiffies;
        struct timer_list timer;