Lines Matching +full:num +full:- +full:strings
1 // SPDX-License-Identifier: GPL-2.0-or-later
21 static DEFINE_MUTEX(strings);
24 int snd_oss_info_register(int dev, int num, char *string) in snd_oss_info_register() argument
29 return -ENXIO; in snd_oss_info_register()
30 if (snd_BUG_ON(num < 0 || num >= SNDRV_CARDS)) in snd_oss_info_register()
31 return -ENXIO; in snd_oss_info_register()
32 mutex_lock(&strings); in snd_oss_info_register()
34 x = snd_sndstat_strings[num][dev]; in snd_oss_info_register()
40 mutex_unlock(&strings); in snd_oss_info_register()
41 return -ENOMEM; in snd_oss_info_register()
44 snd_sndstat_strings[num][dev] = x; in snd_oss_info_register()
45 mutex_unlock(&strings); in snd_oss_info_register()
52 int idx, ok = -1; in snd_sndstat_show_strings()
56 mutex_lock(&strings); in snd_sndstat_show_strings()
67 mutex_unlock(&strings); in snd_sndstat_show_strings()
76 snd_iprintf(buffer, "Sound Driver:3.8.1a-980706 (ALSA emulation code)\n"); in snd_sndstat_proc_read()
78 init_utsname()->sysname, in snd_sndstat_proc_read()
79 init_utsname()->nodename, in snd_sndstat_proc_read()
80 init_utsname()->release, in snd_sndstat_proc_read()
81 init_utsname()->version, in snd_sndstat_proc_read()
82 init_utsname()->machine); in snd_sndstat_proc_read()
103 return -ENOMEM; in snd_info_minor_register()
104 entry->c.text.read = snd_sndstat_proc_read; in snd_info_minor_register()