Home
last modified time | relevance | path

Searched refs:portidx (Results 1 – 7 of 7) sorted by relevance

/linux/sound/soc/codecs/
H A Dwsa881x.c796 int portidx = mixer->reg; in wsa881x_get_port() local
798 ucontrol->value.integer.value[0] = data->port_enable[portidx]; in wsa881x_get_port()
828 int portidx = mixer->reg; in wsa881x_set_port() local
831 if (data->port_enable[portidx]) in wsa881x_set_port()
834 data->port_enable[portidx] = true; in wsa881x_set_port()
836 if (!data->port_enable[portidx]) in wsa881x_set_port()
839 data->port_enable[portidx] = false; in wsa881x_set_port()
842 if (portidx == WSA881X_PORT_BOOST) /* Boost Switch */ in wsa881x_set_port()
843 wsa881x_boost_ctrl(comp, data->port_enable[portidx]); in wsa881x_set_port()
H A Dwsa883x.c1117 int portidx = mixer->reg; in wsa883x_get_swr_port() local
1119 ucontrol->value.integer.value[0] = data->port_enable[portidx]; in wsa883x_get_swr_port()
1130 int portidx = mixer->reg; in wsa883x_set_swr_port() local
1133 if (data->port_enable[portidx]) in wsa883x_set_swr_port()
1136 data->port_enable[portidx] = true; in wsa883x_set_swr_port()
1138 if (!data->port_enable[portidx]) in wsa883x_set_swr_port()
1141 data->port_enable[portidx] = false; in wsa883x_set_swr_port()
H A Dwcd937x.c1279 int portidx; in wcd937x_set_compander() local
1297 portidx = wcd->ch_info[mc->reg].port_num; in wcd937x_set_compander()
1300 wcd937x_connect_port(wcd, portidx, mc->reg, true); in wcd937x_set_compander()
1302 wcd937x_connect_port(wcd, portidx, mc->reg, false); in wcd937x_set_compander()
1316 int portidx; in wcd937x_get_swr_port() local
1319 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_get_swr_port()
1321 ucontrol->value.integer.value[0] = wcd->port_enable[portidx]; in wcd937x_get_swr_port()
1335 int portidx; in wcd937x_set_swr_port() local
1340 portidx = wcd->ch_info[ch_idx].port_num; in wcd937x_set_swr_port()
1344 if (enable == wcd->port_enable[portidx]) { in wcd937x_set_swr_port()
[all …]
H A Dwsa884x.c1618 int portidx = mixer->reg; in wsa884x_get_swr_port() local
1620 ucontrol->value.integer.value[0] = wsa884x->port_enable[portidx]; in wsa884x_get_swr_port()
1631 int portidx = mixer->reg; in wsa884x_set_swr_port() local
1634 if (wsa884x->port_enable[portidx]) in wsa884x_set_swr_port()
1637 wsa884x->port_enable[portidx] = true; in wsa884x_set_swr_port()
1639 if (!wsa884x->port_enable[portidx]) in wsa884x_set_swr_port()
1642 wsa884x->port_enable[portidx] = false; in wsa884x_set_swr_port()
H A Dwcd938x.c1585 int portidx; in wcd938x_set_compander() local
1599 portidx = wcd->ch_info[mc->reg].port_num; in wcd938x_set_compander()
1602 wcd938x_connect_port(wcd, portidx, mc->reg, true); in wcd938x_set_compander()
1604 wcd938x_connect_port(wcd, portidx, mc->reg, false); in wcd938x_set_compander()
1858 int portidx, ch_idx = mixer->reg; in wcd938x_get_swr_port() local
1862 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_get_swr_port()
1864 ucontrol->value.integer.value[0] = wcd->port_enable[portidx]; in wcd938x_get_swr_port()
1878 int portidx; in wcd938x_set_swr_port() local
1884 portidx = wcd->ch_info[ch_idx].port_num; in wcd938x_set_swr_port()
1890 wcd->port_enable[portidx] = enable; in wcd938x_set_swr_port()
[all …]
H A Dwcd939x.c1541 int portidx = wcd->ch_info[mc->reg].port_num; in wcd939x_set_compander() local
1549 wcd939x_connect_port(wcd, portidx, mc->reg, true); in wcd939x_set_compander()
1551 wcd939x_connect_port(wcd, portidx, mc->reg, false); in wcd939x_set_compander()
1794 unsigned int portidx = wcd->ch_info[mixer->reg].port_num; in wcd939x_get_swr_port() local
1796 ucontrol->value.integer.value[0] = wcd->port_enable[portidx] ? 1 : 0; in wcd939x_get_swr_port()
1821 unsigned int portidx = wcd->ch_info[mixer->reg].port_num; in wcd939x_set_swr_port() local
1823 wcd->port_enable[portidx] = !!ucontrol->value.integer.value[0]; in wcd939x_set_swr_port()
1825 wcd939x_connect_port(wcd, portidx, mixer->reg, wcd->port_enable[portidx]); in wcd939x_set_swr_port()
/linux/sound/usb/
H A Dmidi.c211 int portidx, uint8_t *data, int length) in snd_usbmidi_input_data() argument
213 struct usbmidi_in_port *port = &ep->ports[portidx]; in snd_usbmidi_input_data()
216 dev_dbg(&ep->umidi->dev->dev, "unexpected port %d!\n", portidx); in snd_usbmidi_input_data()