Lines Matching defs:name
524 It contains two parts: device name and arguments. Devices and arguments are described
595 UNIX socket name (for example /tmp/alsa.socket) for server communication and server's PCM name.
739 return pcm->name;
2125 * \brief get name of PCM stream type
2127 * \return ascii name of PCM stream type
2137 * \brief get name of PCM access type
2139 * \return ascii name of PCM access type
2149 * \brief get name of PCM sample format
2151 * \return ascii name of PCM sample format
2173 * \brief get PCM sample format from name
2174 * \param name PCM sample format name (case insensitive)
2177 snd_pcm_format_t snd_pcm_format_value(const char* name)
2182 strcasecmp(name, snd_pcm_format_names[format]) == 0) {
2186 strcasecmp(name, snd_pcm_format_aliases[format]) == 0) {
2192 strcasecmp(name, snd_pcm_format_descriptions[format]) == 0) {
2200 * \brief get name of PCM sample subformat
2202 * \return ascii name of PCM sample subformat
2224 * \brief get PCM sample subformat from name
2225 * \param name PCM sample subformat name (case insensitive)
2228 snd_pcm_subformat_t snd_pcm_subformat_value(const char* name)
2234 !strcasecmp(name, snd_pcm_subformat_names[subformat]))
2240 !strcasecmp(name, snd_pcm_subformat_descriptions[subformat]))
2248 * \brief (DEPRECATED) get name of PCM start mode setting
2250 * \return ascii name of PCM start mode setting
2264 * \brief (DEPRECATED) get name of PCM xrun mode setting
2266 * \return ascii name of PCM xrun mode setting
2280 * \brief get name of PCM tstamp mode setting
2282 * \return ascii name of PCM tstamp mode setting
2292 * \brief get name of PCM tstamp type setting
2294 * \return ascii name of PCM tstamp type setting
2304 * \brief get name of PCM state
2306 * \return ascii name of PCM state
2316 * \brief get name of PCM type
2318 * \return ascii name of PCM type
2562 static int snd_pcm_open_conf(snd_pcm_t **pcmp, const char *name,
2585 SNDERR("Invalid type for PCM %s%sdefinition (id: %s, value: %s)", name ? name : "", name ? " " : "", id, val);
2671 err = open_func(pcmp, name, pcm_root, pcm_conf, stream, mode);
2713 const char *name, snd_pcm_stream_t stream,
2720 err = snd_config_search_definition(root, "pcm", name, &pcm_conf);
2722 SNDERR("Unknown PCM %s", name);
2730 err = snd_pcm_open_conf(pcmp, name, root, pcm_conf, stream, mode);
2739 * \param name ASCII identifier of the PCM handle
2744 int snd_pcm_open(snd_pcm_t **pcmp, const char *name,
2750 assert(pcmp && name);
2751 if (_snd_is_ucm_device(name)) {
2752 name = uc_mgr_alibcfg_by_device(&top, name);
2753 if (name == NULL)
2760 err = snd_pcm_open_noupdate(pcmp, top, name, stream, mode, 0);
2768 * \param name ASCII identifier of the PCM handle
2774 int snd_pcm_open_lconf(snd_pcm_t **pcmp, const char *name,
2778 assert(pcmp && name && lconf);
2779 return snd_pcm_open_noupdate(pcmp, lconf, name, stream, mode, 0);
2786 * \param name ASCII identifier of the PCM handle
2787 * \param orig_name The original ASCII name
2793 const char *name, const char *orig_name,
2797 assert(pcmp && name && root);
2798 err = snd_pcm_open_noupdate(pcmp, root, name, stream, mode, 0);
2800 free((*pcmp)->name);
2801 (*pcmp)->name = orig_name ? strdup(orig_name) : NULL;
2807 int snd_pcm_new(snd_pcm_t **pcmp, snd_pcm_type_t type, const char *name,
2819 if (name)
2820 pcm->name = strdup(name);
2861 free(pcm->name);
2872 int snd_pcm_open_named_slave(snd_pcm_t **pcmp, const char *name,
2885 return snd_pcm_open_conf(pcmp, name, root, conf, stream, mode);
7269 * \brief Get name from a PCM info container
7271 * \return name of PCM
7276 return (const char *)obj->name;
7280 * \brief Get subdevice name from a PCM info container
7282 * \return name of used PCM subdevice
8030 #define OBSOLETE1(name, what, new) \
8031 default_symbol_version(__##name, name, new); \
8032 symbol_version(__old_##name, name, what);
8036 #define OBSOLETE1(name, what, new) \
8037 use_default_symbol_version(__##name, name, new);
8041 #define __P_OLD_GET(pfx, name, val_type, ret_type) \
8042 EXPORT_SYMBOL ret_type pfx##name(const snd_pcm_hw_params_t *params) \
8045 if (INTERNAL(name)(params, &val) < 0) \
8050 #define __P_OLD_GET1(pfx, name, val_type, ret_type) \
8051 EXPORT_SYMBOL ret_type pfx##name(const snd_pcm_hw_params_t *params, int *dir) \
8054 if (INTERNAL(name)(params, &val, dir) < 0) \
8059 #define __OLD_GET(name, val_type, ret_type) __P_OLD_GET(__old_, name, val_type, ret_type)
8060 #define __OLD_GET1(name, val_type, ret_type) __P_OLD_GET1(__old_, name, val_type, ret_type)
8092 #define __P_OLD_NEAR(pfx, name, ret_type) \
8093 EXPORT_SYMBOL ret_type pfx##name(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, ret_type val) \
8095 if (INTERNAL(name)(pcm, params, &val) < 0) \
8100 #define __P_OLD_NEAR1(pfx, name, ret_type) \
8101 EXPORT_SYMBOL ret_type pfx##name(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, ret_type val, int *dir) \
8103 if (INTERNAL(name)(pcm, params, &val, dir) < 0) \
8108 #define __OLD_NEAR(name, ret_type) __P_OLD_NEAR(__old_, name, ret_type)
8109 #define __OLD_NEAR1(name, ret_type) __P_OLD_NEAR1(__old_, name, ret_type)
8120 #define __P_OLD_SET_FL(pfx, name, ret_type) \
8121 EXPORT_SYMBOL ret_type pfx##name(snd_pcm_t *pcm, snd_pcm_hw_params_t *params) \
8124 if (INTERNAL(name)(pcm, params, &val) < 0) \
8129 #define __P_OLD_SET_FL1(pfx, name, ret_type) \
8130 EXPORT_SYMBOL ret_type pfx##name(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir) \
8133 if (INTERNAL(name)(pcm, params, &val, dir) < 0) \
8138 #define __OLD_SET_FL(name, ret_type) __P_OLD_SET_FL(__old_, name, ret_type)
8139 #define __OLD_SET_FL1(name, ret_type) __P_OLD_SET_FL1(__old_, name, ret_type)
8165 #define __P_OLD_GET_SW(pfx, name, ret_type) \
8166 EXPORT_SYMBOL ret_type pfx##name(snd_pcm_sw_params_t *params) \
8169 if (INTERNAL(name)(params, &val) < 0) \
8174 #define __OLD_GET_SW(name, ret_type) __P_OLD_GET_SW(__old_, name, ret_type)
8351 * \!brief Get a name string for a channel map type as query results
8384 * \!brief Get a name string for a standard channel map position
8437 * \!brief Get a longer name string for a standard channel map position
8470 const char *name = chmap_names[p];
8471 if (name)
8473 "%s", name);