• Home
  • Raw
  • Download

Lines Matching refs:u

167 		phr->u.s.adapter_index = adapters.adapter[index].index;  in subsys_get_adapter()
168 phr->u.s.adapter_type = adapters.adapter[index].type; in subsys_get_adapter()
170 phr->u.s.adapter_index = 0; in subsys_get_adapter()
171 phr->u.s.adapter_type = 0; in subsys_get_adapter()
322 switch (pC->u.i.control_type) { in hpi_check_control_cache_single()
325 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
326 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache_single()
327 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache_single()
328 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
329 if (pC->u.meter.an_logRMS[0] == in hpi_check_control_cache_single()
333 phr->u.c.an_log_value[0] = HPI_METER_MINIMUM; in hpi_check_control_cache_single()
334 phr->u.c.an_log_value[1] = HPI_METER_MINIMUM; in hpi_check_control_cache_single()
336 phr->u.c.an_log_value[0] = in hpi_check_control_cache_single()
337 pC->u.meter.an_logRMS[0]; in hpi_check_control_cache_single()
338 phr->u.c.an_log_value[1] = in hpi_check_control_cache_single()
339 pC->u.meter.an_logRMS[1]; in hpi_check_control_cache_single()
345 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
346 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache_single()
347 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache_single()
348 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single()
349 if (pC->u.vol.flags & HPI_VOLUME_FLAG_HAS_MUTE) { in hpi_check_control_cache_single()
350 if (pC->u.vol.flags & HPI_VOLUME_FLAG_MUTED) in hpi_check_control_cache_single()
351 phr->u.c.param1 = in hpi_check_control_cache_single()
354 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
358 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
365 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single()
366 phr->u.c.param1 = pC->u.mux.source_node_type; in hpi_check_control_cache_single()
367 phr->u.c.param2 = pC->u.mux.source_node_index; in hpi_check_control_cache_single()
373 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single()
374 phr->u.c.param1 = pC->u.mode.mode; in hpi_check_control_cache_single()
379 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single()
380 phr->u.c.an_log_value[0] = pC->u.level.an_log[0]; in hpi_check_control_cache_single()
381 phr->u.c.an_log_value[1] = pC->u.level.an_log[1]; in hpi_check_control_cache_single()
386 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single()
387 phr->u.c.param1 = pC->u.tuner.freq_ink_hz; in hpi_check_control_cache_single()
388 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single()
389 phr->u.c.param1 = pC->u.tuner.band; in hpi_check_control_cache_single()
390 else if (phm->u.c.attribute == HPI_TUNER_LEVEL_AVG) in hpi_check_control_cache_single()
391 if (pC->u.tuner.s_level_avg == in hpi_check_control_cache_single()
393 phr->u.cu.tuner.s_level = 0; in hpi_check_control_cache_single()
397 phr->u.cu.tuner.s_level = in hpi_check_control_cache_single()
398 pC->u.tuner.s_level_avg; in hpi_check_control_cache_single()
403 if (phm->u.c.attribute == HPI_AESEBURX_ERRORSTATUS) in hpi_check_control_cache_single()
404 phr->u.c.param1 = pC->u.aes3rx.error_status; in hpi_check_control_cache_single()
405 else if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) in hpi_check_control_cache_single()
406 phr->u.c.param1 = pC->u.aes3rx.format; in hpi_check_control_cache_single()
411 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_check_control_cache_single()
412 phr->u.c.param1 = pC->u.aes3tx.format; in hpi_check_control_cache_single()
417 if (phm->u.c.attribute == HPI_TONEDETECTOR_STATE) in hpi_check_control_cache_single()
418 phr->u.c.param1 = pC->u.tone.state; in hpi_check_control_cache_single()
423 if (phm->u.c.attribute == HPI_SILENCEDETECTOR_STATE) { in hpi_check_control_cache_single()
424 phr->u.c.param1 = pC->u.silence.state; in hpi_check_control_cache_single()
429 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER) in hpi_check_control_cache_single()
430 phr->u.c.param1 = pC->u.microphone.phantom_state; in hpi_check_control_cache_single()
435 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) in hpi_check_control_cache_single()
436 phr->u.c.param1 = pC->u.clk.source; in hpi_check_control_cache_single()
437 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) { in hpi_check_control_cache_single()
438 if (pC->u.clk.source_index == in hpi_check_control_cache_single()
440 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
444 phr->u.c.param1 = pC->u.clk.source_index; in hpi_check_control_cache_single()
445 } else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE) in hpi_check_control_cache_single()
446 phr->u.c.param1 = pC->u.clk.sample_rate; in hpi_check_control_cache_single()
455 HPI_CTL_ATTR_INDEX(phm->u.c. in hpi_check_control_cache_single()
462 if (phm->u.c.attribute == HPI_PAD_PROGRAM_ID) in hpi_check_control_cache_single()
463 phr->u.c.param1 = p_pad->pI; in hpi_check_control_cache_single()
464 else if (phm->u.c.attribute == HPI_PAD_PROGRAM_TYPE) in hpi_check_control_cache_single()
465 phr->u.c.param1 = p_pad->pTY; in hpi_check_control_cache_single()
468 HPI_CTL_ATTR_INDEX(phm->u.c. in hpi_check_control_cache_single()
470 unsigned int offset = phm->u.c.param1; in hpi_check_control_cache_single()
497 if (tocopy > sizeof(phr->u.cu.chars8.sz_data)) in hpi_check_control_cache_single()
498 tocopy = sizeof(phr->u.cu.chars8. in hpi_check_control_cache_single()
501 memcpy(phr->u.cu.chars8.sz_data, in hpi_check_control_cache_single()
504 phr->u.cu.chars8.remaining_chars = in hpi_check_control_cache_single()
516 pC->u.i.control_index, pC->u.i.control_type, in hpi_check_control_cache_single()
517 phm->u.c.attribute); in hpi_check_control_cache_single()
558 switch (pC->u.i.control_type) { in hpi_cmn_control_cache_sync_to_msg_single()
560 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single()
561 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
562 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
563 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_cmn_control_cache_sync_to_msg_single()
564 if (phm->u.c.param1) in hpi_cmn_control_cache_sync_to_msg_single()
565 pC->u.vol.flags |= HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg_single()
567 pC->u.vol.flags &= ~HPI_VOLUME_FLAG_MUTED; in hpi_cmn_control_cache_sync_to_msg_single()
572 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_cmn_control_cache_sync_to_msg_single()
573 pC->u.mux.source_node_type = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
574 pC->u.mux.source_node_index = (u16)phm->u.c.param2; in hpi_cmn_control_cache_sync_to_msg_single()
579 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_cmn_control_cache_sync_to_msg_single()
580 pC->u.mode.mode = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
583 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single()
584 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
585 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
589 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER) in hpi_cmn_control_cache_sync_to_msg_single()
590 pC->u.microphone.phantom_state = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
593 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_cmn_control_cache_sync_to_msg_single()
594 pC->u.aes3tx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
597 if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) in hpi_cmn_control_cache_sync_to_msg_single()
598 pC->u.aes3rx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
601 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) in hpi_cmn_control_cache_sync_to_msg_single()
602 pC->u.clk.source = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
603 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) in hpi_cmn_control_cache_sync_to_msg_single()
604 pC->u.clk.source_index = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
605 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE) in hpi_cmn_control_cache_sync_to_msg_single()
606 pC->u.clk.sample_rate = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
688 phr->u.s.num_adapters = adapters.gw_num_adapters; in subsys_message()