ALSA: usb-audio: Rename early_playback_start flag with lowlatency_playback
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Sep 2021 08:08:38 +0000 (10:08 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Sep 2021 11:55:20 +0000 (13:55 +0200)
commit9c9a3b9da891cc70405a544da6855700eddcbb71
treee97f1736f640fa03569ec3062ddd1928b3274e13
parent86a42ad07905110f82648853c0ea3434b4eab173
ALSA: usb-audio: Rename early_playback_start flag with lowlatency_playback

This is a preparation patch for the upcoming low-latency improvement
changes.

Rename early_playback_start flag with lowlatency_playback as it's more
intuitive.  The new flag is basically a reverse meaning.

Along with the rename, factor out the code to set the flag to a
function.  This makes the complex condition checks simpler.

Also, the same flag is introduced to snd_usb_endpoint, too, that is
carried from the snd_usb_substream flag.  Currently the endpoint flag
isn't still referred, but will be used in later patches.

Link: https://lore.kernel.org/r/20210929080844.11583-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.h
sound/usb/endpoint.c
sound/usb/pcm.c