/sound/soc/ |
D | soc-ops.c | 133 unsigned int reg, unsigned int mask, unsigned int shift, in snd_soc_read_signed() argument 143 val = (val >> shift) & mask; in snd_soc_read_signed() 250 unsigned int shift = mc->shift; in snd_soc_get_volsw() local 263 ret = snd_soc_read_signed(component, reg, mask, shift, sign_bit, &val); in snd_soc_get_volsw() 277 ret = snd_soc_read_signed(component, reg2, mask, shift, in snd_soc_get_volsw() 310 unsigned int shift = mc->shift; in snd_soc_put_volsw() local 328 val_mask = mask << shift; in snd_soc_put_volsw() 329 val = val << shift; in snd_soc_put_volsw() 338 val2 = val2 << shift; in snd_soc_put_volsw() 372 unsigned int shift = mc->shift; in snd_soc_get_volsw_sx() local [all …]
|
/sound/pci/ac97/ |
D | ac97_patch.h | 10 #define AC97_SINGLE_VALUE(reg,shift,mask,invert) \ argument 11 ((reg) | ((shift) << 8) | ((shift) << 12) | ((mask) << 16) | \ 13 #define AC97_PAGE_SINGLE_VALUE(reg,shift,mask,invert,page) \ argument 14 (AC97_SINGLE_VALUE(reg,shift,mask,invert) | (1<<25) | ((page) << 26)) 15 #define AC97_SINGLE(xname, reg, shift, mask, invert) \ argument 19 .private_value = AC97_SINGLE_VALUE(reg, shift, mask, invert) } 20 #define AC97_PAGE_SINGLE(xname, reg, shift, mask, invert, page) \ argument 24 .private_value = AC97_PAGE_SINGLE_VALUE(reg, shift, mask, invert, page) }
|
/sound/soc/sprd/ |
D | sprd-mcdt.c | 155 u32 shift = MCDT_DAC_DMA_SHIFT + channel; in sprd_mcdt_dac_dma_enable() local 158 sprd_mcdt_update(mcdt, MCDT_DMA_EN, BIT(shift), BIT(shift)); in sprd_mcdt_dac_dma_enable() 160 sprd_mcdt_update(mcdt, MCDT_DMA_EN, 0, BIT(shift)); in sprd_mcdt_dac_dma_enable() 298 u32 reg, shift = sprd_mcdt_dma_ack_shift(channel), ack = dma_chan; in sprd_mcdt_dac_dma_ack_select() local 313 sprd_mcdt_update(mcdt, reg, ack << shift, in sprd_mcdt_dac_dma_ack_select() 314 MCDT_DMA_ACK_SEL_MASK << shift); in sprd_mcdt_dac_dma_ack_select() 320 u32 reg, shift = sprd_mcdt_dma_ack_shift(channel), ack = dma_chan; in sprd_mcdt_adc_dma_ack_select() local 335 sprd_mcdt_update(mcdt, reg, ack << shift, in sprd_mcdt_adc_dma_ack_select() 336 MCDT_DMA_ACK_SEL_MASK << shift); in sprd_mcdt_adc_dma_ack_select() 342 u32 reg, shift; in sprd_mcdt_chan_fifo_sts() local [all …]
|
/sound/isa/gus/ |
D | gus_mixer.c | 17 #define GF1_SINGLE(xname, xindex, shift, invert) \ argument 21 .private_value = shift | (invert << 8) } 28 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single() local 31 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; in snd_gf1_get_single() 41 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single() local 49 nval <<= shift; in snd_gf1_put_single() 52 nval = (oval & ~(1 << shift)) | nval; in snd_gf1_put_single()
|
/sound/soc/codecs/ |
D | wm9712.c | 224 unsigned int mixer, mask, shift, old; in wm9712_hp_mixer_put() local 228 mixer = mc->shift >> 8; in wm9712_hp_mixer_put() 229 shift = mc->shift & 0xff; in wm9712_hp_mixer_put() 230 mask = 1 << shift; in wm9712_hp_mixer_put() 242 update.reg = wm9712_mixer_mute_regs[shift]; in wm9712_hp_mixer_put() 267 unsigned int shift, mixer; in wm9712_hp_mixer_get() local 269 mixer = mc->shift >> 8; in wm9712_hp_mixer_get() 270 shift = mc->shift & 0xff; in wm9712_hp_mixer_get() 273 (wm9712->hp_mixer[mixer] >> shift) & 1; in wm9712_hp_mixer_get()
|
D | pcm3168a.c | 321 u32 fmt, reg, mask, shift; in pcm3168a_set_dai_fmt() local 367 shift = PCM3168A_DAC_FMT_SHIFT; in pcm3168a_set_dai_fmt() 371 shift = PCM3168A_ADC_FMTAD_SHIFT; in pcm3168a_set_dai_fmt() 377 regmap_update_bits(pcm3168a->regmap, reg, mask, fmt << shift); in pcm3168a_set_dai_fmt() 423 u32 val, mask, shift, reg; in pcm3168a_hw_params() local 436 shift = PCM3168A_DAC_MSDA_SHIFT; in pcm3168a_hw_params() 441 shift = PCM3168A_ADC_MSAD_SHIFT; in pcm3168a_hw_params() 514 val = ((i + 1) << shift); in pcm3168a_hw_params() 522 shift = PCM3168A_DAC_FMT_SHIFT; in pcm3168a_hw_params() 525 shift = PCM3168A_ADC_FMTAD_SHIFT; in pcm3168a_hw_params() [all …]
|
D | msm8916-wcd-digital.c | 365 if (w->shift == 0) in msm8x16_wcd_codec_set_iir_gain() 367 else if (w->shift == 1) in msm8x16_wcd_codec_set_iir_gain() 586 snd_soc_component_write(component, rx_gain_reg[w->shift], in msm8916_wcd_digital_enable_interpolator() 587 snd_soc_component_read32(component, rx_gain_reg[w->shift])); in msm8916_wcd_digital_enable_interpolator() 591 1 << w->shift, 1 << w->shift); in msm8916_wcd_digital_enable_interpolator() 593 1 << w->shift, 0x0); in msm8916_wcd_digital_enable_interpolator() 604 unsigned int decimator = w->shift + 1; in msm8916_wcd_digital_enable_dec() 634 snd_soc_component_write(component, tx_gain_reg[w->shift], in msm8916_wcd_digital_enable_dec() 635 snd_soc_component_read32(component, tx_gain_reg[w->shift])); in msm8916_wcd_digital_enable_dec() 648 snd_soc_component_update_bits(component, dec_reset_reg, 1 << w->shift, in msm8916_wcd_digital_enable_dec() [all …]
|
D | wm9713.c | 233 unsigned int mixer, mask, shift, old; in wm9713_hp_mixer_put() local 237 mixer = mc->shift >> 8; in wm9713_hp_mixer_put() 238 shift = mc->shift & 0xff; in wm9713_hp_mixer_put() 239 mask = (1 << shift); in wm9713_hp_mixer_put() 251 update.reg = wm9713_mixer_mute_regs[shift]; in wm9713_hp_mixer_put() 276 unsigned int mixer, shift; in wm9713_hp_mixer_get() local 278 mixer = mc->shift >> 8; in wm9713_hp_mixer_get() 279 shift = mc->shift & 0xff; in wm9713_hp_mixer_get() 282 (wm9713->hp_mixer[mixer] >> shift) & 1; in wm9713_hp_mixer_get()
|
D | twl4030.c | 833 unsigned int shift = mc->shift; in snd_soc_get_volsw_twl4030() local 839 (twl4030_read(component, reg) >> shift) & mask; in snd_soc_get_volsw_twl4030() 844 if (shift != rshift) { in snd_soc_get_volsw_twl4030() 862 unsigned int shift = mc->shift; in snd_soc_put_volsw_twl4030() local 870 val_mask = mask << shift; in snd_soc_put_volsw_twl4030() 873 val = val << shift; in snd_soc_put_volsw_twl4030() 874 if (shift != rshift) { in snd_soc_put_volsw_twl4030() 892 unsigned int shift = mc->shift; in snd_soc_get_volsw_r2_twl4030() local 897 (twl4030_read(component, reg) >> shift) & mask; in snd_soc_get_volsw_r2_twl4030() 899 (twl4030_read(component, reg2) >> shift) & mask; in snd_soc_get_volsw_r2_twl4030() [all …]
|
D | wm8770.c | 415 int shift; in wm8770_hw_params() local 439 shift = 4; in wm8770_hw_params() 443 shift = 0; in wm8770_hw_params() 466 snd_soc_component_update_bits(component, WM8770_MSTRCTRL, 0x7 << shift, in wm8770_hw_params() 467 i << shift); in wm8770_hw_params()
|
D | mt6351.c | 590 0x1 << w->shift, in mt_reg_set_clr_event() 591 0x1 << w->shift); in mt_reg_set_clr_event() 596 0x1 << w->shift, in mt_reg_set_clr_event() 597 0x1 << w->shift); in mt_reg_set_clr_event() 605 0x1 << w->shift, in mt_reg_set_clr_event() 606 0x1 << w->shift); in mt_reg_set_clr_event() 611 0x1 << w->shift, in mt_reg_set_clr_event() 612 0x1 << w->shift); in mt_reg_set_clr_event()
|
/sound/pci/ice1712/ |
D | ews.c | 736 int shift = kcontrol->private_value & 0xff; in snd_ice1712_ews88d_control_get() local 746 data[0] = (data[shift >> 3] >> (shift & 7)) & 0x01; in snd_ice1712_ews88d_control_get() 757 int shift = kcontrol->private_value & 0xff; in snd_ice1712_ews88d_control_put() local 767 ndata[shift >> 3] = data[shift >> 3] & ~(1 << (shift & 7)); in snd_ice1712_ews88d_control_put() 770 ndata[shift >> 3] |= (1 << (shift & 7)); in snd_ice1712_ews88d_control_put() 773 ndata[shift >> 3] |= (1 << (shift & 7)); in snd_ice1712_ews88d_control_put() 775 change = (data[shift >> 3] != ndata[shift >> 3]); in snd_ice1712_ews88d_control_put() 852 int shift = kcontrol->private_value & 0xff; in snd_ice1712_6fire_control_get() local 858 data = (data >> shift) & 1; in snd_ice1712_6fire_control_get() 868 int shift = kcontrol->private_value & 0xff; in snd_ice1712_6fire_control_put() local [all …]
|
D | maya44.c | 279 #define COMPOSE_GPIO_VAL(shift, inv) ((shift) | ((inv) << 8)) argument 300 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value); in maya_gpio_sw_get() local 303 val = (snd_ice1712_gpio_read(chip->ice) >> shift) & 1; in maya_gpio_sw_get() 314 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value); in maya_gpio_sw_put() local 319 mask = 1 << shift; in maya_gpio_sw_put() 397 static const unsigned char shift[10] = in maya_pb_route_shift() local 399 return shift[idx % 10]; in maya_pb_route_shift()
|
D | revo.c | 42 int reg, shift; in revo_set_rate_val() local 57 shift = 4; in revo_set_rate_val() 60 shift = 3; in revo_set_rate_val() 63 old = (tmp >> shift) & 0x03; in revo_set_rate_val() 70 tmp &= ~(0x03 << shift); in revo_set_rate_val() 71 tmp |= dfs << shift; in revo_set_rate_val()
|
/sound/i2c/other/ |
D | ak4xxx-adda.c | 349 #define AK_COMPOSE(chip,addr,shift,mask) \ argument 350 (((chip) << 8) | (addr) | ((shift) << 16) | ((mask) << 24)) 466 int shift = AK_GET_SHIFT(kcontrol->private_value); in snd_akm4xxx_deemphasis_get() local 468 (snd_akm4xxx_get(ak, chip, addr) >> shift) & 3; in snd_akm4xxx_deemphasis_get() 478 int shift = AK_GET_SHIFT(kcontrol->private_value); in snd_akm4xxx_deemphasis_put() local 482 nval = (nval << shift) | in snd_akm4xxx_deemphasis_put() 483 (snd_akm4xxx_get(ak, chip, addr) & ~(3 << shift)); in snd_akm4xxx_deemphasis_put() 498 int shift = AK_GET_SHIFT(kcontrol->private_value); in ak4xxx_switch_get() local 501 unsigned char val = snd_akm4xxx_get(ak, chip, addr) & (1<<shift); in ak4xxx_switch_get() 504 ucontrol->value.integer.value[0] = (val & (1<<shift)) != 0; in ak4xxx_switch_get() [all …]
|
/sound/soc/sh/rcar/ |
D | adg.c | 215 int shift = (id % 2) ? 16 : 0; in rsnd_adg_set_cmd_timsel_gen2() local 223 val = val << shift; in rsnd_adg_set_cmd_timsel_gen2() 224 mask = 0x0f1f << shift; in rsnd_adg_set_cmd_timsel_gen2() 242 int shift = (id % 2) ? 16 : 0; in rsnd_adg_set_src_timesel_gen2() local 250 in = in << shift; in rsnd_adg_set_src_timesel_gen2() 251 out = out << shift; in rsnd_adg_set_src_timesel_gen2() 252 mask = 0x0f1f << shift; in rsnd_adg_set_src_timesel_gen2() 270 int shift = (id % 4) * 8; in rsnd_adg_set_ssi_clk() local 271 u32 mask = 0xFF << shift; in rsnd_adg_set_ssi_clk() 275 val = val << shift; in rsnd_adg_set_ssi_clk()
|
D | ssiu.c | 212 int i, shift; in rsnd_ssiu_init_gen2() local 224 shift = (i * 4) + 16; in rsnd_ssiu_init_gen2() 225 val = (val & ~(0xF << shift)) | in rsnd_ssiu_init_gen2() 226 rsnd_mod_id(pos) << shift; in rsnd_ssiu_init_gen2()
|
/sound/hda/ |
D | hdac_bus.c | 226 unsigned int shift = ((unsigned long)(addr) & 0x3) << 3; in snd_hdac_aligned_read() local 230 return (v >> shift) & mask; in snd_hdac_aligned_read() 239 unsigned int shift = ((unsigned long)(addr) & 0x3) << 3; in snd_hdac_aligned_write() local 243 v &= ~(mask << shift); in snd_hdac_aligned_write() 244 v |= val << shift; in snd_hdac_aligned_write()
|
/sound/ppc/ |
D | burgundy.c | 124 long *volume, int shift) in snd_pmac_burgundy_write_volume() argument 134 hardvolume = lvolume + (rvolume << shift); in snd_pmac_burgundy_write_volume() 135 if (shift == 8) in snd_pmac_burgundy_write_volume() 143 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument 154 volume[1] = (wvolume >> shift) & 0xff; in snd_pmac_burgundy_read_volume() 176 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_volume() local 178 ucontrol->value.integer.value, shift); in snd_pmac_burgundy_get_volume() 187 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_volume() local 191 ucontrol->value.integer.value, shift); in snd_pmac_burgundy_put_volume() 192 snd_pmac_burgundy_read_volume(chip, addr, nvoices, shift); in snd_pmac_burgundy_put_volume() [all …]
|
/sound/pci/ |
D | ak4531_codec.c | 46 #define AK4531_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument 50 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22) } 51 #define AK4531_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument 57 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22), \ 75 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_single() local 81 val = (ak4531->regs[reg] >> shift) & mask; in snd_ak4531_get_single() 94 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_put_single() local 104 val <<= shift; in snd_ak4531_put_single() 106 val = (ak4531->regs[reg] & ~(mask << shift)) | val; in snd_ak4531_put_single()
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 380 #define CS4236_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument 384 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 386 #define CS4236_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument 391 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \ 410 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single() local 415 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; in snd_cs4236_get_single() 427 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_single() local 436 val <<= shift; in snd_cs4236_put_single() 438 val = (chip->eimage[CS4236_REG(reg)] & ~(mask << shift)) | val; in snd_cs4236_put_single() 445 #define CS4236_SINGLEC(xname, xindex, reg, shift, mask, invert) \ argument [all …]
|
/sound/spi/ |
D | at73c213.c | 406 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_get() local 413 (chip->reg_image[reg] >> shift) & mask; in snd_at73c213_mono_get() 429 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_put() local 438 val <<= shift; in snd_at73c213_mono_put() 442 val = (chip->reg_image[reg] & ~(mask << shift)) | val; in snd_at73c213_mono_put() 555 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_switch_get() local 561 (chip->reg_image[reg] >> shift) & 0x01; in snd_at73c213_mono_switch_get() 577 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_switch_put() local 590 val <<= shift; in snd_at73c213_mono_switch_put() 594 val |= (chip->reg_image[reg] & ~(mask << shift)); in snd_at73c213_mono_switch_put() [all …]
|
/sound/soc/intel/atom/ |
D | sst-atom-controls.h | 590 .reg = SND_SOC_NOPM, .shift = 0, \ 598 .reg = SND_SOC_NOPM, .shift = 0, \ 606 .reg = SND_SOC_NOPM, .shift = 0, \ 614 .reg = SND_SOC_NOPM, .shift = 0, \ 622 .reg = SND_SOC_NOPM, .shift = 0, \ 630 { .id = snd_soc_dapm_pga, .name = wname, .reg = SND_SOC_NOPM, .shift = 0, \ 638 { .id = snd_soc_dapm_pga, .name = wname, .reg = SND_SOC_NOPM, .shift = 0, \ 647 { .id = snd_soc_dapm_pga, .name = wname, .reg = SND_SOC_NOPM, .shift = 0, \ 674 { .id = snd_soc_dapm_mixer, .name = wname, .reg = SND_SOC_NOPM, .shift = 0, \
|
/sound/soc/mediatek/common/ |
D | mtk-afe-fe-dai.c | 21 unsigned int val, int shift) in mtk_regmap_update_bits() argument 23 if (reg < 0 || WARN_ON_ONCE(shift < 0)) in mtk_regmap_update_bits() 25 return regmap_update_bits(map, reg, mask << shift, val << shift); in mtk_regmap_update_bits()
|
/sound/isa/ |
D | es18xx.c | 437 int shift, err; in snd_es18xx_playback_hw_params() local 439 shift = 0; in snd_es18xx_playback_hw_params() 441 shift++; in snd_es18xx_playback_hw_params() 443 shift++; in snd_es18xx_playback_hw_params() 452 chip->dma2_shift = shift; in snd_es18xx_playback_hw_params() 454 chip->dma1_shift = shift; in snd_es18xx_playback_hw_params() 546 int shift, err; in snd_es18xx_capture_hw_params() local 548 shift = 0; in snd_es18xx_capture_hw_params() 556 shift++; in snd_es18xx_capture_hw_params() 558 shift++; in snd_es18xx_capture_hw_params() [all …]
|