OSDN Git Service

ALSA: seq: Treat snd_seq_client object directly in client drivers
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 07:53:40 +0000 (09:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 10:11:15 +0000 (12:11 +0200)
commitd0c8308fc58b3f02868388b294a94d501c816900
treed63b6b4084297428c4fb986ce843b5a72ada9e5e
parentea46f79709b6262f12c8ca24f32bfe8d638152ee
ALSA: seq: Treat snd_seq_client object directly in client drivers

Introduce the new helpers, snd_seq_kernel_client_get() and _put() for
kernel client drivers to treat the snd_seq_client more directly.
This allows us to reduce the exported symbols and APIs at each time we
need to access some field in future.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230523075358.9672-20-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_clientmgr.h