diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-10-14 17:53:23 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-10-14 23:01:54 +0300 |
commit | c18c4966033e6473a472fb65fbd5a6441603fbf7 (patch) | |
tree | 035838238a9eadb11cde264c4361e6b5cac32c02 /sound/firewire | |
parent | b96681bd58276e1c7ca4ca37bbaab9f8f1738d61 (diff) | |
download | linux-c18c4966033e6473a472fb65fbd5a6441603fbf7.tar.xz |
ALSA: pcm: Unify snd_pcm_delay() and snd_pcm_hwsync()
Both snd_pcm_delay() and snd_pcm_hwsync() do the almost same thing.
The only difference is that the former calculate the delay, so unify
them as a code cleanup, and treat NULL delay argument only for hwsync
operation.
Also, the patch does a slight code refactoring in snd_pcm_delay().
The initialization of the delay value is done in the caller side now.
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20211014145323.26506-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
0 files changed, 0 insertions, 0 deletions