]> www.infradead.org Git - users/dwmw2/linux.git/commit
ALSA: pcm: Define snd_pcm_mmap_data_{open|close}() locally
authorTakashi Iwai <tiwai@suse.de>
Wed, 13 Nov 2024 11:16:27 +0000 (12:16 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Nov 2024 12:33:28 +0000 (13:33 +0100)
commitf69c2861b05e29c69abed6aafe0cefd224d9d4db
treece5843608d2682dd76613db6ff47d82217558af3
parent8f80f378e77eafdcdb7ea9a76cc645ecd04fb4e5
ALSA: pcm: Define snd_pcm_mmap_data_{open|close}() locally

snd_pcm_mmap_data_open() and _close() are defined as inline functions
in the public sound/pcm.h, but those are used only locally in
pcm_native.c, hence they should be better placed there.

Also, those are referred as callbacks, the useless inline is dropped.

Link: https://patch.msgid.link/20241113111628.17069-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm_native.c