Lines Matching refs:hpi_ctl

1362 				struct hpi_control *hpi_ctl,  in asihpi_ctl_init()  argument
1367 snd_control->name = hpi_ctl->name; in asihpi_ctl_init()
1368 snd_control->private_value = hpi_ctl->h_control; in asihpi_ctl_init()
1372 if (hpi_ctl->src_node_type + HPI_SOURCENODE_NONE == HPI_SOURCENODE_CLOCK_SOURCE) in asihpi_ctl_init()
1374 else if (hpi_ctl->dst_node_type + HPI_DESTNODE_NONE == HPI_DESTNODE_ISTREAM) in asihpi_ctl_init()
1376 else if ((hpi_ctl->src_node_type + HPI_SOURCENODE_NONE != HPI_SOURCENODE_OSTREAM) && in asihpi_ctl_init()
1377 (!hpi_ctl->dst_node_type)) in asihpi_ctl_init()
1379 else if (hpi_ctl->src_node_type && in asihpi_ctl_init()
1380 (hpi_ctl->src_node_type + HPI_SOURCENODE_NONE != HPI_SOURCENODE_OSTREAM) && in asihpi_ctl_init()
1381 (hpi_ctl->dst_node_type)) in asihpi_ctl_init()
1386 if (hpi_ctl->src_node_type && hpi_ctl->dst_node_type) in asihpi_ctl_init()
1387 sprintf(hpi_ctl->name, "%s %d %s %d %s%s", in asihpi_ctl_init()
1388 asihpi_src_names[hpi_ctl->src_node_type], in asihpi_ctl_init()
1389 hpi_ctl->src_node_index, in asihpi_ctl_init()
1390 asihpi_dst_names[hpi_ctl->dst_node_type], in asihpi_ctl_init()
1391 hpi_ctl->dst_node_index, in asihpi_ctl_init()
1393 else if (hpi_ctl->dst_node_type) { in asihpi_ctl_init()
1394 sprintf(hpi_ctl->name, "%s %d %s%s", in asihpi_ctl_init()
1395 asihpi_dst_names[hpi_ctl->dst_node_type], in asihpi_ctl_init()
1396 hpi_ctl->dst_node_index, in asihpi_ctl_init()
1399 sprintf(hpi_ctl->name, "%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()
1500 struct hpi_control *hpi_ctl) in snd_asihpi_volume_add() argument
1507 asihpi_ctl_init(&snd_control, hpi_ctl, "Volume"); in snd_asihpi_volume_add()
1519 if (hpi_volume_get_mute(hpi_ctl->h_control, &mute) == 0) { in snd_asihpi_volume_add()
1520 asihpi_ctl_init(&snd_control, hpi_ctl, "Switch"); in snd_asihpi_volume_add()
1596 struct hpi_control *hpi_ctl) in snd_asihpi_level_add() argument
1602 asihpi_ctl_init(&snd_control, hpi_ctl, "Level"); in snd_asihpi_level_add()
1707 struct hpi_control *hpi_ctl) in snd_asihpi_aesebu_rx_add() argument
1712 asihpi_ctl_init(&snd_control, hpi_ctl, "Format"); in snd_asihpi_aesebu_rx_add()
1722 asihpi_ctl_init(&snd_control, hpi_ctl, "Status"); in snd_asihpi_aesebu_rx_add()
1745 struct hpi_control *hpi_ctl) in snd_asihpi_aesebu_tx_add() argument
1750 asihpi_ctl_init(&snd_control, hpi_ctl, "Format"); in snd_asihpi_aesebu_tx_add()
1977 struct hpi_control *hpi_ctl) in snd_asihpi_tuner_add() argument
1982 snd_control.private_value = hpi_ctl->h_control; in snd_asihpi_tuner_add()
1985 if (!hpi_tuner_get_gain(hpi_ctl->h_control, NULL)) { in snd_asihpi_tuner_add()
1986 asihpi_ctl_init(&snd_control, hpi_ctl, "Gain"); in snd_asihpi_tuner_add()
1995 asihpi_ctl_init(&snd_control, hpi_ctl, "Band"); in snd_asihpi_tuner_add()
2003 asihpi_ctl_init(&snd_control, hpi_ctl, "Freq"); in snd_asihpi_tuner_add()
2081 struct hpi_control *hpi_ctl, int subidx) in snd_asihpi_meter_add() argument
2086 asihpi_ctl_init(&snd_control, hpi_ctl, "Meter"); in snd_asihpi_meter_add()
2103 struct hpi_control hpi_ctl; in snd_card_asihpi_mux_count_sources() local
2107 &hpi_ctl. in snd_card_asihpi_mux_count_sources()
2109 &hpi_ctl. in snd_card_asihpi_mux_count_sources()
2192 struct hpi_control *hpi_ctl) in snd_asihpi_mux_add() argument
2197 asihpi_ctl_init(&snd_control, hpi_ctl, "Route"); in snd_asihpi_mux_add()
2271 struct hpi_control *hpi_ctl) in snd_asihpi_cmode_add() argument
2276 asihpi_ctl_init(&snd_control, hpi_ctl, "Mode"); in snd_asihpi_cmode_add()
2445 struct hpi_control *hpi_ctl) in snd_asihpi_sampleclock_add() argument
2451 u32 hSC = hpi_ctl->h_control; in snd_asihpi_sampleclock_add()
2460 snd_control.private_value = hpi_ctl->h_control; in snd_asihpi_sampleclock_add()
2492 asihpi_ctl_init(&snd_control, hpi_ctl, "Source"); in snd_asihpi_sampleclock_add()
2502 asihpi_ctl_init(&snd_control, hpi_ctl, "Localrate"); in snd_asihpi_sampleclock_add()
2513 asihpi_ctl_init(&snd_control, hpi_ctl, "Rate"); in snd_asihpi_sampleclock_add()
2531 struct hpi_control hpi_ctl, prev_ctl; in snd_card_asihpi_mixer_new() local
2552 &hpi_ctl.src_node_type, in snd_card_asihpi_mixer_new()
2553 &hpi_ctl.src_node_index, in snd_card_asihpi_mixer_new()
2554 &hpi_ctl.dst_node_type, in snd_card_asihpi_mixer_new()
2555 &hpi_ctl.dst_node_index, in snd_card_asihpi_mixer_new()
2556 &hpi_ctl.control_type, in snd_card_asihpi_mixer_new()
2557 &hpi_ctl.h_control); in snd_card_asihpi_mixer_new()
2570 hpi_ctl.src_node_type -= HPI_SOURCENODE_NONE; in snd_card_asihpi_mixer_new()
2571 hpi_ctl.dst_node_type -= HPI_DESTNODE_NONE; in snd_card_asihpi_mixer_new()
2577 if ((hpi_ctl.control_type == prev_ctl.control_type) && in snd_card_asihpi_mixer_new()
2578 (hpi_ctl.src_node_type == prev_ctl.src_node_type) && in snd_card_asihpi_mixer_new()
2579 (hpi_ctl.src_node_index == prev_ctl.src_node_index) && in snd_card_asihpi_mixer_new()
2580 (hpi_ctl.dst_node_type == prev_ctl.dst_node_type) && in snd_card_asihpi_mixer_new()
2581 (hpi_ctl.dst_node_index == prev_ctl.dst_node_index)) in snd_card_asihpi_mixer_new()
2586 prev_ctl = hpi_ctl; in snd_card_asihpi_mixer_new()
2588 switch (hpi_ctl.control_type) { in snd_card_asihpi_mixer_new()
2590 err = snd_asihpi_volume_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2593 err = snd_asihpi_level_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2596 err = snd_asihpi_mux_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2599 err = snd_asihpi_cmode_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2602 err = snd_asihpi_meter_add(asihpi, &hpi_ctl, subindex); in snd_card_asihpi_mixer_new()
2606 asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2611 err = snd_asihpi_tuner_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2614 err = snd_asihpi_aesebu_tx_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2617 err = snd_asihpi_aesebu_rx_add(asihpi, &hpi_ctl); in snd_card_asihpi_mixer_new()
2629 hpi_ctl.control_type, in snd_card_asihpi_mixer_new()
2630 hpi_ctl.src_node_type, in snd_card_asihpi_mixer_new()
2631 hpi_ctl.src_node_index, in snd_card_asihpi_mixer_new()
2632 hpi_ctl.dst_node_type, in snd_card_asihpi_mixer_new()
2633 hpi_ctl.dst_node_index); in snd_card_asihpi_mixer_new()