Skip to content

Commit

Permalink
ALSA: aloop: Describe units of variables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Timo Wischer authored and Takashi Iwai committed Nov 20, 2019
1 parent e190de6 commit 97dda3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sound/drivers/aloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97dda3d

Please sign in to comment.