]> www.infradead.org Git - users/willy/xarray.git/commit
ALSA: pcm_dmaengine: Unify two close functions
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Jun 2024 11:33:55 +0000 (13:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Jun 2024 11:34:25 +0000 (13:34 +0200)
commit337b7b0b8b02aa10b52386371433eb6f522dc550
tree9fe0aee909ffa704c2b3bf100b41d74560b02a23
parent6f7dae64150229b898da0445480ede94b27d5522
ALSA: pcm_dmaengine: Unify two close functions

Both snd_dmaengine_pcm_close() and
snd_dmaengine_pcm_close_release_chan() are almost identical except for
a call of dma_release_channel() in the latter.  For code
simplification, unify them internally.

Just a code refactoring, and no functional changes.

Link: https://patch.msgid.link/20240625113356.2123-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_dmaengine.c