Home
last modified time | relevance | path

Searched refs:invert (Results 1 – 25 of 70) sorted by relevance

123

/sound/pci/ac97/
Dac97_patch.h10 #define AC97_SINGLE_VALUE(reg,shift,mask,invert) \ argument
12 ((invert) << 24))
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) }
25 #define AC97_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
29 ….private_value = (reg) | ((shift_left) << 8) | ((shift_right) << 12) | ((mask) << 16) | ((invert) …
/sound/soc/
Dsoc-ops.c250 unsigned int invert = mc->invert; in snd_soc_get_volsw() local
262 if (invert) in snd_soc_get_volsw()
277 if (invert) in snd_soc_get_volsw()
310 unsigned int invert = mc->invert; in snd_soc_put_volsw() local
327 if (invert) in snd_soc_put_volsw()
340 if (invert) in snd_soc_put_volsw()
525 unsigned int invert = mc->invert; in snd_soc_put_volsw_range() local
537 if (invert) in snd_soc_put_volsw_range()
558 if (invert) in snd_soc_put_volsw_range()
598 unsigned int invert = mc->invert; in snd_soc_get_volsw_range() local
[all …]
/sound/soc/codecs/
Dtda7419.c131 unsigned int invert:1; member
158 unsigned int invert) in tda7419_vol_get_value() argument
162 if (invert) in tda7419_vol_get_value()
165 if (invert) in tda7419_vol_get_value()
188 unsigned int invert = tvc->invert; in tda7419_vol_get() local
193 tda7419_vol_get_value(val, mask, min, thresh, invert); in tda7419_vol_get()
198 tda7419_vol_get_value(val, mask, min, thresh, invert); in tda7419_vol_get()
205 unsigned int invert) in tda7419_vol_put_value() argument
208 if (invert) in tda7419_vol_put_value()
212 } else if ((val > 0) && invert) { in tda7419_vol_put_value()
[all …]
Dmax98926.c330 unsigned int invert = 0; in max98926_dai_set_fmt() local
347 invert = MAX98926_DAI_WCI_MASK; in max98926_dai_set_fmt()
350 invert = MAX98926_DAI_BCI_MASK; in max98926_dai_set_fmt()
353 invert = MAX98926_DAI_BCI_MASK | MAX98926_DAI_WCI_MASK; in max98926_dai_set_fmt()
363 MAX98926_DAI_BCI_MASK, invert); in max98926_dai_set_fmt()
Dmax98925.c300 unsigned int invert = 0; in max98925_dai_set_fmt() local
331 invert = M98925_DAI_WCI_MASK; in max98925_dai_set_fmt()
334 invert = M98925_DAI_BCI_MASK; in max98925_dai_set_fmt()
337 invert = M98925_DAI_BCI_MASK | M98925_DAI_WCI_MASK; in max98925_dai_set_fmt()
345 M98925_DAI_BCI_MASK | M98925_DAI_WCI_MASK, invert); in max98925_dai_set_fmt()
Drt715-sdca.c328 unsigned int invert = p->invert, i; in rt715_sdca_get_volsw() local
335 ucontrol->value.integer.value[i] = invert ? p->max - val : val; in rt715_sdca_get_volsw()
341 invert ? p->max - val : val; in rt715_sdca_get_volsw()
359 unsigned int invert = p->invert; in rt715_sdca_put_volsw() local
372 if (invert) in rt715_sdca_put_volsw()
381 if (invert) in rt715_sdca_put_volsw()
419 .shift = xshift, .invert = xinvert})
/sound/isa/cs423x/
Dcs4236_lib.c378 #define CS4236_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
382 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
384 #define CS4236_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
389 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
410 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single() local
415 if (invert) in snd_cs4236_get_single()
427 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_single() local
432 if (invert) in snd_cs4236_put_single()
443 #define CS4236_SINGLEC(xname, xindex, reg, shift, mask, invert) \ argument
447 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
[all …]
/sound/pci/
Dak4531_codec.c46 #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), \
77 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single() local
83 if (invert) { in snd_ak4531_get_single()
96 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_put_single() local
101 if (invert) { in snd_ak4531_put_single()
113 #define AK4531_DOUBLE(xname, xindex, left_reg, right_reg, left_shift, right_shift, mask, invert) \ argument
117 …reg | (right_reg << 8) | (left_shift << 16) | (right_shift << 19) | (mask << 24) | (invert << 22) }
[all …]
Dfm801.c845 #define FM801_SINGLE(xname, reg, shift, mask, invert) \ argument
848 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
869 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_fm801_get_single() local
873 if (invert) in snd_fm801_get_single()
885 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_fm801_put_single() local
889 if (invert) in snd_fm801_put_single()
894 #define FM801_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
897 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
898 #define FM801_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
903 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
[all …]
Des1938.c1134 #define ES1938_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
1140 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
1142 #define ES1938_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
1146 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
1167 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1938_get_single() local
1172 if (invert) in snd_es1938_get_single()
1184 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1938_put_single() local
1188 if (invert) in snd_es1938_put_single()
1195 #define ES1938_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert argument
1201 …eg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22), \
[all …]
Dsonicvibes.c927 #define SONICVIBES_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
931 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
950 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_sonicvibes_get_single() local
955 if (invert) in snd_sonicvibes_get_single()
966 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_sonicvibes_put_single() local
971 if (invert) in snd_sonicvibes_put_single()
983 #define SONICVIBES_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert argument
987 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
1008 int invert = (kcontrol->private_value >> 22) & 1; in snd_sonicvibes_get_double() local
1014 if (invert) { in snd_sonicvibes_get_double()
[all …]
Dazt3328.c856 unsigned int invert: 1; member
861 #define COMPOSE_MIXER_REG(reg,lchan_shift,rchan_shift,mask,invert,stereo,enum_c) \ argument
864 (invert << 24) | \
874 r->invert = (val >> 24) & 1; in snd_azf3328_mixer_reg_decode()
883 #define AZF3328_MIXER_SWITCH(xname, reg, shift, invert) \ argument
887 .private_value = COMPOSE_MIXER_REG(reg, shift, 0, 0x1, invert, 0, 0), \
890 #define AZF3328_MIXER_VOL_STEREO(xname, reg, mask, invert) \ argument
894 .private_value = COMPOSE_MIXER_REG(reg, 8, 0, mask, invert, 1, 0), \
904 #define AZF3328_MIXER_VOL_SPECIAL(xname, reg, mask, shift, invert) \ argument
908 .private_value = COMPOSE_MIXER_REG(reg, shift, 0, mask, invert, 0, 0), \
[all …]
/sound/isa/gus/
Dgus_mixer.c17 #define GF1_SINGLE(xname, xindex, shift, invert) \ argument
21 .private_value = shift | (invert << 8) }
29 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single() local
32 if (invert) in snd_gf1_get_single()
42 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single() local
47 if (invert) in snd_gf1_put_single()
Dgus_pcm.c291 int w16, int invert) in snd_gf1_pcm_poke_block() argument
308 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, 0x01 | (invert ? 0x08 : 0x00)); in snd_gf1_pcm_poke_block()
320 invert = invert ? 0x80 : 0x00; in snd_gf1_pcm_poke_block()
325 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block()
329 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block()
358 int w16, invert; in playback_copy_ack() local
365 invert = snd_pcm_format_unsigned(runtime->format); in playback_copy_ack()
367 pcmp->memory + bpos, len, w16, invert); in playback_copy_ack()
/sound/pci/oxygen/
Dxonar_lib.c96 bool invert = ctl->private_value & XONAR_GPIO_BIT_INVERT; in xonar_gpio_bit_switch_get() local
99 !!(oxygen_read16(chip, OXYGEN_GPIO_DATA) & bit) ^ invert; in xonar_gpio_bit_switch_get()
108 bool invert = ctl->private_value & XONAR_GPIO_BIT_INVERT; in xonar_gpio_bit_switch_put() local
114 if (!!value->value.integer.value[0] ^ invert) in xonar_gpio_bit_switch_put()
Doxygen_mixer.c475 int invert = ctl->private_value & (1 << 8); in monitor_get() local
478 !!invert ^ !!(oxygen_read8(chip, OXYGEN_ADC_MONITOR) & bit); in monitor_get()
487 int invert = ctl->private_value & (1 << 8); in monitor_put() local
493 if ((!!value->value.integer.value[0] ^ !!invert) != 0) in monitor_put()
511 int invert = ctl->private_value & (1 << 16); in ac97_switch_get() local
517 if (!(reg & (1 << bitnr)) ^ !invert) in ac97_switch_get()
549 int invert = ctl->private_value & (1 << 16); in ac97_switch_put() local
556 if (!value->value.integer.value[0] ^ !invert) in ac97_switch_put()
729 #define AC97_SWITCH(xname, codec, index, bitnr, invert) { \ argument
735 .private_value = ((codec) << 24) | ((invert) << 16) | \
/sound/isa/
Dopl3sa2.c325 #define OPL3SA2_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
329 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
330 #define OPL3SA2_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
336 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
346 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_get_single() local
351 if (invert) in snd_opl3sa2_get_single()
363 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_put_single() local
368 if (invert) in snd_opl3sa2_put_single()
380 #define OPL3SA2_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
384 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
[all …]
/sound/isa/ad1816a/
Dad1816a_lib.c712 #define AD1816A_SINGLE_TLV(xname, reg, shift, mask, invert, xtlv) \ argument
717 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
719 #define AD1816A_SINGLE(xname, reg, shift, mask, invert) \ argument
722 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
742 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_ad1816a_get_single() local
747 if (invert) in snd_ad1816a_get_single()
759 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_ad1816a_put_single() local
764 if (invert) in snd_ad1816a_put_single()
776 #define AD1816A_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
781 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
[all …]
/sound/spi/
Dat73c213.c402 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_get() local
409 if (invert) in snd_at73c213_mono_get()
425 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_put() local
430 if (invert) in snd_at73c213_mono_put()
474 int invert = (kcontrol->private_value >> 22) & 1; in snd_at73c213_stereo_get() local
483 if (invert) { in snd_at73c213_stereo_get()
504 int invert = (kcontrol->private_value >> 22) & 1; in snd_at73c213_stereo_put() local
510 if (invert) { in snd_at73c213_stereo_put()
550 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_switch_get() local
557 if (invert) in snd_at73c213_mono_switch_get()
[all …]
/sound/isa/es1688/
Des1688_lib.c754 #define ES1688_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
758 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
778 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_get_single() local
783 if (invert) in snd_es1688_get_single()
795 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_put_single() local
800 if (invert) in snd_es1688_put_single()
813 #define ES1688_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
817 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
839 int invert = (kcontrol->private_value >> 22) & 1; in snd_es1688_get_double() local
857 if (invert) { in snd_es1688_get_double()
[all …]
/sound/soc/sunxi/
Dsun8i-codec.c267 u32 dsp_format, format, invert, value; in sun8i_codec_set_fmt() local
332 invert = 0x0; in sun8i_codec_set_fmt()
335 invert = 0x1; in sun8i_codec_set_fmt()
338 invert = 0x2; in sun8i_codec_set_fmt()
341 invert = 0x3; in sun8i_codec_set_fmt()
349 if (invert & BIT(0)) in sun8i_codec_set_fmt()
353 invert |= dsp_format; in sun8i_codec_set_fmt()
365 invert ^= scodec->quirks->lrck_inversion; in sun8i_codec_set_fmt()
370 invert << SUN8I_AIF_CLK_CTRL_CLK_INV); in sun8i_codec_set_fmt()
/sound/soc/pxa/
Dz2.c86 .invert = 1
97 .invert = 1,
Dhx4700.c37 .invert = 1,
44 .invert = true,
/sound/soc/samsung/
Dh1940_uda1380.c43 .invert = 1,
51 .invert = 1,
/sound/pci/ice1712/
Dews.c741 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_ews88d_control_get() local
751 if (invert) in snd_ice1712_ews88d_control_get()
762 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_ews88d_control_put() local
772 if (invert) { in snd_ice1712_ews88d_control_put()
857 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_6fire_control_get() local
864 if (invert) in snd_ice1712_6fire_control_get()
874 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_6fire_control_put() local
883 if (invert) in snd_ice1712_6fire_control_put()

123