Lines Matching refs:hpi_ctl
1438 struct hpi_control *hpi_ctl, in asihpi_ctl_init() argument
1443 snd_control->name = hpi_ctl->name; in asihpi_ctl_init()
1444 snd_control->private_value = hpi_ctl->h_control; in asihpi_ctl_init()
1448 if (hpi_ctl->src_node_type + HPI_SOURCENODE_NONE == HPI_SOURCENODE_CLOCK_SOURCE) in asihpi_ctl_init()
1450 else if (hpi_ctl->dst_node_type + HPI_DESTNODE_NONE == HPI_DESTNODE_ISTREAM) in asihpi_ctl_init()
1452 else if ((hpi_ctl->src_node_type + HPI_SOURCENODE_NONE != HPI_SOURCENODE_OSTREAM) && in asihpi_ctl_init()
1453 (!hpi_ctl->dst_node_type)) in asihpi_ctl_init()
1455 else if (hpi_ctl->src_node_type && in asihpi_ctl_init()
1456 (hpi_ctl->src_node_type + HPI_SOURCENODE_NONE != HPI_SOURCENODE_OSTREAM) && in asihpi_ctl_init()
1457 (hpi_ctl->dst_node_type)) in asihpi_ctl_init()
1462 if (hpi_ctl->src_node_type && hpi_ctl->dst_node_type) in asihpi_ctl_init()
1463 sprintf(hpi_ctl->name, "%s %d %s %d %s%s", in asihpi_ctl_init()
1464 asihpi_src_names[hpi_ctl->src_node_type], in asihpi_ctl_init()
1465 hpi_ctl->src_node_index, in asihpi_ctl_init()
1466 asihpi_dst_names[hpi_ctl->dst_node_type], in asihpi_ctl_init()
1467 hpi_ctl->dst_node_index, in asihpi_ctl_init()
1469 else if (hpi_ctl->dst_node_type) { in asihpi_ctl_init()
1470 sprintf(hpi_ctl->name, "%s %d %s%s", in asihpi_ctl_init()
1471 asihpi_dst_names[hpi_ctl->dst_node_type], in asihpi_ctl_init()
1472 hpi_ctl->dst_node_index, in asihpi_ctl_init()
1475 sprintf(hpi_ctl->name, "%s %d %s%s", in asihpi_ctl_init()
1476 asihpi_src_names[hpi_ctl->src_node_type], in asihpi_ctl_init()
1477 hpi_ctl->src_node_index, in asihpi_ctl_init()
1581 struct hpi_control *hpi_ctl) in snd_asihpi_volume_add() argument
1588 asihpi_ctl_init(&snd_control, hpi_ctl, "Volume"); in snd_asihpi_volume_add()
1600 if (hpi_volume_get_mute(hpi_ctl->h_control, &mute) == 0) { in snd_asihpi_volume_add()
1601 asihpi_ctl_init(&snd_control, hpi_ctl, "Switch"); in snd_asihpi_volume_add()
1677 struct hpi_control *hpi_ctl) in snd_asihpi_level_add() argument
1683 asihpi_ctl_init(&snd_control, hpi_ctl, "Level"); in snd_asihpi_level_add()
1788 struct hpi_control *hpi_ctl) in snd_asihpi_aesebu_rx_add() argument
1793 asihpi_ctl_init(&snd_control, hpi_ctl, "Format"); in snd_asihpi_aesebu_rx_add()
1803 asihpi_ctl_init(&snd_control, hpi_ctl, "Status"); in snd_asihpi_aesebu_rx_add()
1826 struct hpi_control *hpi_ctl) in snd_asihpi_aesebu_tx_add() argument
1831 asihpi_ctl_init(&snd_control, hpi_ctl, "Format"); in snd_asihpi_aesebu_tx_add()
2058 struct hpi_control *hpi_ctl) in snd_asihpi_tuner_add() argument
2063 snd_control.private_value = hpi_ctl->h_control; in snd_asihpi_tuner_add()
2066 if (!hpi_tuner_get_gain(hpi_ctl->h_control, NULL)) { in snd_asihpi_tuner_add()
2067 asihpi_ctl_init(&snd_control, hpi_ctl, "Gain"); in snd_asihpi_tuner_add()
2076 asihpi_ctl_init(&snd_control, hpi_ctl, "Band"); in snd_asihpi_tuner_add()
2084 asihpi_ctl_init(&snd_control, hpi_ctl, "Freq"); in snd_asihpi_tuner_add()
2162 struct hpi_control *hpi_ctl, int subidx) in snd_asihpi_meter_add() argument
2167 asihpi_ctl_init(&snd_control, hpi_ctl, "Meter"); in snd_asihpi_meter_add()
2184 struct hpi_control hpi_ctl; in snd_card_asihpi_mux_count_sources() local
2188 &hpi_ctl. in snd_card_asihpi_mux_count_sources()
2190 &hpi_ctl. in snd_card_asihpi_mux_count_sources()
2276 struct hpi_control *hpi_ctl) in snd_asihpi_mux_add() argument
2281 asihpi_ctl_init(&snd_control, hpi_ctl, "Route"); in snd_asihpi_mux_add()
2355 struct hpi_control *hpi_ctl) in snd_asihpi_cmode_add() argument
2360 asihpi_ctl_init(&snd_control, hpi_ctl, "Mode"); in snd_asihpi_cmode_add()
2529 struct hpi_control *hpi_ctl) in snd_asihpi_sampleclock_add() argument
2535 u32 hSC = hpi_ctl->h_control; in snd_asihpi_sampleclock_add()
2544 snd_control.private_value = hpi_ctl->h_control; in snd_asihpi_sampleclock_add()
2576 asihpi_ctl_init(&snd_control, hpi_ctl, "Source"); in snd_asihpi_sampleclock_add()
2586 asihpi_ctl_init(&snd_control, hpi_ctl, "Localrate"); in snd_asihpi_sampleclock_add()
2597 asihpi_ctl_init(&snd_control, hpi_ctl, "Rate"); in snd_asihpi_sampleclock_add()
2615 struct hpi_control hpi_ctl, prev_ctl; in snd_card_asihpi_mixer_new() local
2636 &hpi_ctl.src_node_type, in snd_card_asihpi_mixer_new()
2637 &hpi_ctl.src_node_index, in snd_card_asihpi_mixer_new()
2638 &hpi_ctl.dst_node_type, in snd_card_asihpi_mixer_new()
2639 &hpi_ctl.dst_node_index, in snd_card_asihpi_mixer_new()
2640 &hpi_ctl.control_type, in snd_card_asihpi_mixer_new()
2641 &hpi_ctl.h_control); in snd_card_asihpi_mixer_new()
2654 hpi_ctl.src_node_type -= HPI_SOURCENODE_NONE; in snd_card_asihpi_mixer_new()
2655 hpi_ctl.dst_node_type -= HPI_DESTNODE_NONE; in snd_card_asihpi_mixer_new()
2661 if ((hpi_ctl.control_type == prev_ctl.control_type) && in snd_card_asihpi_mixer_new()
2662 (hpi_ctl.src_node_type == prev_ctl.src_node_type) && in snd_card_asihpi_mixer_new()
2663 (hpi_ctl.src_node_index == prev_ctl.src_node_index) && in snd_card_asihpi_mixer_new()
2664 (hpi_ctl.dst_node_type == prev_ctl.dst_node_type) && in snd_card_asihpi_mixer_new()
2665 (hpi_ctl.dst_node_index == prev_ctl.dst_node_index)) in snd_card_asihpi_mixer_new()
2670 prev_ctl = hpi_ctl; in snd_card_asihpi_mixer_new()
2672 switch (hpi_ctl.control_type) { in snd_card_asihpi_mixer_new()
2674 err = snd_asihpi_volume_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2677 err = snd_asihpi_level_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2680 err = snd_asihpi_mux_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2683 err = snd_asihpi_cmode_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2686 err = snd_asihpi_meter_add(asihpi, &hpi_ctl, subindex); in snd_card_asihpi_mixer_new()
2690 asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2695 err = snd_asihpi_tuner_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2698 err = snd_asihpi_aesebu_tx_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2701 err = snd_asihpi_aesebu_rx_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2713 hpi_ctl.control_type, in snd_card_asihpi_mixer_new()
2714 hpi_ctl.src_node_type, in snd_card_asihpi_mixer_new()
2715 hpi_ctl.src_node_index, in snd_card_asihpi_mixer_new()
2716 hpi_ctl.dst_node_type, in snd_card_asihpi_mixer_new()
2717 hpi_ctl.dst_node_index); in snd_card_asihpi_mixer_new()