Lines Matching defs:hpi_ctl

1374 				struct hpi_control *hpi_ctl,
1379 snd_control->name = hpi_ctl->name;
1380 snd_control->private_value = hpi_ctl->h_control;
1384 if (hpi_ctl->src_node_type + HPI_SOURCENODE_NONE == HPI_SOURCENODE_CLOCK_SOURCE)
1386 else if (hpi_ctl->dst_node_type + HPI_DESTNODE_NONE == HPI_DESTNODE_ISTREAM)
1388 else if ((hpi_ctl->src_node_type + HPI_SOURCENODE_NONE != HPI_SOURCENODE_OSTREAM) &&
1389 (!hpi_ctl->dst_node_type))
1391 else if (hpi_ctl->src_node_type &&
1392 (hpi_ctl->src_node_type + HPI_SOURCENODE_NONE != HPI_SOURCENODE_OSTREAM) &&
1393 (hpi_ctl->dst_node_type))
1398 if (hpi_ctl->src_node_type && hpi_ctl->dst_node_type)
1399 sprintf(hpi_ctl->name, "%s %d %s %d %s%s",
1400 asihpi_src_names[hpi_ctl->src_node_type],
1401 hpi_ctl->src_node_index,
1402 asihpi_dst_names[hpi_ctl->dst_node_type],
1403 hpi_ctl->dst_node_index,
1405 else if (hpi_ctl->dst_node_type) {
1406 sprintf(hpi_ctl->name, "%s %d %s%s",
1407 asihpi_dst_names[hpi_ctl->dst_node_type],
1408 hpi_ctl->dst_node_index,
1411 sprintf(hpi_ctl->name, "%s %d %s%s",
1412 asihpi_src_names[hpi_ctl->src_node_type],
1413 hpi_ctl->src_node_index,
1416 /* printk(KERN_INFO "Adding %s %d to %d ", hpi_ctl->name,
1417 hpi_ctl->wSrcNodeType, hpi_ctl->wDstNodeType); */
1514 struct hpi_control *hpi_ctl)
1521 asihpi_ctl_init(&snd_control, hpi_ctl, "Volume");
1533 if (hpi_volume_get_mute(hpi_ctl->h_control, &mute) == 0) {
1534 asihpi_ctl_init(&snd_control, hpi_ctl, "Switch");
1610 struct hpi_control *hpi_ctl)
1616 asihpi_ctl_init(&snd_control, hpi_ctl, "Level");
1721 struct hpi_control *hpi_ctl)
1726 asihpi_ctl_init(&snd_control, hpi_ctl, "Format");
1736 asihpi_ctl_init(&snd_control, hpi_ctl, "Status");
1759 struct hpi_control *hpi_ctl)
1764 asihpi_ctl_init(&snd_control, hpi_ctl, "Format");
1991 struct hpi_control *hpi_ctl)
1996 snd_control.private_value = hpi_ctl->h_control;
1999 if (!hpi_tuner_get_gain(hpi_ctl->h_control, NULL)) {
2000 asihpi_ctl_init(&snd_control, hpi_ctl, "Gain");
2009 asihpi_ctl_init(&snd_control, hpi_ctl, "Band");
2017 asihpi_ctl_init(&snd_control, hpi_ctl, "Freq");
2095 struct hpi_control *hpi_ctl, int subidx)
2100 asihpi_ctl_init(&snd_control, hpi_ctl, "Meter");
2117 struct hpi_control hpi_ctl;
2121 &hpi_ctl.
2123 &hpi_ctl.
2207 struct hpi_control *hpi_ctl)
2212 asihpi_ctl_init(&snd_control, hpi_ctl, "Route");
2286 struct hpi_control *hpi_ctl)
2291 asihpi_ctl_init(&snd_control, hpi_ctl, "Mode");
2460 struct hpi_control *hpi_ctl)
2466 u32 hSC = hpi_ctl->h_control;
2475 snd_control.private_value = hpi_ctl->h_control;
2507 asihpi_ctl_init(&snd_control, hpi_ctl, "Source");
2517 asihpi_ctl_init(&snd_control, hpi_ctl, "Localrate");
2528 asihpi_ctl_init(&snd_control, hpi_ctl, "Rate");
2546 struct hpi_control hpi_ctl, prev_ctl;
2567 &hpi_ctl.src_node_type,
2568 &hpi_ctl.src_node_index,
2569 &hpi_ctl.dst_node_type,
2570 &hpi_ctl.dst_node_index,
2571 &hpi_ctl.control_type,
2572 &hpi_ctl.h_control);
2585 hpi_ctl.src_node_type -= HPI_SOURCENODE_NONE;
2586 hpi_ctl.dst_node_type -= HPI_DESTNODE_NONE;
2592 if ((hpi_ctl.control_type == prev_ctl.control_type) &&
2593 (hpi_ctl.src_node_type == prev_ctl.src_node_type) &&
2594 (hpi_ctl.src_node_index == prev_ctl.src_node_index) &&
2595 (hpi_ctl.dst_node_type == prev_ctl.dst_node_type) &&
2596 (hpi_ctl.dst_node_index == prev_ctl.dst_node_index))
2601 prev_ctl = hpi_ctl;
2603 switch (hpi_ctl.control_type) {
2605 err = snd_asihpi_volume_add(asihpi, &hpi_ctl);
2608 err = snd_asihpi_level_add(asihpi, &hpi_ctl);
2611 err = snd_asihpi_mux_add(asihpi, &hpi_ctl);
2614 err = snd_asihpi_cmode_add(asihpi, &hpi_ctl);
2617 err = snd_asihpi_meter_add(asihpi, &hpi_ctl, subindex);
2621 asihpi, &hpi_ctl);
2626 err = snd_asihpi_tuner_add(asihpi, &hpi_ctl);
2629 err = snd_asihpi_aesebu_tx_add(asihpi, &hpi_ctl);
2632 err = snd_asihpi_aesebu_rx_add(asihpi, &hpi_ctl);
2644 hpi_ctl.control_type,
2645 hpi_ctl.src_node_type,
2646 hpi_ctl.src_node_index,
2647 hpi_ctl.dst_node_type,
2648 hpi_ctl.dst_node_index);