Home
last modified time | relevance | path

Searched refs:ctrl (Results 1 – 25 of 45) sorted by relevance

12

/sound/soc/codecs/
Dwcd-clsh-v2.c119 static inline void wcd_enable_clsh_block(struct wcd_clsh_ctrl *ctrl, in wcd_enable_clsh_block() argument
122 struct snd_soc_component *comp = ctrl->comp; in wcd_enable_clsh_block()
124 if ((enable && ++ctrl->clsh_users == 1) || in wcd_enable_clsh_block()
125 (!enable && --ctrl->clsh_users == 0)) in wcd_enable_clsh_block()
129 if (ctrl->clsh_users < 0) in wcd_enable_clsh_block()
130 ctrl->clsh_users = 0; in wcd_enable_clsh_block()
181 static void wcd_clsh_buck_ctrl(struct wcd_clsh_ctrl *ctrl, in wcd_clsh_buck_ctrl() argument
185 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_buck_ctrl()
188 if ((enable && (++ctrl->buck_users == 1)) || in wcd_clsh_buck_ctrl()
189 (!enable && (--ctrl->buck_users == 0))) in wcd_clsh_buck_ctrl()
[all …]
Dsigmadsp.c110 struct sigmadsp_control *ctrl = (void *)kcontrol->private_value; in sigmadsp_ctrl_info() local
113 info->count = ctrl->num_bytes; in sigmadsp_ctrl_info()
119 struct sigmadsp_control *ctrl, void *data) in sigmadsp_ctrl_write() argument
122 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write()
123 return sigmadsp->ops->safeload(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write()
124 ctrl->num_bytes); in sigmadsp_ctrl_write()
126 return sigmadsp_write(sigmadsp, ctrl->addr, data, in sigmadsp_ctrl_write()
127 ctrl->num_bytes); in sigmadsp_ctrl_write()
133 struct sigmadsp_control *ctrl = (void *)kcontrol->private_value; in sigmadsp_ctrl_put() local
143 ret = sigmadsp_ctrl_write(sigmadsp, ctrl, data); in sigmadsp_ctrl_put()
[all …]
Dwcd-clsh-v2.h56 extern void wcd_clsh_ctrl_free(struct wcd_clsh_ctrl *ctrl);
57 extern int wcd_clsh_ctrl_get_state(struct wcd_clsh_ctrl *ctrl);
58 extern int wcd_clsh_ctrl_set_state(struct wcd_clsh_ctrl *ctrl,
62 extern void wcd_clsh_set_hph_mode(struct wcd_clsh_ctrl *ctrl,
Dsrc4xxx.c158 unsigned int ctrl; in src4xxx_set_dai_fmt() local
162 ctrl = SRC4XXX_BUS_MASTER; in src4xxx_set_dai_fmt()
166 ctrl = 0; in src4xxx_set_dai_fmt()
176 ctrl |= SRC4XXX_BUS_I2S; in src4xxx_set_dai_fmt()
179 ctrl |= SRC4XXX_BUS_LEFT_J; in src4xxx_set_dai_fmt()
182 ctrl |= SRC4XXX_BUS_RIGHT_J_24; in src4xxx_set_dai_fmt()
198 SRC4XXX_BUS_FMT_MS_MASK, ctrl); in src4xxx_set_dai_fmt()
Dadau1373.c1038 unsigned int ctrl; in adau1373_hw_params() local
1079 ctrl = ADAU1373_DAI_WLEN_16; in adau1373_hw_params()
1082 ctrl = ADAU1373_DAI_WLEN_20; in adau1373_hw_params()
1085 ctrl = ADAU1373_DAI_WLEN_24; in adau1373_hw_params()
1088 ctrl = ADAU1373_DAI_WLEN_32; in adau1373_hw_params()
1095 ADAU1373_DAI_WLEN_MASK, ctrl); in adau1373_hw_params()
1103 unsigned int ctrl; in adau1373_set_dai_fmt() local
1107 ctrl = ADAU1373_DAI_MASTER; in adau1373_set_dai_fmt()
1111 ctrl = 0; in adau1373_set_dai_fmt()
1120 ctrl |= ADAU1373_DAI_FORMAT_I2S; in adau1373_set_dai_fmt()
[all …]
/sound/soc/atmel/
Dmchp-spdiftx.c212 struct mchp_spdiftx_mixer_control *ctrl = &dev->control; in mchp_spdiftx_channel_status_write() local
216 for (i = 0; i < ARRAY_SIZE(ctrl->ch_stat) / 4; i++) { in mchp_spdiftx_channel_status_write()
217 val = (ctrl->ch_stat[(i * 4) + 0] << 0) | in mchp_spdiftx_channel_status_write()
218 (ctrl->ch_stat[(i * 4) + 1] << 8) | in mchp_spdiftx_channel_status_write()
219 (ctrl->ch_stat[(i * 4) + 2] << 16) | in mchp_spdiftx_channel_status_write()
220 (ctrl->ch_stat[(i * 4) + 3] << 24); in mchp_spdiftx_channel_status_write()
228 struct mchp_spdiftx_mixer_control *ctrl = &dev->control; in mchp_spdiftx_user_data_write() local
232 for (i = 0; i < ARRAY_SIZE(ctrl->user_data) / 4; i++) { in mchp_spdiftx_user_data_write()
233 val = (ctrl->user_data[(i * 4) + 0] << 0) | in mchp_spdiftx_user_data_write()
234 (ctrl->user_data[(i * 4) + 1] << 8) | in mchp_spdiftx_user_data_write()
[all …]
Dmchp-spdifrx.c246 struct mchp_spdifrx_mixer_control *ctrl = &dev->control; in mchp_spdifrx_channel_status_read() local
247 u8 *ch_stat = &ctrl->ch_stat[channel].data[0]; in mchp_spdifrx_channel_status_read()
251 for (i = 0; i < ARRAY_SIZE(ctrl->ch_stat[channel].data) / 4; i++) { in mchp_spdifrx_channel_status_read()
263 struct mchp_spdifrx_mixer_control *ctrl = &dev->control; in mchp_spdifrx_channel_user_data_read() local
264 u8 *user_data = &ctrl->user_data[channel].data[0]; in mchp_spdifrx_channel_user_data_read()
268 for (i = 0; i < ARRAY_SIZE(ctrl->user_data[channel].data) / 4; i++) { in mchp_spdifrx_channel_user_data_read()
280 struct mchp_spdifrx_mixer_control *ctrl = &dev->control; in mchp_spdif_interrupt() local
297 complete(&ctrl->user_data[ch].done); in mchp_spdif_interrupt()
306 complete(&ctrl->ch_stat[ch].done); in mchp_spdif_interrupt()
484 struct mchp_spdifrx_mixer_control *ctrl = &dev->control; in mchp_spdifrx_cs_get() local
[all …]
/sound/soc/spear/
Dspdif_in.c48 u32 ctrl = SPDIF_IN_PRTYEN | SPDIF_IN_STATEN | SPDIF_IN_USREN | in spdif_in_configure() local
50 ctrl |= SPDIF_MODE_16BIT | SPDIF_FIFO_THRES_16; in spdif_in_configure()
52 writel(ctrl, host->io_base + SPDIF_IN_CTRL); in spdif_in_configure()
79 u32 ctrl = readl(host->io_base + SPDIF_IN_CTRL); in spdif_in_format() local
83 ctrl |= SPDIF_XTRACT_16BIT; in spdif_in_format()
87 ctrl &= ~SPDIF_XTRACT_16BIT; in spdif_in_format()
91 writel(ctrl, host->io_base + SPDIF_IN_CTRL); in spdif_in_format()
114 u32 ctrl; in spdif_in_trigger() local
128 ctrl = readl(host->io_base + SPDIF_IN_CTRL); in spdif_in_trigger()
129 ctrl |= SPDIF_IN_SAMPLE | SPDIF_IN_ENB; in spdif_in_trigger()
[all …]
Dspdif_out.c94 u32 divider, ctrl; in spdif_out_clock() local
99 ctrl = readl(host->io_base + SPDIF_OUT_CTRL); in spdif_out_clock()
100 ctrl &= ~SPDIF_DIVIDER_MASK; in spdif_out_clock()
101 ctrl |= (divider << SPDIF_DIVIDER_SHIFT) & SPDIF_DIVIDER_MASK; in spdif_out_clock()
102 writel(ctrl, host->io_base + SPDIF_OUT_CTRL); in spdif_out_clock()
155 u32 ctrl; in spdif_out_trigger() local
165 ctrl = readl(host->io_base + SPDIF_OUT_CTRL); in spdif_out_trigger()
166 ctrl &= ~SPDIF_OPMODE_MASK; in spdif_out_trigger()
168 ctrl |= SPDIF_OPMODE_AUD_DATA | in spdif_out_trigger()
171 ctrl |= SPDIF_OPMODE_MUTE_PCM; in spdif_out_trigger()
[all …]
/sound/soc/fsl/
Dfsl_spdif.c259 struct spdif_mixer_control *ctrl = &spdif_priv->fsl_spdif_control; in spdif_irq_uqrx_full() local
266 pos = &ctrl->upos; in spdif_irq_uqrx_full()
271 pos = &ctrl->qpos; in spdif_irq_uqrx_full()
290 ctrl->subcode[*pos++] = val >> 16; in spdif_irq_uqrx_full()
291 ctrl->subcode[*pos++] = val >> 8; in spdif_irq_uqrx_full()
292 ctrl->subcode[*pos++] = val; in spdif_irq_uqrx_full()
298 struct spdif_mixer_control *ctrl = &spdif_priv->fsl_spdif_control; in spdif_irq_uq_sync() local
304 if (ctrl->qpos == 0) in spdif_irq_uq_sync()
308 ctrl->ready_buf = (ctrl->qpos - 1) / SPDIF_QSUB_SIZE + 1; in spdif_irq_uq_sync()
314 struct spdif_mixer_control *ctrl = &spdif_priv->fsl_spdif_control; in spdif_irq_uq_err() local
[all …]
/sound/soc/amd/acp/
Dchip_offset_byte.h23 #define ACP_EXTERNAL_INTR_REG_ADDR(adata, offset, ctrl) \ argument
24 (adata->acp_base + adata->rsrc->irq_reg_offset + offset + (ctrl * 0x04))
27 #define ACP_EXTERNAL_INTR_CNTL(adata, ctrl) ACP_EXTERNAL_INTR_REG_ADDR(adata, 0x4, ctrl) argument
28 #define ACP_EXTERNAL_INTR_STAT(adata, ctrl) ACP_EXTERNAL_INTR_REG_ADDR(adata, \ argument
29 (0x4 + (adata->rsrc->no_of_ctrls * 0x04)), ctrl)
/sound/pci/
Dens1370.c376 unsigned int ctrl; /* control register */ member
835 ensoniq->ctrl |= what; in snd_ensoniq_trigger()
837 ensoniq->ctrl &= ~what; in snd_ensoniq_trigger()
838 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_trigger()
865 ensoniq->ctrl &= ~ES_DAC1_EN; in snd_ensoniq_playback1_prepare()
869 ensoniq->ctrl |= ES_1373_BYPASS_P1; in snd_ensoniq_playback1_prepare()
871 ensoniq->ctrl &= ~ES_1373_BYPASS_P1; in snd_ensoniq_playback1_prepare()
873 outl(ensoniq->ctrl, ES_REG(ensoniq, CONTROL)); in snd_ensoniq_playback1_prepare()
883 ensoniq->ctrl &= ~ES_1370_WTSRSELM; in snd_ensoniq_playback1_prepare()
885 case 5512: ensoniq->ctrl |= ES_1370_WTSRSEL(0); break; in snd_ensoniq_playback1_prepare()
[all …]
Dcmipci.c448 unsigned int ctrl; /* FUNCTRL0 current value */ member
684 snd_cmipci_write(cm, CM_REG_FUNCTRL0, cm->ctrl | reset); in snd_cmipci_ch_reset()
685 snd_cmipci_write(cm, CM_REG_FUNCTRL0, cm->ctrl & ~reset); in snd_cmipci_ch_reset()
797 cm->ctrl &= ~val; in snd_cmipci_pcm_prepare()
799 cm->ctrl |= val; in snd_cmipci_pcm_prepare()
800 snd_cmipci_write(cm, CM_REG_FUNCTRL0, cm->ctrl); in snd_cmipci_pcm_prepare()
875 cm->ctrl |= chen; in snd_cmipci_pcm_trigger()
877 snd_cmipci_write(cm, CM_REG_FUNCTRL0, cm->ctrl); in snd_cmipci_pcm_trigger()
878 dev_dbg(cm->card->dev, "functrl0 = %08x\n", cm->ctrl); in snd_cmipci_pcm_trigger()
885 cm->ctrl &= ~chen; in snd_cmipci_pcm_trigger()
[all …]
/sound/soc/ti/
Domap-mcpdm.c119 u32 ctrl = omap_mcpdm_read(mcpdm, MCPDM_REG_CTRL); in omap_mcpdm_start() local
122 ctrl |= (MCPDM_SW_DN_RST | MCPDM_SW_UP_RST); in omap_mcpdm_start()
123 omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl); in omap_mcpdm_start()
125 ctrl |= link_mask; in omap_mcpdm_start()
126 omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl); in omap_mcpdm_start()
128 ctrl &= ~(MCPDM_SW_DN_RST | MCPDM_SW_UP_RST); in omap_mcpdm_start()
129 omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl); in omap_mcpdm_start()
138 u32 ctrl = omap_mcpdm_read(mcpdm, MCPDM_REG_CTRL); in omap_mcpdm_stop() local
141 ctrl |= (MCPDM_SW_DN_RST | MCPDM_SW_UP_RST); in omap_mcpdm_stop()
142 omap_mcpdm_write(mcpdm, MCPDM_REG_CTRL, ctrl); in omap_mcpdm_stop()
[all …]
Domap-dmic.c63 u32 ctrl = omap_dmic_read(dmic, OMAP_DMIC_CTRL_REG); in omap_dmic_start() local
69 omap_dmic_write(dmic, OMAP_DMIC_CTRL_REG, ctrl | dmic->ch_enabled); in omap_dmic_start()
74 u32 ctrl = omap_dmic_read(dmic, OMAP_DMIC_CTRL_REG); in omap_dmic_stop() local
76 ctrl & ~OMAP_DMIC_UP_ENABLE_MASK); in omap_dmic_stop()
231 u32 ctrl; in omap_dmic_dai_prepare() local
240 ctrl = omap_dmic_read(dmic, OMAP_DMIC_CTRL_REG); in omap_dmic_dai_prepare()
243 ctrl &= ~(OMAP_DMIC_FORMAT | OMAP_DMIC_POLAR_MASK); in omap_dmic_dai_prepare()
244 ctrl |= (OMAP_DMICOUTFORMAT_LJUST | OMAP_DMIC_POLAR1 | in omap_dmic_dai_prepare()
248 ctrl &= ~OMAP_DMIC_CLK_DIV_MASK; in omap_dmic_dai_prepare()
249 ctrl |= OMAP_DMIC_CLK_DIV(dmic->clk_div); in omap_dmic_dai_prepare()
[all …]
/sound/soc/jz4740/
Djz4740-i2s.c193 uint32_t ctrl; in jz4740_i2s_trigger() local
201 ctrl = jz4740_i2s_read(i2s, JZ_REG_AIC_CTRL); in jz4740_i2s_trigger()
207 ctrl |= mask; in jz4740_i2s_trigger()
212 ctrl &= ~mask; in jz4740_i2s_trigger()
218 jz4740_i2s_write(i2s, JZ_REG_AIC_CTRL, ctrl); in jz4740_i2s_trigger()
279 uint32_t ctrl, div_reg; in jz4740_i2s_hw_params() local
282 ctrl = jz4740_i2s_read(i2s, JZ_REG_AIC_CTRL); in jz4740_i2s_hw_params()
299 ctrl &= ~JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE_MASK; in jz4740_i2s_hw_params()
300 ctrl |= sample_size << JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE_OFFSET; in jz4740_i2s_hw_params()
302 ctrl |= JZ_AIC_CTRL_MONO_TO_STEREO; in jz4740_i2s_hw_params()
[all …]
/sound/soc/pxa/
Dpxa2xx-ac97.c224 struct ac97_controller *ctrl; in pxa2xx_ac97_dev_probe() local
251 ctrl = snd_ac97_controller_register(&pxa2xx_ac97_ops, &pdev->dev, in pxa2xx_ac97_dev_probe()
254 if (IS_ERR(ctrl)) in pxa2xx_ac97_dev_probe()
255 return PTR_ERR(ctrl); in pxa2xx_ac97_dev_probe()
257 platform_set_drvdata(pdev, ctrl); in pxa2xx_ac97_dev_probe()
268 struct ac97_controller *ctrl = platform_get_drvdata(pdev); in pxa2xx_ac97_dev_remove() local
270 snd_ac97_controller_unregister(ctrl); in pxa2xx_ac97_dev_remove()
Dmmp-sspa.c42 u32 ctrl; member
172 sspa->ctrl = 0; in mmp_sspa_set_dai_fmt()
194 sspa->ctrl |= SSPA_CTL_XDATDLY(1); in mmp_sspa_set_dai_fmt()
217 u32 sspa_ctrl = sspa->ctrl; in mmp_sspa_hw_params()
445 __raw_writel(sspa->ctrl, sspa->tx_base + SSPA_CTL); in mmp_sspa_open()
446 __raw_writel(sspa->ctrl, sspa->rx_base + SSPA_CTL); in mmp_sspa_open()
/sound/isa/gus/
Dgus_io.c433 int voice, ctrl; in snd_gf1_print_voice_registers() local
436 …printk(KERN_INFO " -%i- GF1 voice ctrl, ramp ctrl = 0x%x, 0x%x\n", voice, ctrl = snd_gf1_i_read8… in snd_gf1_print_voice_registers()
438 …ddr(gus, 2, ctrl & 4), snd_gf1_i_read_addr(gus, 2, (ctrl & 4) ^ 4), snd_gf1_i_read_addr(gus, 4, ct… in snd_gf1_print_voice_registers()
441 …x%x (0x%x)\n", voice, snd_gf1_i_read_addr(gus, 0x0a, ctrl & 4), snd_gf1_i_read_addr(gus, 0x0a, (ct… in snd_gf1_print_voice_registers()
446 …NFO " -%i- GFA1 effect address = 0x%x\n", voice, snd_gf1_i_read_addr(gus, 0x11, ctrl & 4)); in snd_gf1_print_voice_registers()
/sound/sparc/
Ddbri.c128 __u8 ctrl[4]; /* Ctrl mode: Time slots 1-4 */ member
1371 mm->ctrl[0] = CS4215_RSRVD_1 | CS4215_MLB; in cs4215_init_data()
1372 mm->ctrl[1] = CS4215_DFR_ULAW | CS4215_FREQ[0].csval; in cs4215_init_data()
1373 mm->ctrl[2] = CS4215_XCLK | CS4215_BSEL_128 | CS4215_FREQ[0].xtal; in cs4215_init_data()
1374 mm->ctrl[3] = 0; in cs4215_init_data()
1542 dbri->mm.ctrl[0] &= ~CS4215_CLB; in cs4215_setctrl()
1543 xmit_fixed(dbri, 17, *(int *)dbri->mm.ctrl); in cs4215_setctrl()
1568 dbri->mm.ctrl[0] |= CS4215_CLB; in cs4215_setctrl()
1569 xmit_fixed(dbri, 17, *(int *)dbri->mm.ctrl); in cs4215_setctrl()
1603 dbri->mm.ctrl[1] = CS4215_DFR_ULAW; in cs4215_prepare()
[all …]
/sound/drivers/
Dserial-generic.c306 drvdata->serdev->ctrl->nr); in snd_serial_generic_rmidi()
308 drvdata->serdev->ctrl->nr); in snd_serial_generic_rmidi()
333 sprintf(card->shortname, "SerialMIDI-%d", serdev->ctrl->nr); in snd_serial_generic_probe()
334 sprintf(card->longname, "Serial MIDI device at serial%d", serdev->ctrl->nr); in snd_serial_generic_probe()
/sound/soc/sti/
Dsti_uniperif.c260 struct snd_kcontrol_new *ctrl; in sti_uniperiph_dai_create_ctrl() local
271 ctrl = &uni->snd_ctrls[i]; in sti_uniperiph_dai_create_ctrl()
272 ctrl->index = uni->id; in sti_uniperiph_dai_create_ctrl()
273 ctrl->device = uni->id; in sti_uniperiph_dai_create_ctrl()
/sound/isa/cs423x/
Dcs4236.c81 struct pnp_dev *ctrl; member
278 acard->ctrl = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_card_cs423x_pnpc()
279 if (acard->ctrl == NULL) in snd_card_cs423x_pnpc()
292 if (acard->ctrl && cport[dev] > 0) { in snd_card_cs423x_pnpc()
293 if (snd_cs423x_pnp_init_ctrl(dev, acard->ctrl) < 0) in snd_card_cs423x_pnpc()
/sound/soc/mediatek/mt2701/
DMakefile3 snd-soc-mt2701-afe-objs := mt2701-afe-pcm.o mt2701-afe-clock-ctrl.o
/sound/soc/meson/
DMakefile4 snd-soc-meson-aiu-objs += aiu-acodec-ctrl.o
5 snd-soc-meson-aiu-objs += aiu-codec-ctrl.o

12