Lines Matching full:card
200 * Extract the card and device numbers from the supplied key/value pairs.
201 * kvpairs A null-terminated string containing the key/value pairs or card and device.
202 * i.e. "card=1;device=42"
203 * card A pointer to a variable to receive the parsed-out card number.
205 * NOTE: The variables pointed to by card and device return -1 (undefined) if the
207 * Return true if the kvpairs string contain a card/device spec, false otherwise.
209 static bool parse_card_device_params(const char *kvpairs, int *card, int *device)
216 *card = -1;
219 param_val = str_parms_get_str(parms, "card", value, sizeof(value));
221 *card = atoi(value);
231 return *card >= 0 && *device >= 0;
236 if (profile->card < 0 || profile->device < 0) {
367 int card = -1;
370 if (!parse_card_device_params(kvpairs, &card, &device)) {
379 if (!profile_is_cached_for(out->profile, card, device)) {
384 int saved_card = out->profile->card;
386 out->profile->card = card;
390 out->profile->card = saved_card;
429 ALOGV("start_output_stream(card:%d device:%d)", out->profile->card, out->profile->device);
573 /* Pull out the card/device pair */
574 parse_card_device_params(address, &(out->profile->card), &(out->profile->device));
668 ALOGV("adev_close_output_stream(c:%d d:%d)", out->profile->card, out->profile->device);
777 int card = -1;
780 if (!parse_card_device_params(kvpairs, &card, &device)) {
788 if (card >= 0 && device >= 0 && !profile_is_cached_for(in->profile, card, device)) {
793 int saved_card = in->profile->card;
795 in->profile->card = card;
799 in->profile->card = saved_card;
844 ALOGV("start_input_stream(card:%d device:%d)", in->profile->card, in->profile->device);
977 /* Pull out the card/device pair */
978 parse_card_device_params(address, &(in->profile->card), &(in->profile->device));
1081 ALOGV("adev_close_input_stream(c:%d d:%d)", in->profile->card, in->profile->device);