Home
last modified time | relevance | path

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

123

/sound/pci/ac97/
Dac97_patch.h25 #define AC97_SINGLE_VALUE(reg,shift,mask,invert) \ argument
27 ((invert) << 24))
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) …
/sound/soc/
Dsoc-ops.c261 unsigned int invert = mc->invert; in snd_soc_get_volsw() local
273 if (invert) in snd_soc_get_volsw()
288 if (invert) in snd_soc_get_volsw()
321 unsigned int invert = mc->invert; in snd_soc_put_volsw() local
331 if (invert) in snd_soc_put_volsw()
337 if (invert) in snd_soc_put_volsw()
502 unsigned int invert = mc->invert; in snd_soc_put_volsw_range() local
506 if (invert) in snd_soc_put_volsw_range()
518 if (invert) in snd_soc_put_volsw_range()
554 unsigned int invert = mc->invert; in snd_soc_get_volsw_range() local
[all …]
/sound/isa/cs423x/
Dcs4236_lib.c394 #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), \
426 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single() local
431 if (invert) in snd_cs4236_get_single()
443 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_single() local
448 if (invert) in snd_cs4236_put_single()
459 #define CS4236_SINGLEC(xname, xindex, reg, shift, mask, invert) \ argument
463 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
[all …]
/sound/pci/
Dak4531_codec.c61 #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), \
92 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single() local
98 if (invert) { in snd_ak4531_get_single()
111 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_put_single() local
116 if (invert) { in snd_ak4531_put_single()
128 #define AK4531_DOUBLE(xname, xindex, left_reg, right_reg, left_shift, right_shift, mask, invert) \ argument
132 …reg | (right_reg << 8) | (left_shift << 16) | (right_shift << 19) | (mask << 24) | (invert << 22) }
[all …]
Dfm801.c829 #define FM801_SINGLE(xname, reg, shift, mask, invert) \ argument
832 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
853 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_fm801_get_single() local
856 if (invert) in snd_fm801_get_single()
868 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_fm801_put_single() local
872 if (invert) in snd_fm801_put_single()
877 #define FM801_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
880 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
881 #define FM801_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
886 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
[all …]
Des1938.c1157 #define ES1938_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
1163 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
1165 #define ES1938_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
1169 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
1190 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1938_get_single() local
1195 if (invert) in snd_es1938_get_single()
1207 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1938_put_single() local
1211 if (invert) in snd_es1938_put_single()
1218 #define ES1938_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert argument
1224 …eg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22), \
[all …]
Dsonicvibes.c958 #define SONICVIBES_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
962 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
981 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_sonicvibes_get_single() local
986 if (invert) in snd_sonicvibes_get_single()
997 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_sonicvibes_put_single() local
1002 if (invert) in snd_sonicvibes_put_single()
1014 #define SONICVIBES_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert argument
1018 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
1039 int invert = (kcontrol->private_value >> 22) & 1; in snd_sonicvibes_get_double() local
1045 if (invert) { in snd_sonicvibes_get_double()
[all …]
Dazt3328.c871 unsigned int invert: 1; member
876 #define COMPOSE_MIXER_REG(reg,lchan_shift,rchan_shift,mask,invert,stereo,enum_c) \ argument
879 (invert << 24) | \
889 r->invert = (val >> 24) & 1; in snd_azf3328_mixer_reg_decode()
898 #define AZF3328_MIXER_SWITCH(xname, reg, shift, invert) \ argument
902 .private_value = COMPOSE_MIXER_REG(reg, shift, 0, 0x1, invert, 0, 0), \
905 #define AZF3328_MIXER_VOL_STEREO(xname, reg, mask, invert) \ argument
909 .private_value = COMPOSE_MIXER_REG(reg, 8, 0, mask, invert, 1, 0), \
919 #define AZF3328_MIXER_VOL_SPECIAL(xname, reg, mask, shift, invert) \ argument
923 .private_value = COMPOSE_MIXER_REG(reg, shift, 0, mask, invert, 0, 0), \
[all …]
/sound/isa/gus/
Dgus_mixer.c32 #define GF1_SINGLE(xname, xindex, shift, invert) \ argument
36 .private_value = shift | (invert << 8) }
44 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single() local
47 if (invert) in snd_gf1_get_single()
57 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single() local
62 if (invert) in snd_gf1_put_single()
Dgus_pcm.c306 int w16, int invert) in snd_gf1_pcm_poke_block() argument
323 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, 0x01 | (invert ? 0x08 : 0x00)); in snd_gf1_pcm_poke_block()
335 invert = invert ? 0x80 : 0x00; in snd_gf1_pcm_poke_block()
340 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block()
344 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block()
378 int err, w16, invert; in snd_gf1_pcm_playback_copy() local
381 invert = snd_pcm_format_unsigned(runtime->format); in snd_gf1_pcm_playback_copy()
382 … snd_gf1_pcm_poke_block(gus, runtime->dma_area + bpos, pcmp->memory + bpos, len, w16, invert)) < 0) in snd_gf1_pcm_playback_copy()
408 int err, w16, invert; in snd_gf1_pcm_playback_silence() local
411 invert = snd_pcm_format_unsigned(runtime->format); in snd_gf1_pcm_playback_silence()
[all …]
/sound/pci/oxygen/
Dxonar_lib.c107 bool invert = ctl->private_value & XONAR_GPIO_BIT_INVERT; in xonar_gpio_bit_switch_get() local
110 !!(oxygen_read16(chip, OXYGEN_GPIO_DATA) & bit) ^ invert; in xonar_gpio_bit_switch_get()
119 bool invert = ctl->private_value & XONAR_GPIO_BIT_INVERT; in xonar_gpio_bit_switch_put() local
125 if (!!value->value.integer.value[0] ^ invert) in xonar_gpio_bit_switch_put()
Doxygen_mixer.c487 int invert = ctl->private_value & (1 << 8); in monitor_get() local
490 !!invert ^ !!(oxygen_read8(chip, OXYGEN_ADC_MONITOR) & bit); in monitor_get()
499 int invert = ctl->private_value & (1 << 8); in monitor_put() local
505 if ((!!value->value.integer.value[0] ^ !!invert) != 0) in monitor_put()
523 int invert = ctl->private_value & (1 << 16); in ac97_switch_get() local
529 if (!(reg & (1 << bitnr)) ^ !invert) in ac97_switch_get()
561 int invert = ctl->private_value & (1 << 16); in ac97_switch_put() local
568 if (!value->value.integer.value[0] ^ !invert) in ac97_switch_put()
741 #define AC97_SWITCH(xname, codec, index, bitnr, invert) { \ argument
747 .private_value = ((codec) << 24) | ((invert) << 16) | \
/sound/isa/ad1816a/
Dad1816a_lib.c770 #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) }
800 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_ad1816a_get_single() local
805 if (invert) in snd_ad1816a_get_single()
817 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_ad1816a_put_single() local
822 if (invert) in snd_ad1816a_put_single()
834 #define AD1816A_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
839 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
[all …]
/sound/isa/
Dopl3sa2.c341 #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), \
362 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_get_single() local
367 if (invert) in snd_opl3sa2_get_single()
379 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_put_single() local
384 if (invert) in snd_opl3sa2_put_single()
396 #define OPL3SA2_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
400 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
[all …]
/sound/spi/
Dat73c213.c408 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_get() local
415 if (invert) in snd_at73c213_mono_get()
431 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_put() local
436 if (invert) in snd_at73c213_mono_put()
480 int invert = (kcontrol->private_value >> 22) & 1; in snd_at73c213_stereo_get() local
489 if (invert) { in snd_at73c213_stereo_get()
510 int invert = (kcontrol->private_value >> 22) & 1; in snd_at73c213_stereo_put() local
516 if (invert) { in snd_at73c213_stereo_put()
556 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_switch_get() local
563 if (invert) in snd_at73c213_mono_switch_get()
[all …]
/sound/soc/codecs/
Dtpa6130a2.c201 unsigned int invert = mc->invert; in tpa6130a2_get_volsw() local
212 if (invert) in tpa6130a2_get_volsw()
230 unsigned int invert = mc->invert; in tpa6130a2_put_volsw() local
238 if (invert) in tpa6130a2_put_volsw()
Dmax98925.c302 unsigned int invert = 0; in max98925_dai_set_fmt() local
333 invert = M98925_DAI_WCI_MASK; in max98925_dai_set_fmt()
336 invert = M98925_DAI_BCI_MASK; in max98925_dai_set_fmt()
339 invert = M98925_DAI_BCI_MASK | M98925_DAI_WCI_MASK; in max98925_dai_set_fmt()
347 M98925_DAI_BCI_MASK | M98925_DAI_WCI_MASK, invert); in max98925_dai_set_fmt()
/sound/isa/es1688/
Des1688_lib.c794 #define ES1688_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
798 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
818 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_get_single() local
823 if (invert) in snd_es1688_get_single()
835 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_put_single() local
840 if (invert) in snd_es1688_put_single()
853 #define ES1688_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
857 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
879 int invert = (kcontrol->private_value >> 22) & 1; in snd_es1688_get_double() local
897 if (invert) { in snd_es1688_get_double()
[all …]
/sound/soc/pxa/
Dz2.c89 .invert = 1
100 .invert = 1,
Dhx4700.c44 .invert = 1,
51 .invert = true,
/sound/pci/ice1712/
Dews.c751 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_ews88d_control_get() local
761 if (invert) in snd_ice1712_ews88d_control_get()
772 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_ews88d_control_put() local
782 if (invert) { in snd_ice1712_ews88d_control_put()
862 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_6fire_control_get() local
868 if (invert) in snd_ice1712_6fire_control_get()
878 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_6fire_control_put() local
886 if (invert) in snd_ice1712_6fire_control_put()
/sound/soc/samsung/
Dh1940_uda1380.c50 .invert = 1,
59 .invert = 1,
Drx1950_uda1380.c62 .invert = 1,
71 .invert = 1,
/sound/parisc/
Dharmony.c719 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_get() local
726 if (invert) { in snd_harmony_volume_get()
748 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_put() local
755 if (invert) in snd_harmony_volume_put()
762 if (invert) in snd_harmony_volume_put()
824 #define HARMONY_VOLUME(xname, left_shift, right_shift, mask, invert) \ argument
829 ((mask) << 16) | ((invert) << 24)) }
/sound/soc/tegra/
Dtegra_rt5640.c96 .invert = 1,
119 tegra_rt5640_hp_jack_gpio.invert = in tegra_rt5640_asoc_init()

123