/sound/soc/ |
D | soc-ops.c | 76 val = (reg_val >> e->shift_l) & e->mask; in snd_soc_get_enum_double() 80 val = (reg_val >> e->shift_r) & e->mask; in snd_soc_get_enum_double() 105 unsigned int mask; in snd_soc_put_enum_double() local 110 mask = e->mask << e->shift_l; in snd_soc_put_enum_double() 115 mask |= e->mask << e->shift_r; in snd_soc_put_enum_double() 118 return snd_soc_component_update_bits(component, e->reg, mask, val); in snd_soc_put_enum_double() 138 unsigned int reg, unsigned int mask, unsigned int shift, in snd_soc_read_signed() argument 148 val = (val >> shift) & mask; in snd_soc_read_signed() 260 unsigned int mask = (1 << fls(max)) - 1; in snd_soc_get_volsw() local 266 mask = BIT(sign_bit + 1) - 1; in snd_soc_get_volsw() [all …]
|
D | soc-io.c | 66 unsigned int mask, unsigned int val, bool *change) in snd_soc_component_update_bits_legacy() argument 80 new = (old & ~mask) | (val & mask); in snd_soc_component_update_bits_legacy() 102 unsigned int reg, unsigned int mask, unsigned int val) in snd_soc_component_update_bits() argument 108 ret = regmap_update_bits_check(component->regmap, reg, mask, in snd_soc_component_update_bits() 112 mask, val, &change); in snd_soc_component_update_bits() 138 unsigned int reg, unsigned int mask, unsigned int val) in snd_soc_component_update_bits_async() argument 145 mask, val, &change); in snd_soc_component_update_bits_async() 148 mask, val, &change); in snd_soc_component_update_bits_async() 183 unsigned int reg, unsigned int mask, unsigned int value) in snd_soc_component_test_bits() argument 191 new = (old & ~mask) | value; in snd_soc_component_test_bits() [all …]
|
/sound/pci/ |
D | ak4531_codec.c | 61 #define AK4531_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument 65 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22) } 66 #define AK4531_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument 72 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22), \ 77 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single() local 79 uinfo->type = mask == 1 ? SNDRV_CTL_ELEM_TYPE_BOOLEAN : SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4531_info_single() 82 uinfo->value.integer.max = mask; in snd_ak4531_info_single() 91 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_single() local 96 val = (ak4531->regs[reg] >> shift) & mask; in snd_ak4531_get_single() 99 val = mask - val; in snd_ak4531_get_single() [all …]
|
D | es1938.c | 288 unsigned char mask, unsigned char val) in snd_es1938_mixer_bits() argument 295 oval = old & mask; in snd_es1938_mixer_bits() 297 new = (old & ~mask) | (val & mask); in snd_es1938_mixer_bits() 370 static int snd_es1938_bits(struct es1938 *chip, unsigned char reg, unsigned char mask, in snd_es1938_bits() argument 379 oval = old & mask; in snd_es1938_bits() 382 new = (old & ~mask) | (val & mask); in snd_es1938_bits() 1158 unsigned char mask, unsigned char val) in snd_es1938_reg_bits() argument 1161 return snd_es1938_mixer_bits(chip, reg, mask, val); in snd_es1938_reg_bits() 1163 return snd_es1938_bits(chip, reg, mask, val); in snd_es1938_reg_bits() 1174 #define ES1938_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument [all …]
|
/sound/isa/cs423x/ |
D | cs4236_lib.c | 394 #define CS4236_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument 398 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 400 #define CS4236_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument 405 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \ 410 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single() local 412 uinfo->type = mask == 1 ? SNDRV_CTL_ELEM_TYPE_BOOLEAN : SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_cs4236_info_single() 415 uinfo->value.integer.max = mask; in snd_cs4236_info_single() 425 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single() local 429 ucontrol->value.integer.value[0] = (chip->eimage[CS4236_REG(reg)] >> shift) & mask; in snd_cs4236_get_single() 432 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_cs4236_get_single() [all …]
|
/sound/pci/ac97/ |
D | ac97_patch.h | 25 #define AC97_SINGLE_VALUE(reg,shift,mask,invert) \ argument 26 ((reg) | ((shift) << 8) | ((shift) << 12) | ((mask) << 16) | \ 28 #define AC97_PAGE_SINGLE_VALUE(reg,shift,mask,invert,page) \ argument 29 (AC97_SINGLE_VALUE(reg,shift,mask,invert) | (1<<25) | ((page) << 26)) 30 #define AC97_SINGLE(xname, reg, shift, mask, invert) \ argument 34 .private_value = AC97_SINGLE_VALUE(reg, shift, mask, invert) } 35 #define AC97_PAGE_SINGLE(xname, reg, shift, mask, invert, page) \ argument 39 .private_value = AC97_PAGE_SINGLE_VALUE(reg, shift, mask, invert, page) } 40 #define AC97_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument 44 ….private_value = (reg) | ((shift_left) << 8) | ((shift_right) << 12) | ((mask) << 16) | ((invert) … [all …]
|
D | ac97_codec.c | 62 unsigned int mask; member 398 int snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned s… in snd_ac97_update_bits() argument 405 change = snd_ac97_update_bits_nolock(ac97, reg, mask, value); in snd_ac97_update_bits() 414 unsigned short mask, unsigned short value) in snd_ac97_update_bits_nolock() argument 420 new = (old & ~mask) | (value & mask); in snd_ac97_update_bits_nolock() 430 static int snd_ac97_ad18xx_update_pcm_bits(struct snd_ac97 *ac97, int codec, unsigned short mask, u… in snd_ac97_ad18xx_update_pcm_bits() argument 437 new = (old & ~mask) | (value & mask); in snd_ac97_ad18xx_update_pcm_bits() 468 e->mask, e->texts); in snd_ac97_info_enum_double() 478 for (bitmask = 1; bitmask < e->mask; bitmask <<= 1) in snd_ac97_get_enum_double() 494 unsigned short mask, bitmask; in snd_ac97_put_enum_double() local [all …]
|
/sound/mips/ |
D | ad1843.c | 203 int w, mask, oldval, newbits; in ad1843_write_bits() local 206 mask = ((1 << field->nbits) - 1) << field->lo_bit; in ad1843_write_bits() 207 oldval = (w & mask) >> field->lo_bit; in ad1843_write_bits() 208 newbits = (newval << field->lo_bit) & mask; in ad1843_write_bits() 209 w = (w & ~mask) | newbits; in ad1843_write_bits() 232 int w = 0, mask, *value, reg = -1; in ad1843_read_multi() local 243 mask = (1 << fp->nbits) - 1; in ad1843_read_multi() 244 *value = w >> fp->lo_bit & mask; in ad1843_read_multi() 266 int w, m, mask, bits; in ad1843_write_multi() local 268 mask = 0; in ad1843_write_multi() [all …]
|
/sound/oss/ |
D | vidc.h | 20 unsigned long obuf, int mask); 22 unsigned long obuf, int mask); 24 unsigned long obuf, int mask); 26 unsigned long obuf, int mask); 28 unsigned long obuf, int mask); 30 unsigned long obuf, int mask); 43 unsigned long obuf, int mask);
|
/sound/pci/oxygen/ |
D | oxygen_io.c | 68 u8 value, u8 mask) in oxygen_write8_masked() argument 71 tmp &= ~mask; in oxygen_write8_masked() 72 tmp |= value & mask; in oxygen_write8_masked() 79 u16 value, u16 mask) in oxygen_write16_masked() argument 82 tmp &= ~mask; in oxygen_write16_masked() 83 tmp |= value & mask; in oxygen_write16_masked() 90 u32 value, u32 mask) in oxygen_write32_masked() argument 93 tmp &= ~mask; in oxygen_write32_masked() 94 tmp |= value & mask; in oxygen_write32_masked() 100 static int oxygen_ac97_wait(struct oxygen *chip, unsigned int mask) in oxygen_ac97_wait() argument [all …]
|
/sound/soc/codecs/ |
D | hdmi-codec.c | 66 unsigned long mask; member 205 .mask = FL | FR}, 208 .mask = FL | FR | LFE}, 211 .mask = FL | FR | FC }, 214 .mask = FL | FR | LFE | FC | RL | RR}, 217 .mask = FL | FR | RL | RR }, 220 .mask = FL | FR | LFE | RL | RR }, 223 .mask = FL | FR | FC | RL | RR }, 226 .mask = FL | FR | LFE | FC | RL | RR | RC }, 229 .mask = FL | FR | LFE | FC | RL | RR | RLC | RRC }, [all …]
|
D | da7219-aad.c | 351 int i, report = 0, mask = 0; in da7219_aad_irq_thread() local 376 mask |= SND_JACK_MECHANICAL; in da7219_aad_irq_thread() 397 mask |= SND_JACK_HEADSET | SND_JACK_LINEOUT; in da7219_aad_irq_thread() 411 mask |= SND_JACK_BTN_0 >> i; in da7219_aad_irq_thread() 414 snd_soc_jack_report(da7219_aad->jack, report, mask); in da7219_aad_irq_thread() 421 mask |= SND_JACK_BTN_0 >> i; in da7219_aad_irq_thread() 429 mask |= DA7219_AAD_REPORT_ALL_MASK; in da7219_aad_irq_thread() 452 snd_soc_jack_report(da7219_aad->jack, report, mask); in da7219_aad_irq_thread() 715 u8 cfg, mask; in da7219_aad_handle_pdata() local 745 mask = 0; in da7219_aad_handle_pdata() [all …]
|
D | tlv320aic31xx.c | 328 unsigned int mask, unsigned int wbits, int sleep, in aic31xx_wait_bits() argument 335 while ((bits & mask) != wbits && counter && !ret) { in aic31xx_wait_bits() 340 if ((bits & mask) != wbits) { in aic31xx_wait_bits() 343 __func__, reg, bits, wbits, ret, mask, in aic31xx_wait_bits() 358 unsigned int mask; in aic31xx_dapm_power_event() local 362 mask = AIC31XX_LDACPWRSTATUS_MASK; in aic31xx_dapm_power_event() 365 mask = AIC31XX_RDACPWRSTATUS_MASK; in aic31xx_dapm_power_event() 368 mask = AIC31XX_HPLDRVPWRSTATUS_MASK; in aic31xx_dapm_power_event() 371 mask = AIC31XX_HPRDRVPWRSTATUS_MASK; in aic31xx_dapm_power_event() 374 mask = AIC31XX_SPLDRVPWRSTATUS_MASK; in aic31xx_dapm_power_event() [all …]
|
/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 58 unsigned char mask, unsigned char value) in snd_ad1816a_out_mask() argument 61 (value & mask) | (snd_ad1816a_in(chip, reg) & ~mask)); in snd_ad1816a_out_mask() 80 unsigned short mask, unsigned short value) in snd_ad1816a_write_mask() argument 83 (value & mask) | (snd_ad1816a_read(chip, reg) & ~mask)); in snd_ad1816a_write_mask() 770 #define AD1816A_SINGLE_TLV(xname, reg, shift, mask, invert, xtlv) \ argument 775 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \ 777 #define AD1816A_SINGLE(xname, reg, shift, mask, invert) \ argument 780 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 784 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ad1816a_info_single() local 786 uinfo->type = mask == 1 ? SNDRV_CTL_ELEM_TYPE_BOOLEAN : SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ad1816a_info_single() [all …]
|
/sound/pci/ice1712/ |
D | maya44.c | 108 unsigned short mask, unsigned short val) in wm8776_write_bits() argument 110 val |= wm->regs[reg] & ~mask; in wm8776_write_bits() 126 unsigned short mask; /* value mask */ member 137 .mask = 0x7f, 145 .mask = 0xff, 153 .mask = 0xff, 223 vol->mask | vol->update, data); in maya_vol_put() 238 #define COMPOSE_SW_VAL(idx, reg, mask) ((idx) | ((reg) << 8) | ((mask) << 16)) argument 264 unsigned int mask, val; in maya_sw_put() local 268 mask = 1 << idx; in maya_sw_put() [all …]
|
/sound/soc/intel/common/ |
D | sst-dsp.c | 163 u32 mask, u32 value) in sst_dsp_shim_update_bits_unlocked() argument 172 new = (old & (~mask)) | (value & mask); in sst_dsp_shim_update_bits_unlocked() 183 u64 mask, u64 value) in sst_dsp_shim_update_bits64_unlocked() argument 190 new = (old & (~mask)) | (value & mask); in sst_dsp_shim_update_bits64_unlocked() 202 u32 mask, u32 value) in sst_dsp_shim_update_bits_forced_unlocked() argument 210 new = (old & (~mask)) | (value & mask); in sst_dsp_shim_update_bits_forced_unlocked() 217 u32 mask, u32 value) in sst_dsp_shim_update_bits() argument 223 change = sst_dsp_shim_update_bits_unlocked(sst, offset, mask, value); in sst_dsp_shim_update_bits() 230 u64 mask, u64 value) in sst_dsp_shim_update_bits64() argument 236 change = sst_dsp_shim_update_bits64_unlocked(sst, offset, mask, value); in sst_dsp_shim_update_bits64() [all …]
|
/sound/pci/lola/ |
D | lola_mixer.c | 250 static int lola_mixer_set_src_gains(struct lola *chip, unsigned int mask, 255 if ((chip->mixer.src_mask & mask) != mask) 258 if (mask & (1 << i)) { 263 writel(mask, &chip->mixer.array->src_gain_enable); 272 if (mask & (1 << i)) { 305 unsigned int mask, unsigned short *gains) 310 (chip->mixer.src_mask & mask) != mask) 313 if (mask & (1 << i)) { 318 writel(mask, &chip->mixer.array->dest_mix_gain_enable[id]); 435 unsigned int mask = 3U << n; /* handle the stereo case */ in lola_set_src_config() local [all …]
|
/sound/hda/ext/ |
D | hdac_ext_stream.c | 132 int mask = AZX_PPCTL_PROCEN(hstream->index); in snd_hdac_ext_stream_decouple() local 135 val = readw(bus->ppcap + AZX_REG_PP_PPCTL) & mask; in snd_hdac_ext_stream_decouple() 138 snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, mask, mask); in snd_hdac_ext_stream_decouple() 140 snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, mask, 0); in snd_hdac_ext_stream_decouple() 425 u32 mask = 0; in snd_hdac_ext_stream_spbcap_enable() local 434 mask |= (1 << index); in snd_hdac_ext_stream_spbcap_enable() 438 mask |= register_mask; in snd_hdac_ext_stream_spbcap_enable() 441 snd_hdac_updatel(bus->spbcap, AZX_REG_SPB_SPBFCCTL, 0, mask); in snd_hdac_ext_stream_spbcap_enable() 443 snd_hdac_updatel(bus->spbcap, AZX_REG_SPB_SPBFCCTL, mask, 0); in snd_hdac_ext_stream_spbcap_enable() 517 u32 mask = 0; in snd_hdac_ext_stream_drsm_enable() local [all …]
|
/sound/soc/sh/rcar/ |
D | adg.c | 212 u32 mask, val; in rsnd_adg_set_cmd_timsel_gen2() local 220 mask = 0x0f1f << shift; in rsnd_adg_set_cmd_timsel_gen2() 222 rsnd_mod_bset(adg_mod, CMDOUT_TIMSEL, mask, val); in rsnd_adg_set_cmd_timsel_gen2() 236 u32 mask, en; in rsnd_adg_set_src_timesel_gen2() local 248 mask = 0x0f1f << shift; in rsnd_adg_set_src_timesel_gen2() 252 rsnd_mod_bset(adg_mod, SRCIN_TIMSEL0, mask, in); in rsnd_adg_set_src_timesel_gen2() 253 rsnd_mod_bset(adg_mod, SRCOUT_TIMSEL0, mask, out); in rsnd_adg_set_src_timesel_gen2() 256 rsnd_mod_bset(adg_mod, SRCIN_TIMSEL1, mask, in); in rsnd_adg_set_src_timesel_gen2() 257 rsnd_mod_bset(adg_mod, SRCOUT_TIMSEL1, mask, out); in rsnd_adg_set_src_timesel_gen2() 260 rsnd_mod_bset(adg_mod, SRCIN_TIMSEL2, mask, in); in rsnd_adg_set_src_timesel_gen2() [all …]
|
/sound/spi/ |
D | at73c213.c | 410 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_at73c213_mono_get() local 416 (chip->reg_image[reg] >> shift) & mask; in snd_at73c213_mono_get() 420 mask - ucontrol->value.integer.value[0]; in snd_at73c213_mono_get() 433 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_at73c213_mono_put() local 438 val = (ucontrol->value.integer.value[0] & mask); in snd_at73c213_mono_put() 440 val = mask - val; in snd_at73c213_mono_put() 445 val = (chip->reg_image[reg] & ~(mask << shift)) | val; in snd_at73c213_mono_put() 460 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_stereo_info() local 462 if (mask == 1) in snd_at73c213_stereo_info() 469 uinfo->value.integer.max = mask; in snd_at73c213_stereo_info() [all …]
|
/sound/pci/hda/ |
D | patch_si3054.c | 93 #define PRIVATE_VALUE(reg,mask) ((reg<<16)|(mask&0xffff)) argument 104 u16 mask = PRIVATE_MASK(kcontrol->private_value); in si3054_switch_get() local 105 uvalue->value.integer.value[0] = (GET_REG(codec, reg)) & mask ? 1 : 0 ; in si3054_switch_get() 114 u16 mask = PRIVATE_MASK(kcontrol->private_value); in si3054_switch_put() local 116 SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) | mask); in si3054_switch_put() 118 SET_REG_CACHE(codec, reg, (GET_REG(codec, reg)) & ~mask); in si3054_switch_put() 122 #define SI3054_KCONTROL(kname,reg,mask) { \ argument 129 .private_value = PRIVATE_VALUE(reg,mask), \ 176 .mask = 0, in si3054_pcm_open()
|
/sound/isa/es1688/ |
D | es1688_lib.c | 794 #define ES1688_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument 798 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 802 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_info_single() local 804 uinfo->type = mask == 1 ? SNDRV_CTL_ELEM_TYPE_BOOLEAN : SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_es1688_info_single() 807 uinfo->value.integer.max = mask; in snd_es1688_info_single() 817 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_get_single() local 821 ucontrol->value.integer.value[0] = (snd_es1688_mixer_read(chip, reg) >> shift) & mask; in snd_es1688_get_single() 824 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_es1688_get_single() 834 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_put_single() local 839 nval = (ucontrol->value.integer.value[0] & mask); in snd_es1688_put_single() [all …]
|
/sound/isa/ |
D | opl3sa2.c | 341 #define OPL3SA2_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument 345 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 346 #define OPL3SA2_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument 352 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \ 361 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_opl3sa2_get_single() local 365 ucontrol->value.integer.value[0] = (chip->ctlregs[reg] >> shift) & mask; in snd_opl3sa2_get_single() 368 ucontrol->value.integer.value[0] = mask - ucontrol->value.integer.value[0]; in snd_opl3sa2_get_single() 378 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_opl3sa2_put_single() local 383 val = (ucontrol->value.integer.value[0] & mask); in snd_opl3sa2_put_single() 385 val = mask - val; in snd_opl3sa2_put_single() [all …]
|
/sound/soc/adi/ |
D | axi-i2s.c | 59 unsigned int mask, val; in axi_i2s_trigger() local 62 mask = AXI_I2S_CTRL_RX_EN; in axi_i2s_trigger() 64 mask = AXI_I2S_CTRL_TX_EN; in axi_i2s_trigger() 70 val = mask; in axi_i2s_trigger() 81 regmap_update_bits(i2s->regmap, AXI_I2S_REG_CTRL, mask, val); in axi_i2s_trigger() 108 uint32_t mask; in axi_i2s_startup() local 112 mask = AXI_I2S_RESET_RX_FIFO; in axi_i2s_startup() 114 mask = AXI_I2S_RESET_TX_FIFO; in axi_i2s_startup() 116 regmap_write(i2s->regmap, AXI_I2S_REG_RESET, mask); in axi_i2s_startup()
|
/sound/soc/atmel/ |
D | atmel-pcm-pdc.c | 172 if (ssc_sr & params->mask->ssc_endbuf) { in atmel_pcm_dma_irq() 180 params->mask->pdc_disable); in atmel_pcm_dma_irq() 190 params->mask->pdc_enable); in atmel_pcm_dma_irq() 193 if (ssc_sr & params->mask->ssc_endx) { in atmel_pcm_dma_irq() 248 params->mask->pdc_disable); in atmel_pcm_hw_free() 261 params->mask->ssc_endx | params->mask->ssc_endbuf); in atmel_pcm_prepare() 263 params->mask->pdc_disable); in atmel_pcm_prepare() 304 params->mask->ssc_endx | params->mask->ssc_endbuf); in atmel_pcm_trigger() 306 params->mask->pdc_enable); in atmel_pcm_trigger() 317 params->mask->pdc_disable); in atmel_pcm_trigger() [all …]
|