]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ALSA: mixart: adjust field name reference
authorJulia Lawall <Julia.Lawall@inria.fr>
Tue, 30 Dec 2025 13:22:35 +0000 (14:22 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 31 Dec 2025 16:13:42 +0000 (17:13 +0100)
buf_period_pos seems to not have existed in the git history, but the
buf_period_frag field is used with the buf_periods field in the
function snd_mixart_stream_pointer in mixart.c, so it seems that
buf_periods is what was intended.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Link: https://patch.msgid.link/20251230132235.90687-1-Julia.Lawall@inria.fr
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/mixart/mixart.h

index cbed6d9a9f2e3f7e4bb7bf781b2603789af84d24..3fcc5ca757c1a1751c1415cf6354fa824393b4fc 100644 (file)
@@ -125,7 +125,7 @@ struct mixart_stream {
 
        u64  abs_period_elapsed;  /* last absolute stream position where period_elapsed was called (multiple of runtime->period_size) */
        u32  buf_periods;         /* periods counter in the buffer (< runtime->periods) */
-       u32  buf_period_frag;     /* defines with buf_period_pos the exact position in the buffer (< runtime->period_size) */
+       u32  buf_period_frag;     /* defines with buf_periods the exact position in the buffer (< runtime->period_size) */
 
        int channels;
 };