diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-11-22 17:22:40 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-11-24 22:04:10 +0300 |
commit | 3103c08f968ddba3fff339a59aba40389b3f724f (patch) | |
tree | 5ed66d16a2ff3192a898ee091539634943efb1ca /sound/pci | |
parent | 5f2ad5942f6b682efe2e35aff58f82568ab8c929 (diff) | |
download | linux-3103c08f968ddba3fff339a59aba40389b3f724f.tar.xz |
ALSA: control: Consolidate helpers for adding and replacing ctl elements
Both snd_ctl_add() and snd_ctl_replace() process the things in a
fairly similar way, and indeed the most of the codes can be unified.
This patch is a refactoring to consolidate the both functions to call
a single helper with an extra "mode" argument. There should be no
functional difference, except for one additional sanity check applied
now to snd_ctl_replace() (which was rather overlooking, IMO), too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions