Lines Matching defs:phm

34  * @phm: message
37 u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr)
44 if (phr->object != phm->object) {
50 if (phr->function != phm->function) {
151 static void subsys_get_adapter(struct hpi_message *phm,
154 int count = phm->obj_index;
312 struct hpi_message *phm, struct hpi_response *phr)
325 if (phm->u.c.attribute == HPI_METER_PEAK) {
328 } else if (phm->u.c.attribute == HPI_METER_RMS) {
345 if (phm->u.c.attribute == HPI_VOLUME_GAIN) {
348 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) {
365 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) {
373 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE)
379 if (phm->u.c.attribute == HPI_LEVEL_GAIN) {
386 if (phm->u.c.attribute == HPI_TUNER_FREQ)
388 else if (phm->u.c.attribute == HPI_TUNER_BAND)
390 else if (phm->u.c.attribute == HPI_TUNER_LEVEL_AVG)
403 if (phm->u.c.attribute == HPI_AESEBURX_ERRORSTATUS)
405 else if (phm->u.c.attribute == HPI_AESEBURX_FORMAT)
411 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT)
417 if (phm->u.c.attribute == HPI_TONEDETECTOR_STATE)
423 if (phm->u.c.attribute == HPI_SILENCEDETECTOR_STATE) {
429 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER)
435 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE)
437 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) {
445 } else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE)
455 HPI_CTL_ATTR_INDEX(phm->u.c.
462 if (phm->u.c.attribute == HPI_PAD_PROGRAM_ID)
464 else if (phm->u.c.attribute == HPI_PAD_PROGRAM_TYPE)
468 HPI_CTL_ATTR_INDEX(phm->u.c.
470 unsigned int offset = phm->u.c.param1;
515 found ? "Cached" : "Uncached", phm->adapter_index,
517 phm->u.c.attribute);
522 phr->object = phm->object;
523 phr->function = phm->function;
530 struct hpi_message *phm, struct hpi_response *phr)
534 if (!find_control(phm->obj_index, p_cache, &pI)) {
537 phm->adapter_index);
546 *)pI, phm, phr);
556 *pC, struct hpi_message *phm, struct hpi_response *phr)
560 if (phm->u.c.attribute == HPI_VOLUME_GAIN) {
563 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) {
564 if (phm->u.c.param1)
572 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) {
573 pC->u.mux.source_node_type = (u16)phm->u.c.param1;
574 pC->u.mux.source_node_index = (u16)phm->u.c.param2;
579 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE)
580 pC->u.mode.mode = (u16)phm->u.c.param1;
583 if (phm->u.c.attribute == HPI_LEVEL_GAIN) {
589 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER)
590 pC->u.microphone.phantom_state = (u16)phm->u.c.param1;
593 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT)
594 pC->u.aes3tx.format = phm->u.c.param1;
597 if (phm->u.c.attribute == HPI_AESEBURX_FORMAT)
598 pC->u.aes3rx.format = phm->u.c.param1;
601 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE)
602 pC->u.clk.source = (u16)phm->u.c.param1;
603 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX)
604 pC->u.clk.source_index = (u16)phm->u.c.param1;
605 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE)
606 pC->u.clk.sample_rate = phm->u.c.param1;
614 struct hpi_message *phm, struct hpi_response *phr)
622 if (!find_control(phm->obj_index, p_cache, &pI)) {
625 phm->adapter_index);
634 hpi_cmn_control_cache_sync_to_msg_single(pC, phm, phr);
671 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr)
673 hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, 0);
675 switch (phm->function) {
685 subsys_get_adapter(phm, phr);
698 void HPI_COMMON(struct hpi_message *phm, struct hpi_response *phr)
700 switch (phm->type) {
702 switch (phm->object) {
704 subsys_message(phm, phr);