Lines Matching defs:card

140  * Extract the card and device numbers from the supplied key/value pairs.
141 * kvpairs A null-terminated string containing the key/value pairs or card and device.
142 * i.e. "card=1;device=42"
143 * card A pointer to a variable to receive the parsed-out card number.
145 * NOTE: The variables pointed to by card and device return -1 (undefined) if the
147 * Return true if the kvpairs string contain a card/device spec, false otherwise.
149 static bool parse_card_device_params(const char *kvpairs, int *card, int *device)
156 *card = -1;
159 param_val = str_parms_get_str(parms, "card", value, sizeof(value));
161 *card = atoi(value);
171 return *card >= 0 && *device >= 0;
176 if (profile->card < 0 || profile->device < 0) {
313 int card = -1;
316 if (!parse_card_device_params(kvpairs, &card, &device)) {
325 if (!profile_is_cached_for(out->profile, card, device)) {
330 int saved_card = out->profile->card;
332 out->profile->card = card;
336 out->profile->card = saved_card;
376 ALOGV("start_output_stream(card:%d device:%d)", out->profile->card, out->profile->device);
522 /* Pull out the card/device pair */
523 parse_card_device_params(address, &(out->profile->card), &(out->profile->device));
609 ALOGV("adev_close_output_stream(c:%d d:%d)", out->profile->card, out->profile->device);
707 int card = -1;
710 if (!parse_card_device_params(kvpairs, &card, &device)) {
718 if (card >= 0 && device >= 0 && !profile_is_cached_for(in->profile, card, device)) {
723 int saved_card = in->profile->card;
725 in->profile->card = card;
729 in->profile->card = saved_card;
774 ALOGV("start_input_stream(card:%d device:%d)", in->profile->card, in->profile->device);
908 /* Pull out the card/device pair */
909 parse_card_device_params(address, &(in->profile->card), &(in->profile->device));