| /sound/soc/codecs/ |
| A D | pcm6240.c | 63 .shift = 1, 69 .shift = 1, 78 .shift = 0, 84 .shift = 0, 93 .shift = 0, 99 .shift = 0, 105 .shift = 0, 111 .shift = 0, 117 .shift = 0, 604 unsigned int shift = mc->shift; in pcmdev_get_volsw() local [all …]
|
| A 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()
|
| A D | rt711-sdca.c | 579 if (mc->shift == 8) /* boost gain */ in rt711_sdca_set_gain_put() 582 if (adc_vol_flag && gain_l_val > mc->shift) in rt711_sdca_set_gain_put() 601 if (mc->shift == 8) /* boost gain */ in rt711_sdca_set_gain_put() 656 if (mc->shift == 8) /* boost gain */ in rt711_sdca_set_gain_get() 657 ctl_l = (read_l >> mc->shift) / 10; in rt711_sdca_set_gain_get() 668 ctl_l = mc->shift - (ctl_l / 75); in rt711_sdca_set_gain_get() 670 ctl_l = mc->shift + (ctl_l / 75); in rt711_sdca_set_gain_get() 677 if (mc->shift == 8) /* boost gain */ in rt711_sdca_set_gain_get() 678 ctl_r = (read_r >> mc->shift) / 10; in rt711_sdca_set_gain_get() 689 ctl_r = mc->shift - (ctl_r / 75); in rt711_sdca_set_gain_get() [all …]
|
| A 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_read(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_read(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 …]
|
| A 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()
|
| A D | twl4030.c | 835 unsigned int shift = mc->shift; in snd_soc_get_volsw_twl4030() local 846 if (shift != rshift) { in snd_soc_get_volsw_twl4030() 864 unsigned int shift = mc->shift; in snd_soc_put_volsw_twl4030() local 872 val_mask = mask << shift; in snd_soc_put_volsw_twl4030() 875 val = val << shift; in snd_soc_put_volsw_twl4030() 876 if (shift != rshift) { in snd_soc_put_volsw_twl4030() 894 unsigned int shift = mc->shift; in snd_soc_get_volsw_r2_twl4030() local 921 unsigned int shift = mc->shift; in snd_soc_put_volsw_r2_twl4030() local 927 val_mask = mask << shift; in snd_soc_put_volsw_r2_twl4030() 936 val = val << shift; in snd_soc_put_volsw_r2_twl4030() [all …]
|
| /sound/pci/ac97/ |
| A 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/pci/emu10k1/ |
| A D | emu10k1_patch.c | 31 int shift; in snd_emu10k1_sample_new() local 49 shift = 0; in snd_emu10k1_sample_new() 53 shift = 1; in snd_emu10k1_sample_new() 99 blocksize = truesize << shift; in snd_emu10k1_sample_new() 112 size = BLANK_HEAD_SIZE << shift; in snd_emu10k1_sample_new() 118 size = loop_end << shift; in snd_emu10k1_sample_new() 123 data += loop_start << shift; in snd_emu10k1_sample_new() 125 size = loop_size << shift; in snd_emu10k1_sample_new() 131 size = (data_end - loop_start) << shift; in snd_emu10k1_sample_new() 133 size = data_end << shift; in snd_emu10k1_sample_new()
|
| /sound/soc/sprd/ |
| A D | sprd-mcdt.c | 158 sprd_mcdt_update(mcdt, MCDT_DMA_EN, BIT(shift), BIT(shift)); in sprd_mcdt_dac_dma_enable() 314 MCDT_DMA_ACK_SEL_MASK << shift); in sprd_mcdt_dac_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 362 shift = fifo_sts; in sprd_mcdt_chan_fifo_sts() 368 shift = 8 + fifo_sts; in sprd_mcdt_chan_fifo_sts() 373 shift = 16 + fifo_sts; in sprd_mcdt_chan_fifo_sts() 378 shift = 24 + fifo_sts; in sprd_mcdt_chan_fifo_sts() 397 sprd_mcdt_update(mcdt, MCDT_FIFO_CLR, BIT(shift), BIT(shift)); in sprd_mcdt_adc_fifo_clear() 473 sprd_mcdt_update(mcdt, reg, BIT(shift), BIT(shift)); in sprd_mcdt_chan_int_en() [all …]
|
| /sound/isa/gus/ |
| A 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/renesas/rcar/ |
| A D | ssiu.c | 55 int shift, offset; in rsnd_ssiu_busif_err_irq_ctrl() local 64 shift = id; in rsnd_ssiu_busif_err_irq_ctrl() 68 shift = 1; in rsnd_ssiu_busif_err_irq_ctrl() 77 u32 val = 0xf << (shift * 4); in rsnd_ssiu_busif_err_irq_ctrl() 92 int shift, offset; in rsnd_ssiu_busif_err_status_clear() local 101 shift = id; in rsnd_ssiu_busif_err_status_clear() 105 shift = 1; in rsnd_ssiu_busif_err_status_clear() 115 u32 val = 0xf << (shift * 4); in rsnd_ssiu_busif_err_status_clear() 318 int shift = (i * 4) + 20; in rsnd_ssiu_init_gen2() local 320 val = (val & ~(0xF << shift)) | in rsnd_ssiu_init_gen2() [all …]
|
| A D | adg.c | 238 int shift = (id % 2) ? 16 : 0; in rsnd_adg_set_cmd_timsel_gen2() local 246 val = val << shift; in rsnd_adg_set_cmd_timsel_gen2() 247 mask = 0x0f1f << shift; in rsnd_adg_set_cmd_timsel_gen2() 265 int shift = (id % 2) ? 16 : 0; in rsnd_adg_set_src_timesel_gen2() local 273 in = in << shift; in rsnd_adg_set_src_timesel_gen2() 274 out = out << shift; in rsnd_adg_set_src_timesel_gen2() 275 mask = 0x0f1f << shift; in rsnd_adg_set_src_timesel_gen2() 293 int shift = (id % 4) * 8; in rsnd_adg_set_ssi_clk() local 294 u32 mask = 0xFF << shift; in rsnd_adg_set_ssi_clk() 298 val = val << shift; in rsnd_adg_set_ssi_clk()
|
| /sound/soc/tegra/ |
| A D | tegra210_ahub.h | 75 #define SOC_VALUE_ENUM_WIDE(xreg, shift, xmax, xtexts, xvalues) \ argument 78 .shift_l = shift, \ 79 .shift_r = shift, \ 86 #define SOC_VALUE_ENUM_WIDE_DECL(name, xreg, shift, xtexts, xvalues) \ argument 88 SOC_VALUE_ENUM_WIDE(xreg, shift, ARRAY_SIZE(xtexts), \
|
| A D | tegra210_mbdrc.c | 244 ucontrol->value.integer.value[0] = (val >> mc->shift) & mc->max; in tegra210_mbdrc_get() 259 val = val << mc->shift; in tegra210_mbdrc_put() 262 (mc->max << mc->shift), val, &change); in tegra210_mbdrc_put() 313 u32 shift = params->shift; in tegra210_mbdrc_band_params_get() local 319 data[i] = ((data[i] & mask) >> shift); in tegra210_mbdrc_band_params_get() 334 u32 shift = params->shift; in tegra210_mbdrc_band_params_put() local 342 data[i] << shift, &update); in tegra210_mbdrc_band_params_put() 434 params->shift, data, params->soc.num_regs); in tegra210_mbdrc_biquad_coeffs_put() 462 ((val >> mc->shift) - TEGRA210_MBDRC_MASTER_VOL_MIN); in tegra210_mbdrc_vol_get() 480 mc->max << mc->shift, val << mc->shift, in tegra210_mbdrc_vol_put()
|
| A D | tegra210_ope.h | 69 u32 shift; /* Used as offset for AHUB RAM related programing */ member 86 .shift = xshift \
|
| /sound/pci/ice1712/ |
| A D | ews.c | 740 int shift = kcontrol->private_value & 0xff; in snd_ice1712_ews88d_control_get() local 750 data[0] = (data[shift >> 3] >> (shift & 7)) & 0x01; in snd_ice1712_ews88d_control_get() 761 int shift = kcontrol->private_value & 0xff; in snd_ice1712_ews88d_control_put() local 771 ndata[shift >> 3] = data[shift >> 3] & ~(1 << (shift & 7)); in snd_ice1712_ews88d_control_put() 774 ndata[shift >> 3] |= (1 << (shift & 7)); in snd_ice1712_ews88d_control_put() 777 ndata[shift >> 3] |= (1 << (shift & 7)); in snd_ice1712_ews88d_control_put() 779 change = (data[shift >> 3] != ndata[shift >> 3]); in snd_ice1712_ews88d_control_put() 863 data = (data >> shift) & 1; in snd_ice1712_6fire_control_get() 880 ndata = data & ~(1 << shift); in snd_ice1712_6fire_control_put() 882 ndata |= (1 << shift); in snd_ice1712_6fire_control_put() [all …]
|
| A 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()
|
| /sound/i2c/other/ |
| A D | ak4xxx-adda.c | 349 #define AK_COMPOSE(chip,addr,shift,mask) \ argument 464 int shift = AK_GET_SHIFT(kcontrol->private_value); in snd_akm4xxx_deemphasis_get() local 466 (snd_akm4xxx_get(ak, chip, addr) >> shift) & 3; in snd_akm4xxx_deemphasis_get() 476 int shift = AK_GET_SHIFT(kcontrol->private_value); in snd_akm4xxx_deemphasis_put() local 480 nval = (nval << shift) | in snd_akm4xxx_deemphasis_put() 496 int shift = AK_GET_SHIFT(kcontrol->private_value); in ak4xxx_switch_get() local 512 int shift = AK_GET_SHIFT(kcontrol->private_value); in ak4xxx_switch_put() local 522 val = oval | (1<<shift); in ak4xxx_switch_put() 524 val = oval & ~(1<<shift); in ak4xxx_switch_put() 825 int shift = idx == 3 ? 6 : (2 - idx) * 2; in build_deemphasis() local [all …]
|
| /sound/soc/ |
| A D | soc-ops.c | 114 unsigned int mask, unsigned int shift, int max) in soc_mixer_reg_to_ctl() argument 116 int val = (reg_val >> shift) & mask; in soc_mixer_reg_to_ctl() 130 unsigned int mask, unsigned int shift, in soc_mixer_ctl_to_reg() argument 140 return (reg_val & mask) << shift; in soc_mixer_ctl_to_reg() 210 mask, mc->shift, max); in soc_put_volsw() 211 val_mask = mask << mc->shift; in soc_put_volsw() 226 mask, mc->shift, max); in soc_put_volsw() 758 unsigned int mask = BIT(mc->shift); in snd_soc_get_strobe() 764 if (mc->shift != 0 && val != 0) in snd_soc_get_strobe() 765 val = val >> mc->shift; in snd_soc_get_strobe() [all …]
|
| /sound/soc/codecs/aw88395/ |
| A D | aw88395_device.h | 29 #define AW88395_DSP_RE_TO_SHOW_RE(re, shift) (((re) * (1000)) >> (shift)) argument 30 #define AW88395_SHOW_RE_TO_DSP_RE(re, shift) (((re) << shift) / (1000)) argument
|
| /sound/hda/core/ |
| A D | bus.c | 245 unsigned int shift = ((unsigned long)(addr) & 0x3) << 3; in snd_hdac_aligned_read() local 249 return (v >> shift) & mask; in snd_hdac_aligned_read() 258 unsigned int shift = ((unsigned long)(addr) & 0x3) << 3; in snd_hdac_aligned_write() local 262 v &= ~(mask << shift); in snd_hdac_aligned_write() 263 v |= val << shift; in snd_hdac_aligned_write()
|
| /sound/ppc/ |
| A D | burgundy.c | 125 long *volume, int shift) in snd_pmac_burgundy_write_volume() argument 135 hardvolume = lvolume + (rvolume << shift); in snd_pmac_burgundy_write_volume() 136 if (shift == 8) in snd_pmac_burgundy_write_volume() 144 long *volume, int shift) in snd_pmac_burgundy_read_volume() argument 155 volume[1] = (wvolume >> shift) & 0xff; in snd_pmac_burgundy_read_volume() 177 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_volume() local 179 ucontrol->value.integer.value, shift); in snd_pmac_burgundy_get_volume() 188 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_volume() local 192 ucontrol->value.integer.value, shift); in snd_pmac_burgundy_put_volume() 193 snd_pmac_burgundy_read_volume(chip, addr, nvoices, shift); in snd_pmac_burgundy_put_volume() [all …]
|
| /sound/isa/cs423x/ |
| A D | cs4236_lib.c | 378 #define CS4236_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument 382 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 408 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single() local 425 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_single() local 434 val <<= shift; in snd_cs4236_put_single() 436 val = (chip->eimage[CS4236_REG(reg)] & ~(mask << shift)) | val; in snd_cs4236_put_single() 443 #define CS4236_SINGLEC(xname, xindex, reg, shift, mask, invert) \ argument 454 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_singlec() local 471 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_singlec() local 480 val <<= shift; in snd_cs4236_put_singlec() [all …]
|
| /sound/pci/ |
| A 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/spi/ |
| A D | at73c213.c | 400 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_get() local 407 (chip->reg_image[reg] >> shift) & mask; in snd_at73c213_mono_get() 423 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_put() local 432 val <<= shift; in snd_at73c213_mono_put() 436 val = (chip->reg_image[reg] & ~(mask << shift)) | val; in snd_at73c213_mono_put() 549 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_switch_get() local 555 (chip->reg_image[reg] >> shift) & 0x01; in snd_at73c213_mono_switch_get() 571 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_switch_put() local 584 val <<= shift; in snd_at73c213_mono_switch_put() 588 val |= (chip->reg_image[reg] & ~(mask << shift)); in snd_at73c213_mono_switch_put() [all …]
|