• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/asihpi/

Lines Matching refs:phm

44 u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr)
49 || (phr->object != phm->object)
50 || (phr->function != phm->function))
225 static short find_control(struct hpi_message *phm,
229 *pw_control_index = phm->obj_index;
234 phm->adapter_index, *pw_control_index);
241 phm->adapter_index, *pw_control_index);
253 struct hpi_message *phm, void **p, unsigned int *pN)
257 if ((phm->function == HPI_CONTROL_GET_STATE)
258 && (phm->object == HPI_OBJ_CONTROLEX)
263 if (!find_control(phm, p_cache, &pI, &control_index))
290 struct hpi_message *phm, struct hpi_response *phr)
298 if (!find_control(phm, p_cache, &pI, &control_index))
312 if (phm->u.c.attribute == HPI_METER_PEAK) {
315 } else if (phm->u.c.attribute == HPI_METER_RMS) {
322 if (phm->u.c.attribute == HPI_VOLUME_GAIN) {
329 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) {
337 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE)
343 if (phm->u.c.attribute == HPI_LEVEL_GAIN) {
350 if (phm->u.c.attribute == HPI_TUNER_FREQ)
352 else if (phm->u.c.attribute == HPI_TUNER_BAND)
354 else if ((phm->u.c.attribute == HPI_TUNER_LEVEL)
355 && (phm->u.c.param1 == HPI_TUNER_LEVEL_AVERAGE))
366 if (phm->u.c.attribute == HPI_AESEBURX_ERRORSTATUS)
368 else if (phm->u.c.attribute == HPI_AESEBURX_FORMAT)
374 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT)
380 if (phm->u.c.attribute == HPI_TONEDETECTOR_STATE)
386 if (phm->u.c.attribute == HPI_SILENCEDETECTOR_STATE) {
393 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER)
399 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE)
401 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX) {
409 } else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE)
417 HPI_CTL_ATTR_INDEX(phm->u.c.
423 if (phm->u.c.attribute == HPI_PAD_PROGRAM_ID)
425 else if (phm->u.c.attribute == HPI_PAD_PROGRAM_TYPE)
429 HPI_CTL_ATTR_INDEX(phm->u.c.attribute) - 1;
430 unsigned int offset = phm->u.c.param1;
436 phm->u.c.attribute);
478 phm->adapter_index, pI->control_index,
479 pI->control_type, phm->u.c.attribute);
483 phm->adapter_index, pI->control_index,
501 struct hpi_message *phm, struct hpi_response *phr)
510 if (!find_control(phm, p_cache, &pI, &control_index))
520 if (phm->u.c.attribute == HPI_VOLUME_GAIN) {
527 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) {
528 pC->u.x.source_node_type = (u16)phm->u.c.param1;
529 pC->u.x.source_node_index = (u16)phm->u.c.param2;
534 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE)
535 pC->u.m.mode = (u16)phm->u.c.param1;
538 if (phm->u.c.attribute == HPI_LEVEL_GAIN) {
544 if (phm->u.c.attribute == HPI_MICROPHONE_PHANTOM_POWER)
545 pC->u.phantom_power.state = (u16)phm->u.c.param1;
548 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT)
549 pC->u.aes3tx.format = phm->u.c.param1;
552 if (phm->u.c.attribute == HPI_AESEBURX_FORMAT)
553 pC->u.aes3rx.source = phm->u.c.param1;
556 if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE)
557 pC->u.clk.source = (u16)phm->u.c.param1;
558 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SOURCE_INDEX)
559 pC->u.clk.source_index = (u16)phm->u.c.param1;
560 else if (phm->u.c.attribute == HPI_SAMPLECLOCK_SAMPLERATE)
561 pC->u.clk.sample_rate = phm->u.c.param1;
595 static void subsys_message(struct hpi_message *phm, struct hpi_response *phr)
598 switch (phm->function) {
622 void HPI_COMMON(struct hpi_message *phm, struct hpi_response *phr)
624 switch (phm->type) {
626 switch (phm->object) {
628 subsys_message(phm, phr);