OSDN Git Service

ALSA: ca0106: Use the standard snd_ctl_add_followers() helper
authorTakashi Iwai <tiwai@suse.de>
Fri, 21 Jul 2023 07:16:42 +0000 (09:16 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Jul 2023 07:37:48 +0000 (09:37 +0200)
commitb7bb11fa361f4319b1bbf7cc390ef4dd83236be3
tree5ffd7747dccc92038793b0b55ede2abd9cca739f
parent1caf64d91f72321191f7dc24d8e950222acc9bfa
ALSA: ca0106: Use the standard snd_ctl_add_followers() helper

Instead of open-code, use the new standard helper to manage vmaster
stuff for code simplification.

Also, handle the errors from the helper more properly instead of
silently ignoring.

Link: https://lore.kernel.org/r/20230721071643.3631-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ca0106/ca0106_mixer.c