Home
last modified time | relevance | path

Searched refs:card (Results 1 - 25 of 120) sorted by relevance

12345

/third_party/alsa-utils/alsamixer/
H A Dcard_select.c2 * card_select.c - select a card by list or device name
36 struct card { struct
37 struct card *next;
44 static struct card first_card;
53 struct card *card = item_userptr(item); in on_key_enter() local
54 if (card->device_name) { in on_key_enter()
55 if (select_card_by_name(card->device_name)) in on_key_enter()
83 struct card *card, *next_car in close_card_select_list() local
112 struct card *card, *prev_card; get_cards() local
161 struct card *card; create_list_items() local
[all...]
/third_party/alsa-lib/src/control/
H A Dcards.c55 return info.card; in snd_card_load2()
61 static int snd_card_load1(int card) in snd_card_load1() argument
66 sprintf(control, SND_FILE_CONTROL, card); in snd_card_load1()
71 sprintf(aload, SND_FILE_LOAD, card); in snd_card_load1()
79 * \brief Try to load the driver for a card.
80 * \param card Card index.
83 int snd_card_load(int card) in snd_card_load() argument
85 return !!(snd_card_load1(card) >= 0); in snd_card_load()
91 * This function takes the index of a physical sound card and sets it to the
92 * index of the next card
110 int card; snd_card_next() local
142 int card, err; snd_card_get_index() local
192 snd_card_get_name(int card, char **name) snd_card_get_name() argument
222 snd_card_get_longname(int card, char **name) snd_card_get_longname() argument
[all...]
H A Dnamehint.c41 int card; member
263 if (list->card >= 0 && list->device >= 0) in try_config()
265 else if (list->card >= 0) in try_config()
314 if (list->card < 0 && in try_config()
398 str = list->card >= 0 ? get_dev_name(list) : NULL; in try_config()
447 static int add_card(snd_config_t *config, snd_config_t *rw_config, struct hint_list *list, int card) in add_card() argument
461 sprintf(ctl_name, "hw:%i", card); in add_card()
474 list->card = card; in add_card()
502 list->card in add_card()
515 get_card_name(struct hint_list *list, int card) get_card_name() argument
583 snd_device_name_hint(int card, const char *iface, void ***hints) snd_device_name_hint() argument
[all...]
H A Dcontrol_hw.c53 int card; member
421 * \param card Number of card
428 int snd_ctl_hw_open(snd_ctl_t **handle, const char *name, int card, int mode) in snd_ctl_hw_open() argument
439 if (CHECK_SANITY(card < 0 || card >= SND_MAX_CARDS)) { in snd_ctl_hw_open()
440 SNDMSG("Invalid card index %d", card); in snd_ctl_hw_open()
443 sprintf(filename, SNDRV_FILE_CONTROL, card); in snd_ctl_hw_open()
454 snd_card_load(card); in snd_ctl_hw_open()
527 long card = -1; _snd_ctl_hw_open() local
[all...]
/third_party/pulseaudio/src/modules/
H A Dmodule-switch-on-port-available.c37 pa_card *card; member
49 static void card_info_new(struct userdata *u, pa_card *card) { in card_info_new() argument
54 info->card = card; in card_info_new()
55 info->active_profile = card->active_profile; in card_info_new()
57 pa_hashmap_put(u->card_infos, card, info); in card_info_new()
61 pa_hashmap_remove(info->userdata->card_infos, info->card); in card_info_free()
66 pa_card *card; in profile_good_for_output() local
72 card = profile->card; in profile_good_for_output()
101 pa_card *card; profile_good_for_input() local
213 pa_card *card; find_port_pointers() local
369 find_best_profile(pa_card *card) find_best_profile() argument
388 pa_card *card; card_profile_available_hook_callback() local
412 pa_card *card; handle_all_unavailable() local
470 card_put_hook_callback(pa_core *core, pa_card *card, struct userdata *u) card_put_hook_callback() argument
476 card_unlink_hook_callback(pa_core *core, pa_card *card, struct userdata *u) card_unlink_hook_callback() argument
482 update_preferred_input_port(pa_card *card, pa_card_profile *old_profile, pa_card_profile *new_profile) update_preferred_input_port() argument
518 update_preferred_output_port(pa_card *card, pa_card_profile *old_profile, pa_card_profile *new_profile) update_preferred_output_port() argument
554 card_profile_changed_callback(pa_core *core, pa_card *card, struct userdata *u) card_profile_changed_callback() argument
595 pa_card *card; pa__init() local
[all...]
H A Dmodule-card-restore.c42 #include <pulsecore/card.h>
148 static struct entry *entry_from_card(pa_card *card) { in entry_from_card() argument
154 pa_assert(card); in entry_from_card()
157 entry->profile_is_sticky = card->profile_is_sticky; in entry_from_card()
158 if (card->save_profile || entry->profile_is_sticky) in entry_from_card()
159 entry->profile = pa_xstrdup(card->active_profile->name); in entry_from_card()
161 if (card->preferred_input_port) in entry_from_card()
162 entry->preferred_input_port = pa_xstrdup(card->preferred_input_port->name); in entry_from_card()
163 if (card->preferred_output_port) in entry_from_card()
164 entry->preferred_output_port = pa_xstrdup(card in entry_from_card()
398 show_full_info(pa_card *card) show_full_info() argument
407 card_put_hook_callback(pa_core *c, pa_card *card, struct userdata *u) card_put_hook_callback() argument
434 update_profile_for_port(struct entry *entry, pa_card *card, pa_device_port *p) update_profile_for_port() argument
452 card_profile_changed_callback(pa_core *c, pa_card *card, struct userdata *u) card_profile_changed_callback() argument
508 pa_card *card; port_offset_change_callback() local
577 card_choose_initial_profile_callback(pa_core *core, pa_card *card, struct userdata *u) card_choose_initial_profile_callback() argument
621 pa_card *card; card_preferred_port_changed_callback() local
[all...]
H A Dudev-util.c168 struct udev_device *card = NULL; in pa_udev_get_info() local
181 t = pa_sprintf_malloc("/sys/class/sound/card%i", card_idx); in pa_udev_get_info()
182 card = udev_device_new_from_syspath(udev, t); in pa_udev_get_info()
185 if (!card) { in pa_udev_get_info()
186 pa_log_error("Failed to get card object."); in pa_udev_get_info()
191 if (((v = udev_device_get_property_value(card, "ID_PATH")) && *v) || in pa_udev_get_info()
192 (v = udev_device_get_devpath(card))) in pa_udev_get_info()
196 if ((v = udev_device_get_devpath(card))) in pa_udev_get_info()
200 if ((v = udev_device_get_property_value(card, "ID_ID")) && *v) in pa_udev_get_info()
204 if ((v = udev_device_get_property_value(card, "ID_BU in pa_udev_get_info()
266 struct udev_device *card = NULL; pa_udev_get_property() local
[all...]
/third_party/pulseaudio/src/modules/bluetooth/
H A Dbackend-ofono.c70 int (*acquire)(struct hf_audio_card *card);
158 static DBusMessage *card_send(struct hf_audio_card *card, const char *method, DBusError *err) in card_send() argument
160 pa_bluetooth_transport *t = card->transport; in card_send()
164 r = dbus_connection_send_with_reply_and_block(pa_dbus_connection_get(card->backend->connection), m, -1, err); in card_send()
170 static int card_connect(struct hf_audio_card *card) { in card_connect() argument
174 if (card->connecting) in card_connect()
177 card->connecting = true; in card_connect()
180 r = card_send(card, "Connect", &err); in card_connect()
184 card->connecting = false; in card_connect()
191 if (card in card_connect()
197 card_acquire(struct hf_audio_card *card) card_acquire() argument
249 device_unlink_cb(pa_bluetooth_discovery *y, const pa_bluetooth_device *d, struct hf_audio_card *card) device_unlink_cb() argument
262 struct hf_audio_card *card = pa_xnew0(struct hf_audio_card, 1); hf_audio_card_new() local
275 hf_audio_card_free(struct hf_audio_card *card) hf_audio_card_free() argument
320 struct hf_audio_card *card = t->userdata; hf_audio_agent_transport_acquire() local
356 struct hf_audio_card *card = t->userdata; hf_audio_agent_transport_release() local
374 struct hf_audio_card *card; hf_audio_agent_card_found() local
440 struct hf_audio_card *card; hf_audio_agent_card_removed() local
681 struct hf_audio_card *card; hf_audio_agent_new_connection() local
[all...]
H A Dmodule-bluetooth-policy.c40 "a2dp_source=<Handle a2dp_source card profile (sink role)?> "
41 "ag=<Handle headset_audio_gateway or handsfree_audio_gateway card profile (headset role)?> ");
144 static void card_set_profile(struct userdata *u, pa_card *card, bool revert_to_a2dp) in card_set_profile() argument
150 PA_HASHMAP_FOREACH(profile, card->profiles, state) { in card_set_profile()
163 pa_log_debug("Setting card '%s' to profile '%s'", card->name, profile->name); in card_set_profile()
165 if (pa_card_set_profile(card, profile, false) != 0) { in card_set_profile()
170 /* When we are not in revert_to_a2dp phase flag this card for will_need_revert */ in card_set_profile()
172 pa_hashmap_put(u->will_need_revert_card_map, card, PA_INT_TO_PTR(1)); in card_set_profile()
178 /* Switch profile for one card */
179 switch_profile(pa_card *card, bool revert_to_a2dp, void *userdata) switch_profile() argument
257 pa_card *card; switch_profile_all() local
292 card_init_profile_hook_callback(pa_core *c, pa_card *card, void *userdata) card_init_profile_hook_callback() argument
320 card_unlink_hook_callback(pa_core *c, pa_card *card, void *userdata) card_unlink_hook_callback() argument
327 find_best_profile(pa_card *card) find_best_profile() argument
346 pa_card *card; profile_available_hook_callback() local
395 pa_card *card; handle_all_profiles() local
[all...]
H A Dmodule-bluez5-device.c101 pa_card *card; member
125 pa_card *card; member
260 pa_assert_se(port = pa_hashmap_get(u->card->ports, u->output_port_name)); in connect_ports()
266 pa_assert_se(port = pa_hashmap_get(u->card->ports, u->input_port_name)); in connect_ports()
1016 data.card = u->card; in add_source()
1255 data.card = u->card; in add_sink()
1763 pa_proplist_sets(u->card->proplist, PA_PROP_BLUETOOTH_CODEC, u->bt_codec->name); in start_thread()
1789 pa_proplist_unset(u->card in stop_thread()
[all...]
/third_party/alsa-utils/alsactl/
H A Ddaemon.c39 struct card { struct
78 static void card_free(struct card **card) in card_free() argument
80 struct card *c = *card; in card_free()
87 *card = NULL; in card_free()
90 static void add_card(struct card ***cards, int *count, const char *cardname) in add_card()
92 struct card *card, **cc; in add_card() local
107 card in add_card()
141 int card = -1; add_cards() local
217 check_lists(struct card *card, snd_ctl_elem_id_t *id) check_lists() argument
239 card_events(struct card *card) card_events() argument
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dcard.c39 #include "card.h"
44 return pa_sprintf_malloc("/card/%s", name); in make_message_handler_path()
87 pa_assert(c->card); /* Modify member variable directly during creation instead of using this function */ in pa_card_profile_set_available()
93 pa_log_debug("Setting card %s profile %s to availability status %s", c->card->name, c->name, in pa_card_profile_set_available()
96 /* Post subscriptions to the card which owns us */ in pa_card_profile_set_available()
97 pa_assert_se(core = c->card->core); in pa_card_profile_set_available()
98 pa_subscription_post(core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, c->card->index); in pa_card_profile_set_available()
100 if (c->card->linked) in pa_card_profile_set_available()
186 profile->card in pa_card_new()
209 pa_card_choose_initial_profile(pa_card *card) pa_card_choose_initial_profile() argument
247 pa_card_put(pa_card *card) pa_card_put() argument
[all...]
H A Dcli-text.c30 #include <pulsecore/card.h>
127 pa_card *card; in pa_card_list_to_string() local
133 pa_strbuf_printf(s, "%u card(s) available.\n", pa_idxset_size(c->cards)); in pa_card_list_to_string()
135 PA_IDXSET_FOREACH(card, c->cards, idx) { in pa_card_list_to_string()
148 card->index, in pa_card_list_to_string()
149 card->name, in pa_card_list_to_string()
150 card->driver); in pa_card_list_to_string()
152 if (card->module) in pa_card_list_to_string()
153 pa_strbuf_printf(s, "\towner module: %u\n", card->module->index); in pa_card_list_to_string()
155 t = pa_proplist_to_string_sep(card in pa_card_list_to_string()
[all...]
H A Ddevice-port.c23 #include <pulsecore/card.h>
104 /* Post subscriptions to the card which owns us */ in pa_device_port_set_available()
105 /* XXX: We need to check p->card, because this function may be called in pa_device_port_set_available()
106 * before the card object has been created. The card object should probably in pa_device_port_set_available()
107 * be created before port objects, and then p->card could be non-NULL for in pa_device_port_set_available()
109 if (p->card && p->card->linked) { in pa_device_port_set_available()
113 pa_subscription_post(p->core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, p->card->index); in pa_device_port_set_available()
149 * the availability change causes the card profil in pa_device_port_set_available()
[all...]
/third_party/pulseaudio/src/modules/dbus/
H A Diface-card.c30 #include "iface-card-profile.h"
32 #include "iface-card.h"
34 #define OBJECT_NAME "card"
54 pa_card *card; member
148 idx = c->card->index; in handle_get_index()
160 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_STRING, &c->card->name); in handle_get_name()
170 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_STRING, &c->card->driver); in handle_get_driver()
181 if (!c->card->module) { in handle_get_owner_module()
182 pa_dbus_send_error(conn, msg, PA_DBUS_ERROR_NO_SUCH_PROPERTY, "Card %s doesn't have an owner module.", c->card->name); in handle_get_owner_module()
186 owner_module = pa_dbusiface_core_get_module_path(c->core, c->card in handle_get_owner_module()
555 pa_dbusiface_card_new(pa_dbusiface_core *core, pa_card *card) pa_dbusiface_card_new() argument
[all...]
/third_party/alsa-lib/src/
H A Dconfmisc.c55 a card number (integers).
59 a card identification. The result is a string.
61 a card's name. The result is a string.
147 * \brief Gets the card number from a configuration node.
149 * \return The card number if successful, otherwise a negative error code.
165 SNDERR("Cannot get card index for %s", str); in snd_config_get_card()
626 static int open_ctl(long card, snd_ctl_t **ctl) in open_ctl() argument
629 snprintf(name, sizeof(name), "hw:%li", card); in open_ctl()
752 int snd_determine_driver(int card, char **driver) in snd_determine_driver() argument
759 assert(card > in snd_determine_driver()
807 long card; snd_func_private_card_driver() local
836 int card, err; parse_card() local
881 int card, err; snd_func_card_inum() local
916 int card, err; snd_func_card_driver() local
955 int card, err; snd_func_card_id() local
1006 int card, err; snd_func_card_name() local
1070 long card, device, subdevice = 0; snd_func_pcm_id() local
1154 int card = -1, dev; snd_func_pcm_args_by_class() local
[all...]
/third_party/pulseaudio/src/modules/alsa/
H A Dmodule-alsa-card.c47 "name=<name for the card/sink/source, to be prefixed> "
48 "card_name=<name for the card> "
49 "card_properties=<properties for the card> "
55 "device_id=<ALSA card index> "
126 pa_card *card; member
250 /* if UCM is available for this card then update the verb */ in card_set_profile()
301 d = PA_CARD_PROFILE_DATA(u->card->active_profile); in init_profile()
305 if (pa_alsa_ucm_set_profile(ucm, u->card, d->profile->name, NULL) < 0) { in init_profile()
313 am->sink = pa_alsa_sink_new(u->module, u->modargs, __FILE__, u->card, am); in init_profile()
317 am->source = pa_alsa_source_new(u->module, u->modargs, __FILE__, u->card, a in init_profile()
769 card_suspend_changed(pa_core *c, pa_card *card, struct userdata *u) card_suspend_changed() argument
[all...]
/third_party/alsa-lib/src/hwdep/
H A Dhwdep_hw.c106 int snd_hwdep_hw_open(snd_hwdep_t **handle, const char *name, int card, int device, int mode) in snd_hwdep_hw_open() argument
115 if (card < 0 || card >= SND_MAX_CARDS) in snd_hwdep_hw_open()
117 sprintf(filename, SNDRV_FILE_HWDEP, card, device); in snd_hwdep_hw_open()
120 snd_card_load(card); in snd_hwdep_hw_open()
153 long card = -1, device = 0; in _snd_hwdep_hw_open() local
162 if (strcmp(id, "card") == 0) { in _snd_hwdep_hw_open()
166 card = err; in _snd_hwdep_hw_open()
178 if (card < 0) in _snd_hwdep_hw_open()
180 return snd_hwdep_hw_open(hwdep, name, card, devic in _snd_hwdep_hw_open()
[all...]
/third_party/alsa-utils/axfer/
H A Dsubcmd-list.c27 printf("card %i: %s [%s], device %i: %s [%s]\n", in dump_device()
89 int card = -1; in list_devices() local
100 if (snd_card_next(&card) < 0 || card < 0) in list_devices()
106 while (card >= 0) { in list_devices()
107 sprintf(name, "hw:%d", card); in list_devices()
111 card, snd_strerror(err)); in list_devices()
116 card, snd_strerror(err)); in list_devices()
130 if (snd_card_next(&card) < 0) { in list_devices()
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/
H A Dtest_VIDIOC_QUERYCAP.c71 dprintf("\tcap = { .driver = \"%s\", .card = \"%s\", " in test_VIDIOC_QUERYCAP()
77 cap.card, in test_VIDIOC_QUERYCAP()
93 CU_ASSERT(0 < strlen((char *)cap.card)); in test_VIDIOC_QUERYCAP()
94 CU_ASSERT(valid_string((char *)cap.card, sizeof(cap.card))); in test_VIDIOC_QUERYCAP()
110 /* Check if the unused bytes of the driver, card and bus_info in test_VIDIOC_QUERYCAP()
118 strncpy((char *)cap2.card, (char *)cap.card, sizeof(cap2.card)); in test_VIDIOC_QUERYCAP()
/third_party/alsa-utils/amidi/
H A Damidi.c113 static void list_device(snd_ctl_t *ctl, int card, int device) in list_device() argument
151 card, device, sub, snd_strerror(err)); in list_device()
160 card, device, name); in list_device()
169 card, device, sub, sub_name); in list_device()
174 static void list_card_devices(int card) in list_card_devices() argument
181 sprintf(name, "hw:%d", card); in list_card_devices()
183 error("cannot open control for card %d: %s", card, snd_strerror(err)); in list_card_devices()
194 list_device(ctl, card, device); in list_card_devices()
201 int card, er in device_list() local
[all...]
/third_party/pulseaudio/src/utils/
H A Dpa-info24 local re='/proc/asound/card([0-9])'
28 done <<< "$(ls --directory /proc/asound/card[0-9])"
33 for card in "${cards[@]}" ; do
34 echo "card=$card"
36 [[ $line != "" ]] && amixer -c$card cget "$line";
37 done <<< "$(amixer -c$card controls | grep Jack)"
/third_party/alsa-utils/amixer/
H A Damixer.c47 static char card[64] = "default"; variable
65 printf(" -c,--card N select the card\n"); in help()
66 printf(" -D,--device N select the device, default '%s'\n", card); in help()
81 printf(" controls show all controls for given card\n"); in help()
82 printf(" contents show contents of all controls for given card\n"); in help()
101 if ((err = snd_ctl_open(&handle, card, 0)) < 0) { in info()
102 error("Control device %s open error: %s", card, snd_strerror(err)); in info()
107 error("Control device %s hw info error: %s", card, snd_strerror(err)); in info()
110 printf("Card %s '%s'/'%s'\n", card, snd_ctl_card_info_get_i in info()
[all...]
/third_party/alsa-lib/src/rawmidi/
H A Drawmidi_hw.c46 int card, device, subdevice; member
316 const char *name, int card, int device, int subdevice, in snd_rawmidi_hw_open()
339 if ((ret = snd_ctl_hw_open(&ctl, NULL, card, 0)) < 0) in snd_rawmidi_hw_open()
342 sprintf(filename, SNDRV_FILE_UMP_RAWMIDI, card, device); in snd_rawmidi_hw_open()
344 sprintf(filename, SNDRV_FILE_RAWMIDI, card, device); in snd_rawmidi_hw_open()
381 snd_card_load(card); in snd_rawmidi_hw_open()
426 hw->card = card; in snd_rawmidi_hw_open()
480 long card = -1, device = 0, subdevice = -1; in _snd_rawmidi_hw_open() local
489 if (strcmp(id, "card") in _snd_rawmidi_hw_open()
315 snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, const char *name, int card, int device, int subdevice, int mode) snd_rawmidi_hw_open() argument
[all...]
/third_party/alsa-lib/src/ucm/
H A Dutils.c80 struct ctl_list *uc_mgr_get_ctl_by_card(snd_use_case_mgr_t *uc_mgr, int card) in uc_mgr_get_ctl_by_card() argument
86 sprintf(cname, "hw:%d", card); in uc_mgr_get_ctl_by_card()
98 int idx2, card; in uc_mgr_get_ctl_by_name() local
114 card = -1; in uc_mgr_get_ctl_by_name()
115 if (snd_card_next(&card) < 0 || card < 0) in uc_mgr_get_ctl_by_name()
118 while (card >= 0) { in uc_mgr_get_ctl_by_name()
119 ctl_list = uc_mgr_get_ctl_by_card(uc_mgr, card); in uc_mgr_get_ctl_by_name()
128 if (snd_card_next(&card) < 0) in uc_mgr_get_ctl_by_name()
199 snd_ctl_t *ctl, int card, in uc_mgr_ctl_add()
197 uc_mgr_ctl_add(snd_use_case_mgr_t *uc_mgr, struct ctl_list **ctl_list, snd_ctl_t *ctl, int card, snd_ctl_card_info_t *info, const char *device, int slave) uc_mgr_ctl_add() argument
269 int err, card, ucm_group, ucm_offset; uc_mgr_open_ctl() local
[all...]

Completed in 18 milliseconds

12345