Lines Matching refs:card

220 static bool parse_card_device_params(const char *kvpairs, int *card, int *device)  in parse_card_device_params()  argument
227 *card = -1; in parse_card_device_params()
232 *card = atoi(value); in parse_card_device_params()
242 return *card >= 0 && *device >= 0; in parse_card_device_params()
247 if (profile->card < 0 || profile->device < 0) { in device_get_parameters()
377 int card = -1; in out_set_parameters() local
380 if (!parse_card_device_params(kvpairs, &card, &device)) { in out_set_parameters()
389 if (!profile_is_cached_for(out->profile, card, device)) { in out_set_parameters()
394 int saved_card = out->profile->card; in out_set_parameters()
396 out->adev->out_profile.card = card; in out_set_parameters()
400 out->adev->out_profile.card = saved_card; in out_set_parameters()
439 ALOGV("start_output_stream(card:%d device:%d)", out->profile->card, out->profile->device); in start_output_stream()
584 parse_card_device_params(address, &out->adev->out_profile.card, &out->adev->out_profile.device); in adev_open_output_stream()
675 ALOGV("adev_close_output_stream(c:%d d:%d)", out->profile->card, out->profile->device); in adev_close_output_stream()
781 int card = -1; in in_set_parameters() local
784 if (!parse_card_device_params(kvpairs, &card, &device)) { in in_set_parameters()
792 if (card >= 0 && device >= 0 && !profile_is_cached_for(in->profile, card, device)) { in in_set_parameters()
797 int saved_card = in->profile->card; in in_set_parameters()
799 in->adev->in_profile.card = card; in in_set_parameters()
803 in->adev->in_profile.card = saved_card; in in_set_parameters()
848 ALOGV("start_input_stream(card:%d device:%d)", in->profile->card, in->profile->device); in start_input_stream()
945 int32_t card, device; in adev_open_input_stream() local
946 if (!parse_card_device_params(address, &card, &device)) { in adev_open_input_stream()
989 if (!profile_is_cached_for(in->profile, card, device)) { in adev_open_input_stream()
991 __func__, card, device); in adev_open_input_stream()
996 in->adev->in_profile.card = card; in adev_open_input_stream()
1124 ALOGV("adev_close_input_stream(c:%d d:%d)", in->profile->card, in->profile->device); in adev_close_input_stream()