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