Home | History | Annotate | Download | only in hdmi

Lines Matching refs:adev

226     struct audio_device *adev = out->dev;
230 if ((adev->card < 0) || (adev->device < 0)){
233 adev->card = DEFAULT_CARD;
234 adev->device = DEFAULT_DEVICE;
235 ALOGV("%s : Setting default card/ device %d,%d",__func__,adev->card,adev->device);
257 adev->card = get_card_number_by_name("IntelHDMI");
258 ALOGD("%s: HDMI card number = %d, device = %d",__func__,adev->card,adev->device);
260 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &out->pcm_config);
379 struct audio_device *adev = out->dev;
387 pthread_mutex_lock(&adev->lock);
391 pthread_mutex_unlock(&adev->lock);
397 adev->card = atoi(value);
401 adev->device = atoi(value);
403 pthread_mutex_unlock(&adev->lock);
473 struct audio_device *adev = out->dev;
476 adev->sink_sup_channels = parse_channel_map();
478 if(adev->sink_sup_channels == 8) {
479 adev->sup_channel_masks[0] = AUDIO_CHANNEL_OUT_5POINT1;
480 adev->sup_channel_masks[1] = AUDIO_CHANNEL_OUT_7POINT1;
482 else if((adev->sink_sup_channels == 6) || (adev->sink_sup_channels > 2)) {
483 adev->sup_channel_masks[0] = AUDIO_CHANNEL_OUT_5POINT1;
486 adev->sup_channel_masks[0] = AUDIO_CHANNEL_OUT_STEREO;
489 ALOGV("%s sink supports 0x%x max channels", __func__,adev->sink_sup_channels);
496 struct audio_device *adev = out->dev;
517 if (channel_list_table[j].value == adev->sup_channel_masks[i]) {
684 struct audio_device *adev = (struct audio_device *)dev;
694 out->dev = adev;
696 adev->sup_channel_masks[0] = AUDIO_CHANNEL_OUT_STEREO;
748 adev->card = -1;
749 adev->device = -1;
916 struct audio_device *adev;
923 adev = calloc(1, sizeof(struct audio_device));
924 if (!adev)
927 adev->hw_device.common.tag = HARDWARE_DEVICE_TAG;
928 adev->hw_device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
929 adev->hw_device.common.module = (struct hw_module_t *) module;
930 adev->hw_device.common.close = adev_close;
932 adev->hw_device.init_check = adev_init_check;
933 adev->hw_device.set_voice_volume = adev_set_voice_volume;
934 adev->hw_device.set_master_volume = adev_set_master_volume;
935 adev->hw_device.set_mode = adev_set_mode;
936 adev->hw_device.set_mic_mute = adev_set_mic_mute;
937 adev->hw_device.get_mic_mute = adev_get_mic_mute;
938 adev->hw_device.set_parameters = adev_set_parameters;
939 adev->hw_device.get_parameters = adev_get_parameters;
940 adev->hw_device.get_input_buffer_size = adev_get_input_buffer_size;
941 adev->hw_device.open_output_stream = adev_open_output_stream;
942 adev->hw_device.close_output_stream = adev_close_output_stream;
943 adev->hw_device.open_input_stream = adev_open_input_stream;
944 adev->hw_device.close_input_stream = adev_close_input_stream;
945 adev->hw_device.dump = adev_dump;
947 *device = &adev->hw_device.common;