/sound/core/ |
D | vmaster.c | 49 struct link_master *master; member 115 static int master_init(struct link_master *master) in master_init() argument 119 if (master->info.count) in master_init() 122 list_for_each_entry(slave, &master->slaves, list) { in master_init() 126 master->info = slave->info; in master_init() 127 master->info.count = 1; /* always mono */ in master_init() 129 master->val = master->info.max_val; in master_init() 130 if (master->hook) in master_init() 131 master->hook(master->hook_private_data, master->val); in master_init() 155 err = master_init(slave->master); in slave_put_val() [all …]
|
D | timer.c | 175 struct snd_timer_instance *master; in snd_timer_check_slave() local 179 list_for_each_entry(master, &timer->open_list_head, open_list) { in snd_timer_check_slave() 180 if (slave->slave_class == master->slave_class && in snd_timer_check_slave() 181 slave->slave_id == master->slave_id) { in snd_timer_check_slave() 182 if (master->timer->num_instances >= in snd_timer_check_slave() 183 master->timer->max_instances) in snd_timer_check_slave() 186 &master->slave_list_head); in snd_timer_check_slave() 187 master->timer->num_instances++; in snd_timer_check_slave() 189 slave->master = master; in snd_timer_check_slave() 190 slave->timer = master->timer; in snd_timer_check_slave() [all …]
|
/sound/soc/sh/ |
D | fsi.c | 250 struct fsi_master *master; member 345 static u32 _fsi_master_read(struct fsi_master *master, u32 reg) in _fsi_master_read() argument 350 spin_lock_irqsave(&master->lock, flags); in _fsi_master_read() 351 ret = __fsi_reg_read(master->base + reg); in _fsi_master_read() 352 spin_unlock_irqrestore(&master->lock, flags); in _fsi_master_read() 359 static void _fsi_master_mask_set(struct fsi_master *master, in _fsi_master_mask_set() argument 364 spin_lock_irqsave(&master->lock, flags); in _fsi_master_mask_set() 365 __fsi_reg_mask_set(master->base + reg, mask, data); in _fsi_master_mask_set() 366 spin_unlock_irqrestore(&master->lock, flags); in _fsi_master_mask_set() 372 static int fsi_version(struct fsi_master *master) in fsi_version() argument [all …]
|
/sound/pci/ice1712/ |
D | phase.c | 46 unsigned short master[2]; member 266 unsigned short vol, unsigned short master) in wm_set_vol() argument 270 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 274 (master & ~WM_VOL_MUTE)) / 127) & WM_VOL_MAX]; in wm_set_vol() 335 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get() 352 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 353 if (vol != spec->master[ch]) { in wm_master_vol_put() 355 spec->master[ch] = vol; in wm_master_vol_put() 359 spec->master[ch]); in wm_master_vol_put() 451 spec->master[0] = WM_VOL_MUTE; in phase28_init() [all …]
|
D | prodigy_hifi.c | 29 unsigned short master[2]; member 313 unsigned short vol, unsigned short master) in wm_set_vol() argument 317 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm_set_vol() 320 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm_set_vol() 330 unsigned short vol, unsigned short master) in wm8766_set_vol() argument 334 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) in wm8766_set_vol() 337 nvol = (((vol & ~WM_VOL_MUTE) * (master & ~WM_VOL_MUTE)) / 128) in wm8766_set_vol() 385 wm_set_vol(ice, idx, spec->vol[2 + i], spec->master[i]); in wm_dac_vol_put() 438 spec->vol[ofs + i], spec->master[i]); in wm8766_vol_put() 466 ucontrol->value.integer.value[i] = spec->master[i]; in wm_master_vol_get() [all …]
|
D | aureon.c | 52 unsigned short master[2]; member 682 … wm_set_vol(struct snd_ice1712 *ice, unsigned int index, unsigned short vol, unsigned short master) in wm_set_vol() argument 686 if ((master & WM_VOL_MUTE) || (vol & WM_VOL_MUTE)) { in wm_set_vol() 689 nvol = ((vol % WM_VOL_CNT) * (master % WM_VOL_CNT)) / in wm_set_vol() 749 spec->master[i] & ~WM_VOL_MUTE; in wm_master_vol_get() 764 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put() 765 if (vol != spec->master[ch]) { in wm_master_vol_put() 767 spec->master[ch] = vol; in wm_master_vol_put() 771 spec->master[ch]); in wm_master_vol_put() 825 spec->master[i]); in wm_vol_put() [all …]
|
/sound/soc/codecs/ |
D | wm8776.c | 167 int reg, iface, master; in wm8776_set_fmt() local 172 master = 0x80; in wm8776_set_fmt() 176 master = 0x100; in wm8776_set_fmt() 188 master = 0; in wm8776_set_fmt() 225 snd_soc_component_update_bits(component, WM8776_MSTRCTRL, 0x180, master); in wm8776_set_fmt() 246 int ratio_shift, master; in wm8776_hw_params() local 252 master = 0x80; in wm8776_hw_params() 257 master = 0x100; in wm8776_hw_params() 285 if (snd_soc_component_read32(component, WM8776_MSTRCTRL) & master) { in wm8776_hw_params()
|
D | max9860.c | 257 u8 master; in max9860_hw_params() local 273 master = 0; in max9860_hw_params() 276 master = MAX9860_MASTER; in max9860_hw_params() 281 ifc1a |= master; in max9860_hw_params() 283 if (master) { in max9860_hw_params() 366 if (master) { in max9860_hw_params() 406 if (!master) in max9860_hw_params() 432 if (!master) { in max9860_hw_params()
|
D | tlv320aic26.c | 35 int master; member 121 if (aic26->master) in aic26_hw_params() 183 case SND_SOC_DAIFMT_CBM_CFM: aic26->master = 1; break; in aic26_set_fmt() 184 case SND_SOC_DAIFMT_CBS_CFS: aic26->master = 0; break; in aic26_set_fmt() 365 aic26->master = 1; in aic26_spi_probe()
|
D | cs4271.c | 158 bool master; member 217 cs4271->master = false; in cs4271_set_dai_fmt() 220 cs4271->master = true; in cs4271_set_dai_fmt() 301 bool master; /* codec mode */ member 387 if ((cs4271_clk_tab[i].master == cs4271->master) && in cs4271_hw_params()
|
D | max9867.c | 166 bool master, dsp_a; member 197 if (max9867->master) { in max9867_dai_hw_params() 306 max9867->master = true; in max9867_dai_set_fmt() 311 max9867->master = false; in max9867_dai_set_fmt()
|
D | da7210.c | 671 int master; member 845 if (!da7210->master) { in da7210_hw_params() 886 da7210->master = 1; in da7210_set_dai_fmt() 890 da7210->master = 0; in da7210_set_dai_fmt() 992 if (!da7210->master) in da7210_set_dai_pll() 999 (da7210->master == da7210_pll_div[cnt].mode) && in da7210_set_dai_pll() 1069 da7210->master = 0; /* This will be set from set_fmt() */ in da7210_probe()
|
D | adau1977.c | 129 bool master; member 334 if (adau1977->master) { in adau1977_hw_params() 537 if (adau1977->master) in adau1977_set_tdm_slot() 626 adau1977->master = false; in adau1977_set_dai_fmt() 630 adau1977->master = true; in adau1977_set_dai_fmt() 718 if (adau1977->master) in adau1977_startup()
|
D | da7219.c | 803 if (da7219->master) { in da7219_dai_event() 851 if (da7219->master) { in da7219_dai_event() 1307 da7219->master = true; in da7219_set_dai_fmt() 1310 da7219->master = false; in da7219_set_dai_fmt() 1463 if (da7219->master) { in da7219_set_dai_tdm_slot() 1591 if (da7219->master && wclk) { in da7219_hw_params() 1612 if (da7219->master && !da7219->tdm_en) { in da7219_hw_params() 1898 if (!da7219->master) in da7219_wclk_prepare() 1915 if (!da7219->master) in da7219_wclk_unprepare() 1930 if (!da7219->master) in da7219_wclk_is_prepared() [all …]
|
/sound/pci/ctxfi/ |
D | ctsrc.c | 181 src->rsc.ops->master(&src->rsc); in src_commit_write() 199 src->rsc.ops->master(&src->rsc); in src_commit_write() 250 src->rsc.ops->master(&src->rsc); in src_default_config_memrd() 260 src->rsc.ops->master(&src->rsc); in src_default_config_memrd() 286 src->rsc.ops->master(&src->rsc); in src_default_config_memwr() 322 src->rsc.ops->master(&src->rsc); in src_default_config_arcrw() 329 src->rsc.ops->master(&src->rsc); in src_default_config_arcrw() 472 src->rsc.ops->master(&src->rsc); in put_src_rsc() 491 src->rsc.ops->master(&src->rsc); in src_enable_s() 497 src->rsc.ops->master(&src->rsc); in src_enable_s() [all …]
|
D | ctdaio.c | 83 .master = daio_master, 90 .master = daio_master, 97 .master = daio_master, 168 input->ops->master(input); in dao_set_left_input() 169 daio->rscl.ops->master(&daio->rscl); in dao_set_left_input() 179 input->ops->master(input); in dao_set_left_input() 180 daio->rscl.ops->master(&daio->rscl); in dao_set_left_input() 197 input->ops->master(input); in dao_set_right_input() 198 daio->rscr.ops->master(&daio->rscr); in dao_set_right_input() 208 input->ops->master(input); in dao_set_right_input() [all …]
|
D | ctamixer.c | 49 .master = amixer_master, 122 amixer->rsc.ops->master(&amixer->rsc); in amixer_commit_write() 124 input->ops->master(input); in amixer_commit_write() 127 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write() 145 amixer->rsc.ops->master(&amixer->rsc); in amixer_commit_write() 147 input->ops->master(input); in amixer_commit_write() 150 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write() 357 .master = sum_master,
|
/sound/i2c/ |
D | i2c.c | 45 if (bus->master) in snd_i2c_bus_free() 66 struct snd_i2c_bus *master, struct snd_i2c_bus **ri2c) in snd_i2c_bus_create() argument 83 if (master) { in snd_i2c_bus_create() 84 list_add_tail(&bus->buses, &master->buses); in snd_i2c_bus_create() 85 bus->master = master; in snd_i2c_bus_create()
|
/sound/soc/pxa/ |
D | pxa2xx-i2s.c | 74 int master; member 136 pxa_i2s.master = 1; in pxa2xx_i2s_set_dai_fmt() 139 pxa_i2s.master = 0; in pxa2xx_i2s_set_dai_fmt() 178 if (pxa_i2s.master) in pxa2xx_i2s_hw_params()
|
/sound/mips/ |
D | hal2.c | 67 unsigned int master; /* Master frequency */ member 320 codec->master = 44100; in hal2_compute_rate() 323 codec->master = 48000; in hal2_compute_rate() 328 rate = 4 * codec->master / mod; in hal2_compute_rate() 335 unsigned int master = hal2->dac.master; in hal2_set_dac_rate() local 339 hal2_i_write16(hal2, H2I_BRES1_C1, (master == 44100) ? 1 : 0); in hal2_set_dac_rate() 346 unsigned int master = hal2->adc.master; in hal2_set_adc_rate() local 350 hal2_i_write16(hal2, H2I_BRES2_C1, (master == 44100) ? 1 : 0); in hal2_set_adc_rate()
|
/sound/soc/zte/ |
D | zx-i2s.c | 97 int master; member 203 i2s->master = 0; in zx_i2s_set_fmt() 208 i2s->master = 1; in zx_i2s_set_fmt() 277 if (i2s->master) in zx_i2s_hw_params()
|
D | zx-tdm.c | 79 int master; member 174 tdm->master = 1; in zx_tdm_set_fmt() 178 tdm->master = 0; in zx_tdm_set_fmt() 223 if (tdm->master) in zx_tdm_hw_params()
|
/sound/soc/hisilicon/ |
D | hi3660-i2s.c | 52 u32 master; member 76 i2s->master = false; in enable_format() 81 i2s->master = true; in enable_format() 194 i2s->master = (i2s->format & SND_SOC_DAIFMT_MASTER_MASK) == in set_format()
|
D | hi6210-i2s.c | 53 u32 master:1; member 246 i2s->master = (i2s->format & SND_SOC_DAIFMT_MASTER_MASK) == in hi6210_i2s_set_fmt() 378 i2s->master = false; in hi6210_i2s_hw_params() 384 i2s->master = true; in hi6210_i2s_hw_params() 453 if (!i2s->master) in hi6210_i2s_hw_params()
|
/sound/soc/ti/ |
D | davinci-i2s.c | 382 int mcbsp_word_length, master; in davinci_i2s_hw_params() local 398 master = dev->fmt & SND_SOC_DAIFMT_MASTER_MASK; in davinci_i2s_hw_params() 402 switch (master) { in davinci_i2s_hw_params() 475 switch (master) { in davinci_i2s_hw_params() 494 switch (master) { in davinci_i2s_hw_params()
|