Lines Matching refs:c
334 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
335 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache_single()
336 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache_single()
337 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
342 phr->u.c.an_log_value[0] = HPI_METER_MINIMUM; in hpi_check_control_cache_single()
343 phr->u.c.an_log_value[1] = HPI_METER_MINIMUM; in hpi_check_control_cache_single()
345 phr->u.c.an_log_value[0] = in hpi_check_control_cache_single()
347 phr->u.c.an_log_value[1] = in hpi_check_control_cache_single()
354 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
355 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache_single()
356 phr->u.c.an_log_value[1] = pC->u.vol.an_log[1]; in hpi_check_control_cache_single()
357 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single()
360 phr->u.c.param1 = in hpi_check_control_cache_single()
363 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
367 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
374 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single()
375 phr->u.c.param1 = pC->u.mux.source_node_type; in hpi_check_control_cache_single()
376 phr->u.c.param2 = pC->u.mux.source_node_index; in hpi_check_control_cache_single()
382 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single()
383 phr->u.c.param1 = pC->u.mode.mode; in hpi_check_control_cache_single()
388 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single()
389 phr->u.c.an_log_value[0] = pC->u.level.an_log[0]; in hpi_check_control_cache_single()
390 phr->u.c.an_log_value[1] = pC->u.level.an_log[1]; in hpi_check_control_cache_single()
395 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single()
396 phr->u.c.param1 = pC->u.tuner.freq_ink_hz; in hpi_check_control_cache_single()
397 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single()
398 phr->u.c.param1 = pC->u.tuner.band; in hpi_check_control_cache_single()
399 else if (phm->u.c.attribute == HPI_TUNER_LEVEL_AVG) in hpi_check_control_cache_single()
412 if (phm->u.c.attribute == HPI_AESEBURX_ERRORSTATUS) in hpi_check_control_cache_single()
413 phr->u.c.param1 = pC->u.aes3rx.error_status; in hpi_check_control_cache_single()
414 else if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) in hpi_check_control_cache_single()
415 phr->u.c.param1 = pC->u.aes3rx.format; in hpi_check_control_cache_single()
420 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_check_control_cache_single()
421 phr->u.c.param1 = pC->u.aes3tx.format; in hpi_check_control_cache_single()
426 if (phm->u.c.attribute == HPI_TONEDETECTOR_STATE) in hpi_check_control_cache_single()
427 phr->u.c.param1 = pC->u.tone.state; in hpi_check_control_cache_single()
432 if (phm->u.c.attribute == HPI_SILENCEDETECTOR_STATE) { in hpi_check_control_cache_single()
433 phr->u.c.param1 = pC->u.silence.state; in hpi_check_control_cache_single()
438 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER) in hpi_check_control_cache_single()
439 phr->u.c.param1 = pC->u.microphone.phantom_state; in hpi_check_control_cache_single()
444 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) in hpi_check_control_cache_single()
445 phr->u.c.param1 = pC->u.clk.source; in hpi_check_control_cache_single()
446 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) { in hpi_check_control_cache_single()
449 phr->u.c.param1 = 0; in hpi_check_control_cache_single()
453 phr->u.c.param1 = pC->u.clk.source_index; in hpi_check_control_cache_single()
454 } else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE) in hpi_check_control_cache_single()
455 phr->u.c.param1 = pC->u.clk.sample_rate; in hpi_check_control_cache_single()
464 HPI_CTL_ATTR_INDEX(phm->u.c. in hpi_check_control_cache_single()
471 if (phm->u.c.attribute == HPI_PAD_PROGRAM_ID) in hpi_check_control_cache_single()
472 phr->u.c.param1 = p_pad->pI; in hpi_check_control_cache_single()
473 else if (phm->u.c.attribute == HPI_PAD_PROGRAM_TYPE) in hpi_check_control_cache_single()
474 phr->u.c.param1 = p_pad->pTY; in hpi_check_control_cache_single()
477 HPI_CTL_ATTR_INDEX(phm->u.c. in hpi_check_control_cache_single()
479 unsigned int offset = phm->u.c.param1; in hpi_check_control_cache_single()
526 phm->u.c.attribute); in hpi_check_control_cache_single()
569 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single()
570 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
571 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
572 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_cmn_control_cache_sync_to_msg_single()
573 if (phm->u.c.param1) in hpi_cmn_control_cache_sync_to_msg_single()
581 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_cmn_control_cache_sync_to_msg_single()
582 pC->u.mux.source_node_type = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
583 pC->u.mux.source_node_index = (u16)phm->u.c.param2; in hpi_cmn_control_cache_sync_to_msg_single()
588 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_cmn_control_cache_sync_to_msg_single()
589 pC->u.mode.mode = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
592 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single()
593 pC->u.vol.an_log[0] = phr->u.c.an_log_value[0]; in hpi_cmn_control_cache_sync_to_msg_single()
594 pC->u.vol.an_log[1] = phr->u.c.an_log_value[1]; in hpi_cmn_control_cache_sync_to_msg_single()
598 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER) in hpi_cmn_control_cache_sync_to_msg_single()
599 pC->u.microphone.phantom_state = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
602 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_cmn_control_cache_sync_to_msg_single()
603 pC->u.aes3tx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
606 if (phm->u.c.attribute == HPI_AESEBURX_FORMAT) in hpi_cmn_control_cache_sync_to_msg_single()
607 pC->u.aes3rx.format = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
610 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE) in hpi_cmn_control_cache_sync_to_msg_single()
611 pC->u.clk.source = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
612 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) in hpi_cmn_control_cache_sync_to_msg_single()
613 pC->u.clk.source_index = (u16)phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()
614 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE) in hpi_cmn_control_cache_sync_to_msg_single()
615 pC->u.clk.sample_rate = phm->u.c.param1; in hpi_cmn_control_cache_sync_to_msg_single()