alsa-lib/src
Hans de Goede 86b9c67774 mixer: simple - Unify simple_none: base_len() exception handling
Unify simple_none: base_len() exception handling:

1. In the "Input Source" and "3D Control" cases the base-name is the same
   as the full-name and base_len() simply returns strlen(name).
   Instead of returning 0 when the type is unknown, set the type to
   CTL_SINGLE and return strlen(name). This allows removing the special
   case for base_len() returning 0 in simple_event_add().

2. Move the special handling for "Capture Volume" and "Capture Switch"
   from simple_event_add() to base_len(), so that we handle all exceptions
   inside base_len(). Instead of handling some special cases in base_len()
   and other special cases in simple_event_add().

[jk - moved the "Capture Volume" and "Capture Switch" to "Input Source"
exceptions]

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-03-05 21:11:19 +01:00
..
alisp alisp: add the missing include 2019-03-15 13:16:20 +01:00
conf conf: HDA-Intel: increase the max number of HDMI/DP output to 11 2021-02-24 10:09:47 +01:00
control control: add snd_ctl_elem_id_compare() function 2021-02-26 21:08:28 +01:00
hwdep conf: introduce snd_config_get_card() function 2021-02-26 21:08:28 +01:00
mixer mixer: simple - Unify simple_none: base_len() exception handling 2021-03-05 21:11:19 +01:00
pcm pcm: softvol - improve TLV data check for new configs 2021-02-26 21:10:59 +01:00
rawmidi conf: introduce snd_config_get_card() function 2021-02-26 21:08:28 +01:00
seq add snd_strlcpy() and use it everywhere 2019-03-25 16:46:05 +01:00
timer conf: introduce snd_config_get_card() function 2021-02-26 21:08:28 +01:00
topology topology: fix 'parse_tuple_set() - remove dead condition code' 2021-01-20 17:05:01 +01:00
ucm ucm: fix two error messages 2021-02-03 11:57:49 +01:00
async.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
conf.c conf: fix return code in _snd_config_load_with_include 2020-12-29 11:17:58 +01:00
confmisc.c conf: introduce snd_config_get_card() function 2021-02-26 21:08:28 +01:00
dlmisc.c dlmisc: fix snd_plugin_dir locking for not DL_ORIGIN_AVAILABLE 2020-10-29 20:32:10 +01:00
error.c add snd_strlcpy() and use it everywhere 2019-03-25 16:46:05 +01:00
input.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
Makefile.am create separated libatopology library with the topology routines 2019-11-14 15:01:12 +01:00
names.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
output.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
shmarea.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
socket.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
userfile.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
Versions.in Change snd_dlopen() function to return the error string 2017-11-27 21:48:20 +01:00