Lines Matching defs:hpi_ctl

1376 				struct hpi_control *hpi_ctl,
1381 snd_control->name = hpi_ctl->name;
1382 snd_control->private_value = hpi_ctl->h_control;
1386 if (hpi_ctl->src_node_type + HPI_SOURCENODE_NONE == HPI_SOURCENODE_CLOCK_SOURCE)
1388 else if (hpi_ctl->dst_node_type + HPI_DESTNODE_NONE == HPI_DESTNODE_ISTREAM)
1390 else if ((hpi_ctl->src_node_type + HPI_SOURCENODE_NONE != HPI_SOURCENODE_OSTREAM) &&
1391 (!hpi_ctl->dst_node_type))
1393 else if (hpi_ctl->src_node_type &&
1394 (hpi_ctl->src_node_type + HPI_SOURCENODE_NONE != HPI_SOURCENODE_OSTREAM) &&
1395 (hpi_ctl->dst_node_type))
1400 if (hpi_ctl->src_node_type && hpi_ctl->dst_node_type)
1401 sprintf(hpi_ctl->name, "%s %d %s %d %s%s",
1402 asihpi_src_names[hpi_ctl->src_node_type],
1403 hpi_ctl->src_node_index,
1404 asihpi_dst_names[hpi_ctl->dst_node_type],
1405 hpi_ctl->dst_node_index,
1407 else if (hpi_ctl->dst_node_type) {
1408 sprintf(hpi_ctl->name, "%s %d %s%s",
1409 asihpi_dst_names[hpi_ctl->dst_node_type],
1410 hpi_ctl->dst_node_index,
1413 sprintf(hpi_ctl->name, "%s %d %s%s",
1414 asihpi_src_names[hpi_ctl->src_node_type],
1415 hpi_ctl->src_node_index,
1418 /* printk(KERN_INFO "Adding %s %d to %d ", hpi_ctl->name,
1419 hpi_ctl->wSrcNodeType, hpi_ctl->wDstNodeType); */
1516 struct hpi_control *hpi_ctl)
1523 asihpi_ctl_init(&snd_control, hpi_ctl, "Volume");
1535 if (hpi_volume_get_mute(hpi_ctl->h_control, &mute) == 0) {
1536 asihpi_ctl_init(&snd_control, hpi_ctl, "Switch");
1612 struct hpi_control *hpi_ctl)
1618 asihpi_ctl_init(&snd_control, hpi_ctl, "Level");
1723 struct hpi_control *hpi_ctl)
1728 asihpi_ctl_init(&snd_control, hpi_ctl, "Format");
1738 asihpi_ctl_init(&snd_control, hpi_ctl, "Status");
1761 struct hpi_control *hpi_ctl)
1766 asihpi_ctl_init(&snd_control, hpi_ctl, "Format");
1993 struct hpi_control *hpi_ctl)
1998 snd_control.private_value = hpi_ctl->h_control;
2001 if (!hpi_tuner_get_gain(hpi_ctl->h_control, NULL)) {
2002 asihpi_ctl_init(&snd_control, hpi_ctl, "Gain");
2011 asihpi_ctl_init(&snd_control, hpi_ctl, "Band");
2019 asihpi_ctl_init(&snd_control, hpi_ctl, "Freq");
2097 struct hpi_control *hpi_ctl, int subidx)
2102 asihpi_ctl_init(&snd_control, hpi_ctl, "Meter");
2119 struct hpi_control hpi_ctl;
2123 &hpi_ctl.
2125 &hpi_ctl.
2209 struct hpi_control *hpi_ctl)
2214 asihpi_ctl_init(&snd_control, hpi_ctl, "Route");
2288 struct hpi_control *hpi_ctl)
2293 asihpi_ctl_init(&snd_control, hpi_ctl, "Mode");
2462 struct hpi_control *hpi_ctl)
2468 u32 hSC = hpi_ctl->h_control;
2477 snd_control.private_value = hpi_ctl->h_control;
2509 asihpi_ctl_init(&snd_control, hpi_ctl, "Source");
2519 asihpi_ctl_init(&snd_control, hpi_ctl, "Localrate");
2530 asihpi_ctl_init(&snd_control, hpi_ctl, "Rate");
2548 struct hpi_control hpi_ctl, prev_ctl;
2569 &hpi_ctl.src_node_type,
2570 &hpi_ctl.src_node_index,
2571 &hpi_ctl.dst_node_type,
2572 &hpi_ctl.dst_node_index,
2573 &hpi_ctl.control_type,
2574 &hpi_ctl.h_control);
2587 hpi_ctl.src_node_type -= HPI_SOURCENODE_NONE;
2588 hpi_ctl.dst_node_type -= HPI_DESTNODE_NONE;
2594 if ((hpi_ctl.control_type == prev_ctl.control_type) &&
2595 (hpi_ctl.src_node_type == prev_ctl.src_node_type) &&
2596 (hpi_ctl.src_node_index == prev_ctl.src_node_index) &&
2597 (hpi_ctl.dst_node_type == prev_ctl.dst_node_type) &&
2598 (hpi_ctl.dst_node_index == prev_ctl.dst_node_index))
2603 prev_ctl = hpi_ctl;
2605 switch (hpi_ctl.control_type) {
2607 err = snd_asihpi_volume_add(asihpi, &hpi_ctl);
2610 err = snd_asihpi_level_add(asihpi, &hpi_ctl);
2613 err = snd_asihpi_mux_add(asihpi, &hpi_ctl);
2616 err = snd_asihpi_cmode_add(asihpi, &hpi_ctl);
2619 err = snd_asihpi_meter_add(asihpi, &hpi_ctl, subindex);
2623 asihpi, &hpi_ctl);
2628 err = snd_asihpi_tuner_add(asihpi, &hpi_ctl);
2631 err = snd_asihpi_aesebu_tx_add(asihpi, &hpi_ctl);
2634 err = snd_asihpi_aesebu_rx_add(asihpi, &hpi_ctl);
2646 hpi_ctl.control_type,
2647 hpi_ctl.src_node_type,
2648 hpi_ctl.src_node_index,
2649 hpi_ctl.dst_node_type,
2650 hpi_ctl.dst_node_index);