diff options
author | Takashi Iwai <tiwai@suse.de> | 2022-09-06 11:04:03 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-09-06 11:04:15 +0200 |
commit | 16c5cde20e304cd900371b140cd53ecafe8d3de5 (patch) | |
tree | e1ece341f2ef3ac98069c3fcb350e16f0a8645bb /sound/drivers | |
parent | ALSA: usb-audio: Clean up endpoint setups at PCM prepare (diff) | |
parent | ALSA: hda: Once again fix regression of page allocations with IOMMU (diff) | |
download | linux-16c5cde20e304cd900371b140cd53ecafe8d3de5.tar.xz linux-16c5cde20e304cd900371b140cd53ecafe8d3de5.zip |
Merge branch 'for-linus' into for-next
Once again back-merge the 6.0-rc devel branch for further USB-audio
and HD-audio developments.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/aloop.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 9b4a7cdb103a..12f12a294df5 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -605,17 +605,18 @@ static unsigned int loopback_jiffies_timer_pos_update cable->streams[SNDRV_PCM_STREAM_PLAYBACK]; struct loopback_pcm *dpcm_capt = cable->streams[SNDRV_PCM_STREAM_CAPTURE]; - unsigned long delta_play = 0, delta_capt = 0; + unsigned long delta_play = 0, delta_capt = 0, cur_jiffies; unsigned int running, count1, count2; + cur_jiffies = jiffies; running = cable->running ^ cable->pause; if (running & (1 << SNDRV_PCM_STREAM_PLAYBACK)) { - delta_play = jiffies - dpcm_play->last_jiffies; + delta_play = cur_jiffies - dpcm_play->last_jiffies; dpcm_play->last_jiffies += delta_play; } if (running & (1 << SNDRV_PCM_STREAM_CAPTURE)) { - delta_capt = jiffies - dpcm_capt->last_jiffies; + delta_capt = cur_jiffies - dpcm_capt->last_jiffies; dpcm_capt->last_jiffies += delta_capt; } |