Home
last modified time | relevance | path

Searched refs:master (Results 1 – 25 of 86) sorted by relevance

1234

/sound/core/
Dvmaster.c53 struct link_master *master; member
116 static int master_init(struct link_master *master) in master_init() argument
120 if (master->info.count) in master_init()
123 list_for_each_entry(slave, &master->slaves, list) { in master_init()
127 master->info = slave->info; in master_init()
128 master->info.count = 1; /* always mono */ in master_init()
130 master->val = master->info.max_val; in master_init()
131 if (master->hook) in master_init()
132 master->hook(master->hook_private_data, master->val); in master_init()
156 err = master_init(slave->master); in slave_put_val()
[all …]
Dtimer.c185 struct snd_timer_instance *master; in snd_timer_check_slave() local
189 list_for_each_entry(master, &timer->open_list_head, open_list) { in snd_timer_check_slave()
190 if (slave->slave_class == master->slave_class && in snd_timer_check_slave()
191 slave->slave_id == master->slave_id) { in snd_timer_check_slave()
193 &master->slave_list_head); in snd_timer_check_slave()
195 slave->master = master; in snd_timer_check_slave()
196 slave->timer = master->timer; in snd_timer_check_slave()
210 static void snd_timer_check_master(struct snd_timer_instance *master) in snd_timer_check_master() argument
216 if (slave->slave_class == master->slave_class && in snd_timer_check_master()
217 slave->slave_id == master->slave_id) { in snd_timer_check_master()
[all …]
/sound/soc/sh/
Dfsi.c254 struct fsi_master *master; member
344 static u32 _fsi_master_read(struct fsi_master *master, u32 reg) in _fsi_master_read() argument
349 spin_lock_irqsave(&master->lock, flags); in _fsi_master_read()
350 ret = __fsi_reg_read(master->base + reg); in _fsi_master_read()
351 spin_unlock_irqrestore(&master->lock, flags); in _fsi_master_read()
358 static void _fsi_master_mask_set(struct fsi_master *master, in _fsi_master_mask_set() argument
363 spin_lock_irqsave(&master->lock, flags); in _fsi_master_mask_set()
364 __fsi_reg_mask_set(master->base + reg, mask, data); in _fsi_master_mask_set()
365 spin_unlock_irqrestore(&master->lock, flags); in _fsi_master_mask_set()
371 static int fsi_version(struct fsi_master *master) in fsi_version() argument
[all …]
/sound/pci/ice1712/
Dphase.c60 unsigned short master[2]; member
280 unsigned short vol, unsigned short master) in wm_set_vol() argument
284 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol()
288 (master & ~WM_VOL_MUTE)) / 127) & WM_VOL_MAX]; in wm_set_vol()
349 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
366 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
367 if (vol != spec->master[ch]) { in wm_master_vol_put()
369 spec->master[ch] = vol; in wm_master_vol_put()
373 spec->master[ch]); in wm_master_vol_put()
465 spec->master[0] = WM_VOL_MUTE; in phase28_init()
[all …]
Dprodigy_hifi.c43 unsigned short master[2]; member
346 unsigned short vol, unsigned short master) in wm_set_vol() argument
350 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol()
353 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol()
363 unsigned short vol, unsigned short master) in wm8766_set_vol() argument
367 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm8766_set_vol()
370 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm8766_set_vol()
418 wm_set_vol(ice, idx, spec->vol[2 + i], spec->master[i]); in wm_dac_vol_put()
471 spec->vol[ofs + i], spec->master[i]); in wm8766_vol_put()
499 ucontrol->value.integer.value[i] = spec->master[i]; in wm_master_vol_get()
[all …]
Daureon.c66 unsigned short master[2]; member
696 … wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) in wm_set_vol() argument
700 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol()
703 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol()
763 spec->master[i] & ~WM_VOL_MUTE; in wm_master_vol_get()
778 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
779 if (vol != spec->master[ch]) { in wm_master_vol_put()
781 spec->master[ch] = vol; in wm_master_vol_put()
785 spec->master[ch]); in wm_master_vol_put()
839 spec->master[i]); in wm_vol_put()
[all …]
/sound/soc/codecs/
Dwm8776.c170 int reg, iface, master; in wm8776_set_fmt() local
175 master = 0x80; in wm8776_set_fmt()
179 master = 0x100; in wm8776_set_fmt()
191 master = 0; in wm8776_set_fmt()
228 snd_soc_update_bits(codec, WM8776_MSTRCTRL, 0x180, master); in wm8776_set_fmt()
249 int ratio_shift, master; in wm8776_hw_params() local
255 master = 0x80; in wm8776_hw_params()
260 master = 0x100; in wm8776_hw_params()
288 if (snd_soc_read(codec, WM8776_MSTRCTRL) & master) { in wm8776_hw_params()
Dmax9860.c266 u8 master; in max9860_hw_params() local
282 master = 0; in max9860_hw_params()
285 master = MAX9860_MASTER; in max9860_hw_params()
290 ifc1a |= master; in max9860_hw_params()
292 if (master) { in max9860_hw_params()
375 if (master) { in max9860_hw_params()
415 if (!master) in max9860_hw_params()
441 if (!master) { in max9860_hw_params()
Dtlv320aic26.c34 int master; member
120 if (aic26->master) in aic26_hw_params()
182 case SND_SOC_DAIFMT_CBM_CFM: aic26->master = 1; break; in aic26_set_fmt()
183 case SND_SOC_DAIFMT_CBS_CFS: aic26->master = 0; break; in aic26_set_fmt()
362 aic26->master = 1; in aic26_spi_probe()
Dcs4271.c167 bool master; member
226 cs4271->master = 0; in cs4271_set_dai_fmt()
229 cs4271->master = 1; in cs4271_set_dai_fmt()
310 bool master; /* codec mode */ member
396 if ((cs4271_clk_tab[i].master == cs4271->master) && in cs4271_hw_params()
Dadau1977.c130 bool master; member
335 if (adau1977->master) { in adau1977_hw_params()
540 if (adau1977->master) in adau1977_set_tdm_slot()
629 adau1977->master = false; in adau1977_set_dai_fmt()
633 adau1977->master = true; in adau1977_set_dai_fmt()
721 if (adau1977->master) in adau1977_startup()
Dda7210.c676 int master; member
850 if (!da7210->master) { in da7210_hw_params()
891 da7210->master = 1; in da7210_set_dai_fmt()
895 da7210->master = 0; in da7210_set_dai_fmt()
997 if (!da7210->master) in da7210_set_dai_pll()
1004 (da7210->master == da7210_pll_div[cnt].mode) && in da7210_set_dai_pll()
1074 da7210->master = 0; /* This will be set from set_fmt() */ in da7210_probe()
Dwm8770.c350 int iface, master; in wm8770_set_fmt() local
356 master = 0x100; in wm8770_set_fmt()
359 master = 0; in wm8770_set_fmt()
396 snd_soc_update_bits(codec, WM8770_MSTRCTRL, 0x100, master); in wm8770_set_fmt()
Dwm8804.c222 u16 format, master, bcp, lrp; in wm8804_set_fmt() local
251 master = 1; in wm8804_set_fmt()
254 master = 0; in wm8804_set_fmt()
262 snd_soc_update_bits(codec, WM8804_AIFRX, 0x40, master << 6); in wm8804_set_fmt()
Dda9055.c944 int master; member
1142 if (!da9055->master) { in da9055_hw_params()
1184 (da9055->master != mode)) in da9055_set_dai_fmt()
1187 da9055->master = mode; in da9055_set_dai_fmt()
1295 if (!da9055->master && (fout != 2822400)) in da9055_set_dai_pll()
1302 (da9055->master == da9055_pll_div[cnt].mode) && in da9055_set_dai_pll()
/sound/pci/ctxfi/
Dctsrc.c185 src->rsc.ops->master(&src->rsc); in src_commit_write()
203 src->rsc.ops->master(&src->rsc); in src_commit_write()
254 src->rsc.ops->master(&src->rsc); in src_default_config_memrd()
264 src->rsc.ops->master(&src->rsc); in src_default_config_memrd()
290 src->rsc.ops->master(&src->rsc); in src_default_config_memwr()
326 src->rsc.ops->master(&src->rsc); in src_default_config_arcrw()
333 src->rsc.ops->master(&src->rsc); in src_default_config_arcrw()
476 src->rsc.ops->master(&src->rsc); in put_src_rsc()
495 src->rsc.ops->master(&src->rsc); in src_enable_s()
501 src->rsc.ops->master(&src->rsc); in src_enable_s()
[all …]
Dctdaio.c87 .master = daio_master,
94 .master = daio_master,
101 .master = daio_master,
172 input->ops->master(input); in dao_set_left_input()
173 daio->rscl.ops->master(&daio->rscl); in dao_set_left_input()
183 input->ops->master(input); in dao_set_left_input()
184 daio->rscl.ops->master(&daio->rscl); in dao_set_left_input()
201 input->ops->master(input); in dao_set_right_input()
202 daio->rscr.ops->master(&daio->rscr); in dao_set_right_input()
212 input->ops->master(input); in dao_set_right_input()
[all …]
Dctamixer.c53 .master = amixer_master,
126 amixer->rsc.ops->master(&amixer->rsc); in amixer_commit_write()
128 input->ops->master(input); in amixer_commit_write()
131 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write()
149 amixer->rsc.ops->master(&amixer->rsc); in amixer_commit_write()
151 input->ops->master(input); in amixer_commit_write()
154 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write()
361 .master = sum_master,
/sound/i2c/
Di2c.c59 if (bus->master) in snd_i2c_bus_free()
80 struct snd_i2c_bus *master, struct snd_i2c_bus **ri2c) in snd_i2c_bus_create() argument
97 if (master) { in snd_i2c_bus_create()
98 list_add_tail(&bus->buses, &master->buses); in snd_i2c_bus_create()
99 bus->master = master; in snd_i2c_bus_create()
/sound/soc/pxa/
Dpxa2xx-i2s.c78 int master; member
142 pxa_i2s.master = 1; in pxa2xx_i2s_set_dai_fmt()
145 pxa_i2s.master = 0; in pxa2xx_i2s_set_dai_fmt()
184 if (pxa_i2s.master) in pxa2xx_i2s_hw_params()
/sound/mips/
Dhal2.c80 unsigned int master; /* Master frequency */ member
329 codec->master = 44100; in hal2_compute_rate()
332 codec->master = 48000; in hal2_compute_rate()
337 rate = 4 * codec->master / mod; in hal2_compute_rate()
344 unsigned int master = hal2->dac.master; in hal2_set_dac_rate() local
348 hal2_i_write16(hal2, H2I_BRES1_C1, (master == 44100) ? 1 : 0); in hal2_set_dac_rate()
355 unsigned int master = hal2->adc.master; in hal2_set_adc_rate() local
359 hal2_i_write16(hal2, H2I_BRES2_C1, (master == 44100) ? 1 : 0); in hal2_set_adc_rate()
/sound/soc/zte/
Dzx296702-i2s.c100 int master; member
205 i2s->master = 1; in zx_i2s_set_fmt()
209 i2s->master = 0; in zx_i2s_set_fmt()
280 if (i2s->master) in zx_i2s_hw_params()
/sound/soc/davinci/
Ddavinci-i2s.c431 int mcbsp_word_length, master; in davinci_i2s_hw_params() local
447 master = dev->fmt & SND_SOC_DAIFMT_MASTER_MASK; in davinci_i2s_hw_params()
451 switch (master) { in davinci_i2s_hw_params()
524 switch (master) { in davinci_i2s_hw_params()
543 switch (master) { in davinci_i2s_hw_params()
/sound/soc/tegra/
Dtegra20_das.c66 int tegra20_das_connect_dap_to_dap(int dap, int otherdap, int master, in tegra20_das_connect_dap_to_dap() argument
80 !!master << TEGRA20_DAS_DAP_CTRL_SEL_DAP_MS_SEL_P; in tegra20_das_connect_dap_to_dap()
/sound/usb/usx2y/
Dus122l.h14 struct file *master; member

1234