Searched refs:snd_control (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/sound/pci/asihpi/
H A Dasihpi.c1444 static void asihpi_ctl_init(struct snd_kcontrol_new *snd_control, asihpi_ctl_init() argument
1449 memset(snd_control, 0, sizeof(*snd_control)); asihpi_ctl_init()
1450 snd_control->name = hpi_ctl->name; asihpi_ctl_init()
1451 snd_control->private_value = hpi_ctl->h_control; asihpi_ctl_init()
1452 snd_control->iface = SNDRV_CTL_ELEM_IFACE_MIXER; asihpi_ctl_init()
1453 snd_control->index = 0; asihpi_ctl_init()
1591 struct snd_kcontrol_new snd_control; snd_asihpi_volume_add() local
1595 asihpi_ctl_init(&snd_control, hpi_ctl, "Volume"); snd_asihpi_volume_add()
1596 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | snd_asihpi_volume_add()
1598 snd_control.info = snd_asihpi_volume_info; snd_asihpi_volume_add()
1599 snd_control.get = snd_asihpi_volume_get; snd_asihpi_volume_add()
1600 snd_control.put = snd_asihpi_volume_put; snd_asihpi_volume_add()
1601 snd_control.tlv.p = db_scale_100; snd_asihpi_volume_add()
1603 err = ctl_add(card, &snd_control, asihpi); snd_asihpi_volume_add()
1608 asihpi_ctl_init(&snd_control, hpi_ctl, "Switch"); snd_asihpi_volume_add()
1609 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; snd_asihpi_volume_add()
1610 snd_control.info = snd_asihpi_volume_mute_info; snd_asihpi_volume_add()
1611 snd_control.get = snd_asihpi_volume_mute_get; snd_asihpi_volume_add()
1612 snd_control.put = snd_asihpi_volume_mute_put; snd_asihpi_volume_add()
1613 err = ctl_add(card, &snd_control, asihpi); snd_asihpi_volume_add()
1687 struct snd_kcontrol_new snd_control; snd_asihpi_level_add() local
1690 asihpi_ctl_init(&snd_control, hpi_ctl, "Level"); snd_asihpi_level_add()
1691 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | snd_asihpi_level_add()
1693 snd_control.info = snd_asihpi_level_info; snd_asihpi_level_add()
1694 snd_control.get = snd_asihpi_level_get; snd_asihpi_level_add()
1695 snd_control.put = snd_asihpi_level_put; snd_asihpi_level_add()
1696 snd_control.tlv.p = db_scale_level; snd_asihpi_level_add()
1698 return ctl_add(card, &snd_control, asihpi); snd_asihpi_level_add()
1798 struct snd_kcontrol_new snd_control; snd_asihpi_aesebu_rx_add() local
1800 asihpi_ctl_init(&snd_control, hpi_ctl, "Format"); snd_asihpi_aesebu_rx_add()
1801 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; snd_asihpi_aesebu_rx_add()
1802 snd_control.info = snd_asihpi_aesebu_format_info; snd_asihpi_aesebu_rx_add()
1803 snd_control.get = snd_asihpi_aesebu_rx_format_get; snd_asihpi_aesebu_rx_add()
1804 snd_control.put = snd_asihpi_aesebu_rx_format_put; snd_asihpi_aesebu_rx_add()
1807 if (ctl_add(card, &snd_control, asihpi) < 0) snd_asihpi_aesebu_rx_add()
1810 asihpi_ctl_init(&snd_control, hpi_ctl, "Status"); snd_asihpi_aesebu_rx_add()
1811 snd_control.access = snd_asihpi_aesebu_rx_add()
1813 snd_control.info = snd_asihpi_aesebu_rxstatus_info; snd_asihpi_aesebu_rx_add()
1814 snd_control.get = snd_asihpi_aesebu_rxstatus_get; snd_asihpi_aesebu_rx_add()
1816 return ctl_add(card, &snd_control, asihpi); snd_asihpi_aesebu_rx_add()
1836 struct snd_kcontrol_new snd_control; snd_asihpi_aesebu_tx_add() local
1838 asihpi_ctl_init(&snd_control, hpi_ctl, "Format"); snd_asihpi_aesebu_tx_add()
1839 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; snd_asihpi_aesebu_tx_add()
1840 snd_control.info = snd_asihpi_aesebu_format_info; snd_asihpi_aesebu_tx_add()
1841 snd_control.get = snd_asihpi_aesebu_tx_format_get; snd_asihpi_aesebu_tx_add()
1842 snd_control.put = snd_asihpi_aesebu_tx_format_put; snd_asihpi_aesebu_tx_add()
1844 return ctl_add(card, &snd_control, asihpi); snd_asihpi_aesebu_tx_add()
2068 struct snd_kcontrol_new snd_control; snd_asihpi_tuner_add() local
2070 snd_control.private_value = hpi_ctl->h_control; snd_asihpi_tuner_add()
2071 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; snd_asihpi_tuner_add()
2074 asihpi_ctl_init(&snd_control, hpi_ctl, "Gain"); snd_asihpi_tuner_add()
2075 snd_control.info = snd_asihpi_tuner_gain_info; snd_asihpi_tuner_add()
2076 snd_control.get = snd_asihpi_tuner_gain_get; snd_asihpi_tuner_add()
2077 snd_control.put = snd_asihpi_tuner_gain_put; snd_asihpi_tuner_add()
2079 if (ctl_add(card, &snd_control, asihpi) < 0) snd_asihpi_tuner_add()
2083 asihpi_ctl_init(&snd_control, hpi_ctl, "Band"); snd_asihpi_tuner_add()
2084 snd_control.info = snd_asihpi_tuner_band_info; snd_asihpi_tuner_add()
2085 snd_control.get = snd_asihpi_tuner_band_get; snd_asihpi_tuner_add()
2086 snd_control.put = snd_asihpi_tuner_band_put; snd_asihpi_tuner_add()
2088 if (ctl_add(card, &snd_control, asihpi) < 0) snd_asihpi_tuner_add()
2091 asihpi_ctl_init(&snd_control, hpi_ctl, "Freq"); snd_asihpi_tuner_add()
2092 snd_control.info = snd_asihpi_tuner_freq_info; snd_asihpi_tuner_add()
2093 snd_control.get = snd_asihpi_tuner_freq_get; snd_asihpi_tuner_add()
2094 snd_control.put = snd_asihpi_tuner_freq_put; snd_asihpi_tuner_add()
2096 return ctl_add(card, &snd_control, asihpi); snd_asihpi_tuner_add()
2172 struct snd_kcontrol_new snd_control; snd_asihpi_meter_add() local
2174 asihpi_ctl_init(&snd_control, hpi_ctl, "Meter"); snd_asihpi_meter_add()
2175 snd_control.access = snd_asihpi_meter_add()
2177 snd_control.info = snd_asihpi_meter_info; snd_asihpi_meter_add()
2178 snd_control.get = snd_asihpi_meter_get; snd_asihpi_meter_add()
2180 snd_control.index = subidx; snd_asihpi_meter_add()
2182 return ctl_add(card, &snd_control, asihpi); snd_asihpi_meter_add()
2188 static int snd_card_asihpi_mux_count_sources(struct snd_kcontrol *snd_control) snd_card_asihpi_mux_count_sources() argument
2190 u32 h_control = snd_control->private_value; snd_card_asihpi_mux_count_sources()
2286 struct snd_kcontrol_new snd_control; snd_asihpi_mux_add() local
2288 asihpi_ctl_init(&snd_control, hpi_ctl, "Route"); snd_asihpi_mux_add()
2289 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; snd_asihpi_mux_add()
2290 snd_control.info = snd_asihpi_mux_info; snd_asihpi_mux_add()
2291 snd_control.get = snd_asihpi_mux_get; snd_asihpi_mux_add()
2292 snd_control.put = snd_asihpi_mux_put; snd_asihpi_mux_add()
2294 return ctl_add(card, &snd_control, asihpi); snd_asihpi_mux_add()
2365 struct snd_kcontrol_new snd_control; snd_asihpi_cmode_add() local
2367 asihpi_ctl_init(&snd_control, hpi_ctl, "Mode"); snd_asihpi_cmode_add()
2368 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE; snd_asihpi_cmode_add()
2369 snd_control.info = snd_asihpi_cmode_info; snd_asihpi_cmode_add()
2370 snd_control.get = snd_asihpi_cmode_get; snd_asihpi_cmode_add()
2371 snd_control.put = snd_asihpi_cmode_put; snd_asihpi_cmode_add()
2373 return ctl_add(card, &snd_control, asihpi); snd_asihpi_cmode_add()
2539 struct snd_kcontrol_new snd_control; snd_asihpi_sampleclock_add() local
2551 snd_control.private_value = hpi_ctl->h_control; snd_asihpi_sampleclock_add()
2583 asihpi_ctl_init(&snd_control, hpi_ctl, "Source"); snd_asihpi_sampleclock_add()
2584 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE ; snd_asihpi_sampleclock_add()
2585 snd_control.info = snd_asihpi_clksrc_info; snd_asihpi_sampleclock_add()
2586 snd_control.get = snd_asihpi_clksrc_get; snd_asihpi_sampleclock_add()
2587 snd_control.put = snd_asihpi_clksrc_put; snd_asihpi_sampleclock_add()
2588 if (ctl_add(card, &snd_control, asihpi) < 0) snd_asihpi_sampleclock_add()
2593 asihpi_ctl_init(&snd_control, hpi_ctl, "Localrate"); snd_asihpi_sampleclock_add()
2594 snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWRITE ; snd_asihpi_sampleclock_add()
2595 snd_control.info = snd_asihpi_clklocal_info; snd_asihpi_sampleclock_add()
2596 snd_control.get = snd_asihpi_clklocal_get; snd_asihpi_sampleclock_add()
2597 snd_control.put = snd_asihpi_clklocal_put; snd_asihpi_sampleclock_add()
2600 if (ctl_add(card, &snd_control, asihpi) < 0) snd_asihpi_sampleclock_add()
2604 asihpi_ctl_init(&snd_control, hpi_ctl, "Rate"); snd_asihpi_sampleclock_add()
2605 snd_control.access = snd_asihpi_sampleclock_add()
2607 snd_control.info = snd_asihpi_clkrate_info; snd_asihpi_sampleclock_add()
2608 snd_control.get = snd_asihpi_clkrate_get; snd_asihpi_sampleclock_add()
2610 return ctl_add(card, &snd_control, asihpi); snd_asihpi_sampleclock_add()

Completed in 58 milliseconds