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