Home
last modified time | relevance | path

Searched refs:card (Results 1 – 25 of 416) sorted by relevance

12345678910>>...17

/third_party/alsa-utils/alsamixer/
Dcard_select.c36 struct card { struct
37 struct card *next; argument
44 static struct card first_card; argument
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_card; in close_card_select_list() local
90 for (card = first_card.next; card; card = next_card) { in close_card_select_list()
91 next_card = card->next; in close_card_select_list()
92 free(card->indexstr); in close_card_select_list()
[all …]
/third_party/pulseaudio/src/modules/
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()
74 if (pa_safe_streq(card->active_profile->name, "off")) in profile_good_for_output()
77 if (!pa_safe_streq(card->active_profile->input_name, profile->input_name)) in profile_good_for_output()
[all …]
Dmodule-card-restore.c148 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->preferred_output_port->name); in entry_from_card()
166 PA_HASHMAP_FOREACH(port, card->ports, state) { in entry_from_card()
[all …]
Dudev-util.c168 struct udev_device *card = NULL; in pa_udev_get_info() local
182 card = udev_device_new_from_syspath(udev, t); in pa_udev_get_info()
185 if (!card) { 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_BUS")) && *v) in pa_udev_get_info()
208 if ((id = read_id(card, "ID_VENDOR_ID")) > 0) in pa_udev_get_info()
212 if ((v = udev_device_get_property_value(card, "ID_VENDOR_FROM_DATABASE")) && *v) in pa_udev_get_info()
[all …]
/third_party/alsa-lib/src/control/
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()
83 int snd_card_load(int card) in snd_card_load() argument
85 return !!(snd_card_load1(card) >= 0); in snd_card_load()
110 int card; in snd_card_next() local
114 card = *rcard; in snd_card_next()
115 card = card < 0 ? 0 : card + 1; in snd_card_next()
116 for (; card < SND_MAX_CARDS; card++) { in snd_card_next()
[all …]
Dnamehint.c40 int card; member
262 if (list->card >= 0 && list->device >= 0) in try_config()
264 else if (list->card >= 0) in try_config()
313 if (list->card < 0 && in try_config()
397 str = list->card >= 0 ? get_dev_name(list) : NULL; in try_config()
446 static int add_card(snd_config_t *config, snd_config_t *rw_config, struct hint_list *list, int card) in add_card() argument
460 sprintf(ctl_name, "hw:%i", card); in add_card()
473 list->card = card; in add_card()
501 list->card = card; in add_card()
514 static int get_card_name(struct hint_list *list, int card) in get_card_name() argument
[all …]
/third_party/pulseaudio/src/modules/bluetooth/
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… 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->connecting) in card_connect()
[all …]
Dmodule-bluetooth-policy.c144 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()
172 pa_hashmap_put(u->will_need_revert_card_map, card, PA_INT_TO_PTR(1)); in card_set_profile()
179 static void switch_profile(pa_card *card, bool revert_to_a2dp, void *userdata) { in switch_profile() argument
184 s = pa_proplist_gets(card->proplist, PA_PROP_DEVICE_BUS); in switch_profile()
190 if (!pa_hashmap_remove(u->will_need_revert_card_map, card)) in switch_profile()
194 …if (!pa_streq(card->active_profile->name, "headset_head_unit") && !pa_streq(card->active_profile->… in switch_profile()
198 if (pa_streq(card->active_profile->name, "a2dp_sink")) in switch_profile()
[all …]
/third_party/alsa-utils/alsactl/
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 = calloc(1, sizeof(*card)); in add_card()
108 if (card == NULL) in add_card()
110 card->index = index; in add_card()
112 if (snd_ctl_open(&card->handle, device, SND_CTL_READONLY|SND_CTL_NONBLOCK) < 0) { in add_card()
[all …]
/third_party/alsa-lib/src/conf/
Dalsa.conf105 defaults.ctl.card 0
106 defaults.pcm.card 0
120 defaults.pcm.dmix.card defaults.pcm.card
122 defaults.pcm.dsnoop.card defaults.pcm.card
124 defaults.pcm.front.card defaults.pcm.card
126 defaults.pcm.rear.card defaults.pcm.card
128 defaults.pcm.center_lfe.card defaults.pcm.card
130 defaults.pcm.side.card defaults.pcm.card
132 defaults.pcm.surround21.card defaults.pcm.card
134 defaults.pcm.surround40.card defaults.pcm.card
[all …]
/third_party/alsa-lib/src/conf/cards/
DUSB-Audio.conf104 card $CARD
127 card $CARD
132 card $CARD
150 card $CARD
185 { @func card_name card $CARD }
193 card $CARD
206 { @func card_name card $CARD }
226 { @func card_name card $CARD }
257 card $CARD
271 { @func card_name card $CARD }
[all …]
DCMI8738-MC8.conf15 card $CARD
19 card $CARD
40 card $CARD
64 card $CARD
69 card $CARD
85 card $CARD
103 card $CARD
123 card $CARD
141 card $CARD
157 card $CARD
[all …]
DNFORCE.conf15 card $CARD
19 card $CARD
40 card $CARD
65 card $CARD
97 card $CARD
124 card $CARD
171 card $CARD
197 card $CARD
244 card $CARD
270 card $CARD
DAureon71.conf36 card $CARD
47 card $CARD
59 card $CARD
72 card $CARD
85 card $CARD
100 card $CARD
112 card $CARD
141 card $CARD
173 card $CARD
DICE1724.conf36 card $CARD
47 card $CARD
60 card $CARD
72 card $CARD
93 card $CARD
119 card $CARD
144 card $CARD
175 card $CARD
207 card $CARD
DICH.conf15 card $CARD
19 card $CARD
40 card $CARD
65 card $CARD
97 card $CARD
124 card $CARD
171 card $CARD
197 card $CARD
/third_party/pulseaudio/src/pulsecore/
Dcard.c87 …pa_assert(c->card); /* Modify member variable directly during creation instead of using this funct… 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()
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 = c; in pa_card_new()
189 port->card = c; in pa_card_new()
209 void pa_card_choose_initial_profile(pa_card *card) { in pa_card_choose_initial_profile() argument
214 pa_assert(card); in pa_card_choose_initial_profile()
220 pa_log_debug("Looking for initial profile for card %s", card->name); in pa_card_choose_initial_profile()
[all …]
/third_party/pulseaudio/src/modules/dbus/
Diface-card.c54 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 …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->module); in handle_get_owner_module()
201 *n = pa_idxset_size(c->card->sinks); in get_sinks()
208 PA_IDXSET_FOREACH(sink, c->card->sinks, idx) { in get_sinks()
242 *n = pa_idxset_size(c->card->sources); in get_sources()
[all …]
/third_party/alsa-lib/src/
Dconfmisc.c626 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 >= 0 && card <= SND_MAX_CARDS); in snd_determine_driver()
760 err = open_ctl(card, &ctl); in snd_determine_driver()
762 SNDERR("could not open control for card %i", card); in snd_determine_driver()
807 long card; in snd_func_private_card_driver() local
814 err = snd_config_get_integer(private_data, &card); in snd_func_private_card_driver()
819 if ((err = snd_determine_driver(card, &driver)) < 0) in snd_func_private_card_driver()
836 int card, err; in parse_card() local
[all …]
/third_party/alsa-lib/alsalisp/
Dhctl.lisp1 (setq card (Acall 'card_next -1))
2 (setq card (Aresult card))
3 (while (>= card 0)
5 (princ "found card: " card "\n")
6 (princ " name : " (Aresult (Acall 'card_get_name card)) "\n")
7 (princ " longname: " (Aresult (Acall 'card_get_longname card)) "\n")
8 (setq card (Acall 'card_next card))
9 (setq card (Aresult card))
12 (unsetq card)
/third_party/ltp/testcases/kernel/security/mmc_security/
DREADME11 the card or assigning a new password to an unlocked card.
12 - change_password.sh: used to change the password from a unlocked card.
13 - forced_erase.sh: used to force-erase a card, usually when the user has forgot
14 the password and wants to unlock the card. NOTE: all the card's contents are
16 - remove_password.sh: used to remove the passwor from a card previously unlocked.
34 1) Unlocking a card:
38 2) Assigning a password to an unlocked card:
42 3) Changing the password (card must be unlocked first):
46 4) Removing the password (card must be unlocked first):
50 5) Force erase card (card must be LOCKED):
/third_party/pulseaudio/src/modules/alsa/
Dmodule-alsa-card.c126 pa_card *card; member
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, am); in init_profile()
330 port = pa_hashmap_get(u->card->ports, jack->name); in calc_port_state()
397 if (u->card->suspend_cause & PA_SUSPEND_SESSION) in report_jack_state()
487 if (u->card->active_profile) in report_jack_state()
488 active_available = u->card->active_profile->available; in report_jack_state()
489 PA_HASHMAP_FOREACH(profile, u->card->profiles, state) { in report_jack_state()
[all …]
/third_party/alsa-utils/alsaucm/
Dusecase.c178 if (context->card) in my_exit()
179 free(context->card); in my_exit()
188 int card, err; in do_initial_open() local
191 if (!context->no_open && context->card == NULL) { in do_initial_open()
192 card = -1; in do_initial_open()
193 err = snd_card_next(&card); in do_initial_open()
199 snprintf(name, sizeof(name), "hw:%d", card); in do_initial_open()
200 context->card = strdup(name); in do_initial_open()
206 context->card); in do_initial_open()
210 context->command, context->card, snd_strerror(err)); in do_initial_open()
[all …]
/third_party/alsa-utils/amixer/
Damixer.c46 static char card[64] = "default"; variable
65 printf(" -D,--device N select the device, default '%s'\n", card); in help()
100 if ((err = snd_ctl_open(&handle, card, 0)) < 0) { in info()
101 error("Control device %s open error: %s", card, snd_strerror(err)); in info()
106 error("Control device %s hw info error: %s", card, snd_strerror(err)); in info()
109 printf("Card %s '%s'/'%s'\n", card, snd_ctl_card_info_get_id(info), in info()
123 if (smixer_level == 0 && (err = snd_mixer_attach(mhandle, card)) < 0) { in info()
124 error("Mixer attach %s error: %s", card, snd_strerror(err)); in info()
135 error("Mixer load %s error: %s", card, snd_strerror(err)); in info()
613 error("Control %s snd_hctl_elem_info error: %s\n", card, snd_strerror(err)); in show_control()
[all …]
/third_party/alsa-lib/src/hwdep/
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
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, device, mode); in _snd_hwdep_hw_open()

12345678910>>...17