/sound/pci/mixart/ |
D | mixart_hwdep.c | 131 u32 k; in mixart_enum_connectors() local 163 for(k=0; k < connector->uid_count; k++) { in mixart_enum_connectors() 166 if(k < MIXART_FIRST_DIG_AUDIO_ID) { in mixart_enum_connectors() 167 pipe = &mgr->chip[k/2]->pipe_out_ana; in mixart_enum_connectors() 169 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_out_dig; in mixart_enum_connectors() 171 if(k & 1) { in mixart_enum_connectors() 172 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors() 174 pipe->uid_left_connector = connector->uid[k]; /* even */ in mixart_enum_connectors() 181 request.uid = connector->uid[k]; in mixart_enum_connectors() 207 for(k=0; k < connector->uid_count; k++) { in mixart_enum_connectors() [all …]
|
/sound/soc/codecs/ |
D | rl6231.c | 96 int k; member 144 int i, k, n_t; in rl6231_pll_calc() local 157 k = pll_preset_table[i].k; in rl6231_pll_calc() 178 k = min_k; in rl6231_pll_calc() 188 k = k_t; in rl6231_pll_calc() 197 k = k_t; in rl6231_pll_calc() 209 k = k_t; in rl6231_pll_calc() 220 if (k == -1) { in rl6231_pll_calc() 222 k = 0; in rl6231_pll_calc() 229 pll_code->k_code = k; in rl6231_pll_calc()
|
D | wm8960.c | 627 int i, j, k; in wm8960_configure_sysclk() local 644 for (k = 0; k < ARRAY_SIZE(bclk_divs); ++k) { in wm8960_configure_sysclk() 645 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk() 649 *bclk_idx = k; in wm8960_configure_sysclk() 653 if (k != ARRAY_SIZE(bclk_divs)) in wm8960_configure_sysclk() 691 int i, j, k; in wm8960_configure_pll() local 713 for (k = 0; k < ARRAY_SIZE(bclk_divs); ++k) { in wm8960_configure_pll() 717 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll() 721 *bclk_idx = k; in wm8960_configure_pll() 727 *bclk_idx = k; in wm8960_configure_pll() [all …]
|
D | wm8978.c | 401 u32 k; member 412 unsigned int k, n_div, n_mod; in pll_factors() local 434 k = k_part & 0xFFFFFFFF; in pll_factors() 436 pll_div->k = k; in pll_factors() 539 __func__, pll_div.n, pll_div.k, pll_div.div2); in wm8978_configure_pll() 545 snd_soc_component_write(component, WM8978_PLL_K1, pll_div.k >> 18); in wm8978_configure_pll() 546 snd_soc_component_write(component, WM8978_PLL_K2, (pll_div.k >> 9) & 0x1ff); in wm8978_configure_pll() 547 snd_soc_component_write(component, WM8978_PLL_K3, pll_div.k & 0x1ff); in wm8978_configure_pll()
|
D | wm8940.c | 516 unsigned int k; member 569 pll_div.k = K; in pll_factors() 594 if (pll_div.k) in wm8940_set_dai_pll() 600 snd_soc_component_write(component, WM8940_PLLK1, pll_div.k >> 18); in wm8940_set_dai_pll() 601 snd_soc_component_write(component, WM8940_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8940_set_dai_pll() 602 snd_soc_component_write(component, WM8940_PLLK3, pll_div.k & 0x1ff); in wm8940_set_dai_pll()
|
D | wm8955.c | 135 int k; member 185 pll->k = K / 10; in wm8955_pll_factors() 187 dev_dbg(dev, "N=%x K=%x OUTDIV=%x\n", pll->n, pll->k, pll->outdiv); in wm8955_pll_factors() 294 pll.k >> 18); in wm8955_configure_clocking() 297 (pll.k >> 9) & WM8955_K_17_9_MASK); in wm8955_configure_clocking() 300 pll.k & WM8955_K_8_0_MASK); in wm8955_configure_clocking() 301 if (pll.k) in wm8955_configure_clocking()
|
D | wm9713.c | 745 u32 k:24; member 807 pll_div->k = K; in pll_factors() 832 if (pll_div.k == 0) { in wm9713_set_pll() 842 reg = reg2 | (0x5 << 4) | (pll_div.k >> 20); in wm9713_set_pll() 846 reg = reg2 | (0x4 << 4) | ((pll_div.k >> 16) & 0xf); in wm9713_set_pll() 850 reg = reg2 | (0x3 << 4) | ((pll_div.k >> 12) & 0xf); in wm9713_set_pll() 854 reg = reg2 | (0x2 << 4) | ((pll_div.k >> 8) & 0xf); in wm9713_set_pll() 858 reg = reg2 | (0x1 << 4) | ((pll_div.k >> 4) & 0xf); in wm9713_set_pll() 861 reg = reg2 | (0x0 << 4) | (pll_div.k & 0xf); /* K [3:0] */ in wm9713_set_pll()
|
D | alc5623.h | 119 #define ALC5623_PLL_CTRL_K_VAL(k) (((k)&0x7) << 4) argument
|
D | wm8510.c | 268 unsigned int k; member 310 pll_div.k = K; in pll_factors() 333 snd_soc_component_write(component, WM8510_PLLK1, pll_div.k >> 18); in wm8510_set_dai_pll() 334 snd_soc_component_write(component, WM8510_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8510_set_dai_pll() 335 snd_soc_component_write(component, WM8510_PLLK3, pll_div.k & 0x1ff); in wm8510_set_dai_pll()
|
D | wm8974.c | 265 unsigned int k; member 309 pll_div->k = K; in pll_factors() 333 snd_soc_component_write(component, WM8974_PLLK1, pll_div.k >> 18); in wm8974_set_dai_pll() 334 snd_soc_component_write(component, WM8974_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8974_set_dai_pll() 335 snd_soc_component_write(component, WM8974_PLLK3, pll_div.k & 0x1ff); in wm8974_set_dai_pll()
|
D | wm8804.c | 324 u32 k:22; member 396 pll_div->k = K; in pll_factors() 437 snd_soc_component_write(component, WM8804_PLL1, pll_div.k & 0xff); in wm8804_set_pll() 438 snd_soc_component_write(component, WM8804_PLL2, (pll_div.k >> 8) & 0xff); in wm8804_set_pll() 439 snd_soc_component_write(component, WM8804_PLL3, pll_div.k >> 16); in wm8804_set_pll()
|
D | alc5632.h | 203 #define ALC5632_PLL1_CTRL_K_VAL(k) (((k) & 0x07) << 4) argument
|
/sound/core/ |
D | pcm_lib.c | 716 unsigned int k, struct snd_interval *c) in snd_interval_muldivk() argument 724 c->min = muldiv32(a->min, b->min, k, &r); in snd_interval_muldivk() 726 c->max = muldiv32(a->max, b->max, k, &r); in snd_interval_muldivk() 746 void snd_interval_mulkdiv(const struct snd_interval *a, unsigned int k, in snd_interval_mulkdiv() argument 755 c->min = muldiv32(a->min, k, b->max, &r); in snd_interval_mulkdiv() 758 c->max = muldiv32(a->max, k, b->min, &r); in snd_interval_mulkdiv() 791 unsigned int k; in snd_interval_ratnum() local 798 for (k = 0; k < rats_count; ++k) { in snd_interval_ratnum() 799 unsigned int num = rats[k].num; in snd_interval_ratnum() 806 if (den < rats[k].den_min) in snd_interval_ratnum() [all …]
|
D | pcm_native.c | 290 unsigned int k; in constrain_mask_params() local 294 for (k = SNDRV_PCM_HW_PARAM_FIRST_MASK; k <= SNDRV_PCM_HW_PARAM_LAST_MASK; k++) { in constrain_mask_params() 295 m = hw_param_mask(params, k); in constrain_mask_params() 300 if (!(params->rmask & PARAM_MASK_BIT(k))) in constrain_mask_params() 306 changed = snd_mask_refine(m, constrs_mask(constrs, k)); in constrain_mask_params() 313 trace_hw_mask_param(substream, k, 0, &old_mask, m); in constrain_mask_params() 314 params->cmask |= PARAM_MASK_BIT(k); in constrain_mask_params() 326 unsigned int k; in constrain_interval_params() local 330 for (k = SNDRV_PCM_HW_PARAM_FIRST_INTERVAL; k <= SNDRV_PCM_HW_PARAM_LAST_INTERVAL; k++) { in constrain_interval_params() 331 i = hw_param_interval(params, k); in constrain_interval_params() [all …]
|
D | pcm_local.h | 19 unsigned int k, struct snd_interval *c); 20 void snd_interval_mulkdiv(const struct snd_interval *a, unsigned int k,
|
/sound/pci/asihpi/ |
D | hpidebug.c | 51 int k; in hpi_debug_data() local 62 for (k = 0; k < cols && i < len; i++, k++) in hpi_debug_data() 63 printk(KERN_CONT "%s%04x", k == 0 ? "" : " ", pdata[i]); in hpi_debug_data()
|
/sound/pci/ctxfi/ |
D | ctresource.c | 26 int i, j, k, n; in get_resource() local 31 k = i % 8; in get_resource() 32 if (rscs[j] & ((u8)1 << k)) { in get_resource() 48 k = i % 8; in get_resource() 49 rscs[j] |= ((u8)1 << k); in get_resource() 60 unsigned int i, j, k, n; in put_resource() local 65 k = i % 8; in put_resource() 66 rscs[j] &= ~((u8)1 << k); in put_resource()
|
/sound/pci/emu10k1/ |
D | voice.c | 38 int i, j, k, first_voice, last_voice, skip; in voice_alloc() local 56 for (k = 0; k < number; k++) { in voice_alloc() 57 voice = &emu->voices[(i+k) % NUM_G]; in voice_alloc()
|
D | emufx.c | 1525 int j, k, l, d; in _snd_emu10k1_audigy_init_efx() local 1527 k = 0xb0 + (z * 8) + (j * 4); in _snd_emu10k1_audigy_init_efx() 1532 A_OP(icode, &ptr, iMACMV, A_GPR(k+1), A_GPR(k), A_GPR(k+1), A_GPR(BASS_GPR + 4 + j)); in _snd_emu10k1_audigy_init_efx() 1533 A_OP(icode, &ptr, iMACMV, A_GPR(k), A_GPR(d), A_GPR(k), A_GPR(BASS_GPR + 2 + j)); in _snd_emu10k1_audigy_init_efx() 1534 A_OP(icode, &ptr, iMACMV, A_GPR(k+3), A_GPR(k+2), A_GPR(k+3), A_GPR(BASS_GPR + 8 + j)); in _snd_emu10k1_audigy_init_efx() 1535 A_OP(icode, &ptr, iMAC0, A_GPR(k+2), A_GPR_ACCU, A_GPR(k+2), A_GPR(BASS_GPR + 6 + j)); in _snd_emu10k1_audigy_init_efx() 1536 A_OP(icode, &ptr, iACC3, A_GPR(k+2), A_GPR(k+2), A_GPR(k+2), A_C_00000000); in _snd_emu10k1_audigy_init_efx() 1538 A_OP(icode, &ptr, iMAC0, A_C_00000000, A_C_00000000, A_GPR(k+2), A_GPR(TREBLE_GPR + 0 + j)); in _snd_emu10k1_audigy_init_efx() 1540 A_OP(icode, &ptr, iMACMV, A_GPR(l), A_GPR(k+2), A_GPR(l), A_GPR(TREBLE_GPR + 2 + j)); in _snd_emu10k1_audigy_init_efx() 2153 int j, k, l, d; in _snd_emu10k1_init_efx() local [all …]
|
/sound/isa/sb/ |
D | emu8000_patch.c | 230 int k; in snd_emu8000_sample_new() local 233 for (k = 1; k <= looplen; k++) { in snd_emu8000_sample_new() 234 s = read_word(data, offset - k, sp->v.mode_flags); in snd_emu8000_sample_new()
|
/sound/soc/meson/ |
D | axg-tdm-formatter.c | 35 int i, j, k; in axg_tdm_formatter_set_channel_masks() local 52 for (k = 0; k < 2; k++) { in axg_tdm_formatter_set_channel_masks() 53 if ((BIT(i + k) & ts->mask[j]) && ch) { in axg_tdm_formatter_set_channel_masks() 54 val[j] |= BIT(i + k); in axg_tdm_formatter_set_channel_masks()
|
/sound/soc/ |
D | soc-topology.c | 347 struct snd_kcontrol_new *k, struct snd_kcontrol **kcontrol) in soc_tplg_add_kcontrol() argument 352 comp->dev, k, comp->name_prefix, comp, kcontrol); in soc_tplg_add_kcontrol() 504 struct snd_kcontrol_new *k, in soc_tplg_kcontrol_bind_io() argument 512 && k->iface & SNDRV_CTL_ELEM_IFACE_MIXER in soc_tplg_kcontrol_bind_io() 513 && (k->access & SNDRV_CTL_ELEM_ACCESS_TLV_READ in soc_tplg_kcontrol_bind_io() 514 || k->access & SNDRV_CTL_ELEM_ACCESS_TLV_WRITE) in soc_tplg_kcontrol_bind_io() 515 && k->access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) { in soc_tplg_kcontrol_bind_io() 519 sbe = (struct soc_bytes_ext *)k->private_value; in soc_tplg_kcontrol_bind_io() 525 k->info = snd_soc_bytes_info_ext; in soc_tplg_kcontrol_bind_io() 526 k->tlv.c = snd_soc_bytes_tlv_callback; in soc_tplg_kcontrol_bind_io() [all …]
|
/sound/soc/sti/ |
D | sti_uniperif.c | 216 int i, j, k; in sti_uniperiph_get_tdm_word_pos() local 227 for (i = 0, j = 0, k = 0; (i < slots_num) && (k < WORD_MAX); i++) { in sti_uniperiph_get_tdm_word_pos() 238 word_pos[k] = word16_pos[1] | in sti_uniperiph_get_tdm_word_pos() 243 k++; in sti_uniperiph_get_tdm_word_pos()
|
/sound/pci/ac97/ |
D | ac97_pcm.c | 435 int i, j, k; in snd_ac97_pcm_assign() local 491 for (k = 0; k < i; k++) { in snd_ac97_pcm_assign() 492 if (rpcm->stream == rpcms[k].stream) in snd_ac97_pcm_assign() 493 tmp &= ~rpcms[k].r[0].rslots[j]; in snd_ac97_pcm_assign()
|
/sound/soc/pxa/ |
D | hx4700.c | 82 struct snd_kcontrol *k, int event) in hx4700_spk_power() argument 89 struct snd_kcontrol *k, int event) in hx4700_hp_power() argument
|