Home
last modified time | relevance | path

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

12

/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/pci/
Dak4531_codec.c63 #define AK4531_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
67 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22) }
68 #define AK4531_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
74 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22), \
94 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single() local
100 if (invert) { in snd_ak4531_get_single()
113 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_put_single() local
118 if (invert) { in snd_ak4531_put_single()
130 #define AK4531_DOUBLE(xname, xindex, left_reg, right_reg, left_shift, right_shift, mask, invert) \ argument
134 …reg | (right_reg << 8) | (left_shift << 16) | (right_shift << 19) | (mask << 24) | (invert << 22) }
[all …]
Des1938.c1175 #define ES1938_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
1181 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
1183 #define ES1938_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
1187 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
1208 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1938_get_single() local
1213 if (invert) in snd_es1938_get_single()
1225 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1938_put_single() local
1229 if (invert) in snd_es1938_put_single()
1236 #define ES1938_DOUBLE_TLV(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert argument
1242 …eg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22), \
[all …]
Dfm801.c1026 #define FM801_SINGLE(xname, reg, shift, mask, invert) \ argument
1029 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
1050 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_fm801_get_single() local
1053 if (invert) in snd_fm801_get_single()
1065 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_fm801_put_single() local
1069 if (invert) in snd_fm801_put_single()
1074 #define FM801_DOUBLE(xname, reg, shift_left, shift_right, mask, invert) \ argument
1077 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }
1078 #define FM801_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
1083 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
[all …]
Dsonicvibes.c929 #define SONICVIBES_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
933 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
952 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_sonicvibes_get_single() local
957 if (invert) in snd_sonicvibes_get_single()
968 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_sonicvibes_put_single() local
973 if (invert) in snd_sonicvibes_put_single()
985 #define SONICVIBES_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert argument
989 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
1010 int invert = (kcontrol->private_value >> 22) & 1; in snd_sonicvibes_get_double() local
1016 if (invert) { in snd_sonicvibes_get_double()
[all …]
Dazt3328.c487 unsigned int invert: 1; member
492 #define COMPOSE_MIXER_REG(reg,lchan_shift,rchan_shift,mask,invert,stereo,enum_c) \ argument
495 (invert << 24) | \
505 r->invert = (val >> 24) & 1; in snd_azf3328_mixer_reg_decode()
514 #define AZF3328_MIXER_SWITCH(xname, reg, shift, invert) \ argument
518 .private_value = COMPOSE_MIXER_REG(reg, shift, 0, 0x1, invert, 0, 0), \
521 #define AZF3328_MIXER_VOL_STEREO(xname, reg, mask, invert) \ argument
525 .private_value = COMPOSE_MIXER_REG(reg, 8, 0, mask, invert, 1, 0), \
535 #define AZF3328_MIXER_VOL_SPECIAL(xname, reg, mask, shift, invert) \ argument
539 .private_value = COMPOSE_MIXER_REG(reg, shift, 0, mask, invert, 0, 0), \
[all …]
Dcmipci.c1991 unsigned int invert: 1; member
1995 #define COMPOSE_SB_REG(lreg,rreg,lshift,rshift,mask,invert,stereo) \ argument
1996 …((lreg) | ((rreg) << 8) | (lshift << 16) | (rshift << 19) | (mask << 24) | (invert << 22) | (stere…
1998 #define CMIPCI_DOUBLE(xname, left_reg, right_reg, left_shift, right_shift, mask, invert, stereo) \ argument
2002 ….private_value = COMPOSE_SB_REG(left_reg, right_reg, left_shift, right_shift, mask, invert, stereo…
2016 r->invert = (val >> 22) & 1; in cmipci_sb_reg_decode()
2044 if (reg.invert) in snd_cmipci_get_volume()
2049 if (reg.invert) in snd_cmipci_get_volume()
2067 if (reg.invert) in snd_cmipci_put_volume()
2072 if (reg.invert) in snd_cmipci_put_volume()
[all …]
/sound/isa/cs423x/
Dcs4236_lib.c383 #define CS4236_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
387 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
407 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single() local
412 if (invert) in snd_cs4236_get_single()
424 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_put_single() local
429 if (invert) in snd_cs4236_put_single()
440 #define CS4236_SINGLEC(xname, xindex, reg, shift, mask, invert) \ argument
444 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
453 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_singlec() local
458 if (invert) in snd_cs4236_get_singlec()
[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.c297 int w16, int invert) in snd_gf1_pcm_poke_block() argument
310 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, 0x01 | (invert ? 0x08 : 0x00)); in snd_gf1_pcm_poke_block()
322 invert = invert ? 0x80 : 0x00; in snd_gf1_pcm_poke_block()
327 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block()
331 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block()
365 int err, w16, invert; in snd_gf1_pcm_playback_copy() local
368 invert = snd_pcm_format_unsigned(runtime->format); in snd_gf1_pcm_playback_copy()
369 … snd_gf1_pcm_poke_block(gus, runtime->dma_area + bpos, pcmp->memory + bpos, len, w16, invert)) < 0) in snd_gf1_pcm_playback_copy()
395 int err, w16, invert; in snd_gf1_pcm_playback_silence() local
398 invert = snd_pcm_format_unsigned(runtime->format); in snd_gf1_pcm_playback_silence()
[all …]
/sound/i2c/l3/
Duda1341.c528 #define UDA1341_SINGLE(xname, where, reg, shift, mask, invert) \ argument
531 .private_value = where | (reg << 5) | (shift << 9) | (mask << 12) | (invert << 18) \
553 int invert = (kcontrol->private_value >> 18) & 1; in snd_uda1341_get_single() local
556 if (invert) in snd_uda1341_get_single()
571 int invert = (kcontrol->private_value >> 18) & 1; in snd_uda1341_put_single() local
575 if (invert) in snd_uda1341_put_single()
586 #define UDA1341_ENUM(xname, where, reg, shift, mask, invert) \ argument
589 .private_value = where | (reg << 5) | (shift << 9) | (mask << 12) | (invert << 18) \
644 #define UDA1341_2REGS(xname, where, reg_1, reg_2, shift_1, shift_2, mask_1, mask_2, invert) \ argument
648 (mask_1 << 19) | (mask_2 << 25) | (invert << 31) \
[all …]
/sound/spi/
Dat73c213.c409 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_get() local
416 if (invert) in snd_at73c213_mono_get()
432 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_put() local
437 if (invert) in snd_at73c213_mono_put()
481 int invert = (kcontrol->private_value >> 22) & 1; in snd_at73c213_stereo_get() local
490 if (invert) { in snd_at73c213_stereo_get()
511 int invert = (kcontrol->private_value >> 22) & 1; in snd_at73c213_stereo_put() local
517 if (invert) { in snd_at73c213_stereo_put()
557 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_switch_get() local
564 if (invert) in snd_at73c213_mono_switch_get()
[all …]
/sound/isa/ad1816a/
Dad1816a_lib.c767 #define AD1816A_SINGLE_TLV(xname, reg, shift, mask, invert, xtlv) \ argument
772 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
774 #define AD1816A_SINGLE(xname, reg, shift, mask, invert) \ argument
777 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
797 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_ad1816a_get_single() local
802 if (invert) in snd_ad1816a_get_single()
814 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_ad1816a_put_single() local
819 if (invert) in snd_ad1816a_put_single()
831 #define AD1816A_DOUBLE_TLV(xname, reg, shift_left, shift_right, mask, invert, xtlv) \ argument
836 .private_value = reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24), \
[all …]
/sound/isa/
Dopl3sa2.c339 #define OPL3SA2_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
343 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
344 #define OPL3SA2_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
350 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
360 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_get_single() local
365 if (invert) in snd_opl3sa2_get_single()
377 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_put_single() local
382 if (invert) in snd_opl3sa2_put_single()
394 #define OPL3SA2_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
398 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
[all …]
Des18xx.c1151 #define ES18XX_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
1155 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
1174 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es18xx_get_single() local
1179 if (invert) in snd_es18xx_get_single()
1190 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es18xx_put_single() local
1194 if (invert) in snd_es18xx_put_single()
1201 #define ES18XX_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
1205 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
1226 int invert = (kcontrol->private_value >> 22) & 1; in snd_es18xx_get_double() local
1236 if (invert) { in snd_es18xx_get_double()
[all …]
/sound/soc/
Dsoc-dapm.c112 unsigned int invert = mc->invert; in dapm_set_path_status() local
117 if ((invert && !val) || (!invert && val)) in dapm_set_path_status()
241 if (widget->invert) in dapm_update_bits()
278 unsigned int invert = mc->invert; in dapm_set_pga() local
283 if (invert) { in dapm_set_pga()
295 if (invert) { in dapm_set_pga()
757 int val_mask, int val, int invert) in dapm_mixer_update_power() argument
778 path->connect = invert ? 0:1; in dapm_mixer_update_power()
781 path->connect = invert ? 1:0; in dapm_mixer_update_power()
1121 unsigned int invert = mc->invert; in snd_soc_dapm_get_volsw() local
[all …]
Dsoc-core.c1767 unsigned int invert = mc->invert; in snd_soc_get_volsw() local
1774 if (invert) { in snd_soc_get_volsw()
1806 unsigned int invert = mc->invert; in snd_soc_put_volsw() local
1810 if (invert) in snd_soc_put_volsw()
1816 if (invert) in snd_soc_put_volsw()
1874 unsigned int invert = mc->invert; in snd_soc_get_volsw_2r() local
1880 if (invert) { in snd_soc_get_volsw_2r()
1911 unsigned int invert = mc->invert; in snd_soc_put_volsw_2r() local
1919 if (invert) { in snd_soc_put_volsw_2r()
/sound/isa/es1688/
Des1688_lib.c797 #define ES1688_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
801 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
821 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_get_single() local
826 if (invert) in snd_es1688_get_single()
838 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_put_single() local
843 if (invert) in snd_es1688_put_single()
856 #define ES1688_DOUBLE(xname, xindex, left_reg, right_reg, shift_left, shift_right, mask, invert) \ argument
860 …reg | (right_reg << 8) | (shift_left << 16) | (shift_right << 19) | (mask << 24) | (invert << 22) }
882 int invert = (kcontrol->private_value >> 22) & 1; in snd_es1688_get_double() local
900 if (invert) { in snd_es1688_get_double()
[all …]
/sound/pci/oxygen/
Doxygen_mixer.c464 int invert = ctl->private_value & (1 << 8); in monitor_get() local
467 !!invert ^ !!(oxygen_read8(chip, OXYGEN_ADC_MONITOR) & bit); in monitor_get()
476 int invert = ctl->private_value & (1 << 8); in monitor_put() local
482 if ((!!value->value.integer.value[0] ^ !!invert) != 0) in monitor_put()
500 int invert = ctl->private_value & (1 << 16); in ac97_switch_get() local
506 if (!(reg & (1 << bitnr)) ^ !invert) in ac97_switch_get()
538 int invert = ctl->private_value & (1 << 16); in ac97_switch_put() local
545 if (!value->value.integer.value[0] ^ !invert) in ac97_switch_put()
667 #define AC97_SWITCH(xname, codec, index, bitnr, invert) { \ argument
673 .private_value = ((codec) << 24) | ((invert) << 16) | \
/sound/pci/ice1712/
Dews.c756 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_ews88d_control_get() local
766 if (invert) in snd_ice1712_ews88d_control_get()
777 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_ews88d_control_put() local
787 if (invert) { in snd_ice1712_ews88d_control_put()
867 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_6fire_control_get() local
873 if (invert) in snd_ice1712_6fire_control_get()
883 int invert = (kcontrol->private_value >> 8) & 1; in snd_ice1712_6fire_control_put() local
891 if (invert) in snd_ice1712_6fire_control_put()
Dice1712.h429 #define ICE1712_GPIO(xiface, xname, xindex, mask, invert, xaccess) \ argument
432 .private_value = mask | (invert << 24) }
/sound/parisc/
Dharmony.c716 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_get() local
723 if (invert) { in snd_harmony_volume_get()
745 int invert = (kc->private_value >> 24) & 0xff; in snd_harmony_volume_put() local
752 if (invert) in snd_harmony_volume_put()
759 if (invert) in snd_harmony_volume_put()
827 #define HARMONY_VOLUME(xname, left_shift, right_shift, mask, invert) \ argument
832 ((mask) << 16) | ((invert) << 24)) }
/sound/soc/codecs/
Dtlv320aic3x.c154 #define SOC_DAPM_SINGLE_AIC3X(xname, reg, shift, mask, invert) \ argument
158 .private_value = SOC_SINGLE_VALUE(reg, shift, mask, invert) }
174 unsigned int invert = mc->invert; in snd_soc_dapm_put_volsw_aic3x() local
186 if (invert) in snd_soc_dapm_put_volsw_aic3x()
203 path->connect = invert ? 0 : 1; in snd_soc_dapm_put_volsw_aic3x()
206 path->connect = invert ? 1 : 0; in snd_soc_dapm_put_volsw_aic3x()
/sound/sparc/
Dcs4231.c1363 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4231_get_single() local
1371 if (invert) in snd_cs4231_get_single()
1386 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4231_put_single() local
1391 if (invert) in snd_cs4231_put_single()
1430 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4231_get_double() local
1441 if (invert) { in snd_cs4231_get_double()
1461 int invert = (kcontrol->private_value >> 22) & 1; in snd_cs4231_put_double() local
1467 if (invert) { in snd_cs4231_put_double()
1488 #define CS4231_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
1492 .private_value = (reg) | ((shift) << 8) | ((mask) << 16) | ((invert) << 24) }
[all …]
/sound/i2c/other/
Dak4xxx-adda.c487 int invert = AK_GET_INVERT(kcontrol->private_value); in ak4xxx_switch_get() local
490 if (invert) in ak4xxx_switch_get()
503 int invert = AK_GET_INVERT(kcontrol->private_value); in ak4xxx_switch_put() local
508 if (invert) in ak4xxx_switch_put()

12