Lines Matching refs:codec

377 					hda_codec* codec = controller->codecs[cad];  in hda_interrupt_handler()  local
379 if (codec == NULL) { in hda_interrupt_handler()
389 codec->unsol_responses[codec->unsol_response_write++] = in hda_interrupt_handler()
391 codec->unsol_response_write %= MAX_CODEC_UNSOL_RESPONSES; in hda_interrupt_handler()
392 release_sem_etc(codec->unsol_response_sem, 1, in hda_interrupt_handler()
397 if (codec->response_count >= MAX_CODEC_RESPONSES) { in hda_interrupt_handler()
405 codec->responses[codec->response_count++] = response; in hda_interrupt_handler()
406 release_sem_etc(codec->response_sem, 1, B_DO_NOT_RESCHEDULE); in hda_interrupt_handler()
705 hda_controller* controller = audioGroup->codec->controller; in hda_stream_new()
994 hda_codec* codec = audioGroup->codec; in hda_stream_setup_buffers() local
998 verb[0] = MAKE_VERB(codec->addr, stream->io_widgets[i], in hda_stream_setup_buffers()
1005 verb[1] = MAKE_VERB(codec->addr, stream->io_widgets[i], in hda_stream_setup_buffers()
1009 hda_send_verbs(codec, verb, response, 2); in hda_stream_setup_buffers()
1016 verb[0] = MAKE_VERB(codec->addr, stream->io_widgets[i], in hda_stream_setup_buffers()
1018 hda_send_verbs(codec, verb, response, 1); in hda_stream_setup_buffers()
1032 hda_send_verbs(hda_codec* codec, corb_t* verbs, uint32* responses, uint32 count) in hda_send_verbs() argument
1034 hda_controller* controller = codec->controller; in hda_send_verbs()
1037 codec->response_count = 0; in hda_send_verbs()
1055 controller->pci_info.function, codec->addr, controller->corb[writePos]); in hda_send_verbs()
1061 status_t status = acquire_sem_etc(codec->response_sem, queued, in hda_send_verbs()
1070 controller->pci_info.function, codec->addr, codec->responses[0]); in hda_send_verbs()
1072 memcpy(responses, codec->responses, count * sizeof(uint32)); in hda_send_verbs()
1080 hda_verb_write(hda_codec* codec, uint32 nid, uint32 vid, uint16 payload) in hda_verb_write() argument
1082 corb_t verb = MAKE_VERB(codec->addr, nid, vid, payload); in hda_verb_write()
1083 return hda_send_verbs(codec, &verb, NULL, 1); in hda_verb_write()
1088 hda_verb_read(hda_codec* codec, uint32 nid, uint32 vid, uint32* response) in hda_verb_read() argument
1090 corb_t verb = MAKE_VERB(codec->addr, nid, vid, 0); in hda_verb_read()
1091 return hda_send_verbs(codec, &verb, response, 1); in hda_verb_read()
1373 corb_t verb = MAKE_VERB(audioGroup->codec->addr, audioGroup->widget.node_id, in hda_hw_stop()
1375 hda_send_verbs(audioGroup->codec, &verb, NULL, 1); in hda_hw_stop()