Lines Matching defs:action

314 static void alc_fixup_gpio(struct hda_codec *codec, int action,
317 if (action == HDA_FIXUP_ACT_PRE_PROBE)
322 const struct hda_fixup *fix, int action)
324 alc_fixup_gpio(codec, action, 0x01);
328 const struct hda_fixup *fix, int action)
330 alc_fixup_gpio(codec, action, 0x02);
334 const struct hda_fixup *fix, int action)
336 alc_fixup_gpio(codec, action, 0x03);
340 const struct hda_fixup *fix, int action)
342 alc_fixup_gpio(codec, action, 0x04);
346 const struct hda_fixup *fix, int action)
348 if (action == HDA_FIXUP_ACT_PRE_PROBE)
660 const struct hda_fixup *fix, int action)
663 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
670 const struct hda_fixup *fix, int action)
674 if (action == HDA_FIXUP_ACT_PROBE) {
889 const struct hda_fixup *fix, int action)
1257 const struct hda_fixup *fix, int action)
1259 if (action == HDA_FIXUP_ACT_PROBE)
1716 const struct hda_fixup *fix, int action)
1719 if (action == HDA_FIXUP_ACT_PROBE) {
1734 const struct hda_fixup *fix, int action)
1753 switch (action) {
1762 const struct hda_fixup *fix, int action)
1765 if (action == HDA_FIXUP_ACT_PRE_PROBE)
1770 const struct hda_fixup *fix, int action)
1773 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
1995 const struct hda_fixup *fix, int action)
1997 if (action != HDA_FIXUP_ACT_INIT)
2004 const struct hda_fixup *fix, int action)
2009 alc_fixup_gpio3(codec, fix, action);
2017 const struct hda_fixup *fix, int action)
2019 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
2027 } else if (action == HDA_FIXUP_ACT_PROBE) {
2039 const struct hda_fixup *fix, int action)
2045 if (action != HDA_FIXUP_ACT_INIT)
2076 const struct hda_fixup *fix, int action)
2080 if (action == HDA_FIXUP_ACT_INIT)
2086 const struct hda_fixup *fix, int action)
2090 if (action == HDA_FIXUP_ACT_INIT)
2096 const struct hda_fixup *fix, int action)
2100 if (action == HDA_FIXUP_ACT_INIT)
2109 const struct hda_fixup *fix, int action)
2112 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
2119 const struct hda_fixup *fix, int action);
2125 const struct hda_fixup *fix, int action)
2129 if (action != HDA_FIXUP_ACT_PRE_PROBE)
2154 int action)
2156 alc_fixup_dual_codecs(codec, fix, action);
2157 switch (action) {
2178 int action)
2189 switch (action) {
2202 int action)
2206 if (action != HDA_FIXUP_ACT_PRE_PROBE)
2218 const struct hda_fixup *fix, int action);
2222 int action)
2224 alc1220_fixup_clevo_p950(codec, fix, action);
2225 alc_fixup_headset_mode_no_hp_mic(codec, fix, action);
2244 const struct hda_fixup *fix, int action)
2247 if (action != HDA_FIXUP_ACT_PROBE)
3308 const struct hda_fixup *fix, int action)
3313 switch (action) {
4090 const struct hda_fixup *fix, int action)
4094 if (action == HDA_FIXUP_ACT_PRE_PROBE)
4100 int action)
4112 const struct hda_fixup *fix, int action)
4114 if (action == HDA_FIXUP_ACT_INIT)
4119 const struct hda_fixup *fix, int action)
4123 if (action == HDA_FIXUP_ACT_PRE_PROBE)
4128 const struct hda_fixup *fix, int action)
4148 int action)
4150 if (action == HDA_FIXUP_ACT_INIT)
4155 const struct hda_fixup *fix, int action)
4159 if (action != HDA_FIXUP_ACT_PROBE)
4170 const struct hda_fixup *fix, int action)
4177 if (action == HDA_FIXUP_ACT_INIT)
4190 const struct hda_fixup *fix, int action)
4193 if (action != HDA_FIXUP_ACT_PROBE)
4246 int action)
4264 if (action != HDA_FIXUP_ACT_INIT)
4282 const struct hda_fixup *fix, int action)
4285 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4340 const struct hda_fixup *fix, int action)
4345 if (action != HDA_FIXUP_ACT_PRE_PROBE)
4367 int action, hda_nid_t pin)
4371 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4380 const struct hda_fixup *fix, int action)
4382 alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x18);
4386 const struct hda_fixup *fix, int action)
4388 alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x19);
4392 const struct hda_fixup *fix, int action)
4394 alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x1b);
4432 int action,
4438 alc_fixup_gpio(codec, action, mute_mask | micmute_mask);
4440 if (action != HDA_FIXUP_ACT_PRE_PROBE)
4453 const struct hda_fixup *fix, int action)
4455 alc_fixup_hp_gpio_led(codec, action, 0x02, 0x01);
4459 const struct hda_fixup *fix, int action)
4461 alc_fixup_hp_gpio_led(codec, action, 0x08, 0x10);
4465 const struct hda_fixup *fix, int action)
4467 alc_fixup_hp_gpio_led(codec, action, 0x04, 0x01);
4471 const struct hda_fixup *fix, int action)
4473 alc_fixup_hp_gpio_led(codec, action, 0x02, 0x20);
4477 const struct hda_fixup *fix, int action)
4479 alc_fixup_hp_gpio_led(codec, action, 0x10, 0);
4483 const struct hda_fixup *fix, int action)
4487 if (action == HDA_FIXUP_ACT_PRE_PROBE)
4489 alc_fixup_hp_gpio_led(codec, action, 0, 0x04);
4505 const struct hda_fixup *fix, int action)
4509 alc_fixup_hp_gpio_led(codec, action, 0x08, 0);
4510 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4523 const struct hda_fixup *fix, int action)
4527 alc_fixup_hp_gpio_led(codec, action, 0x08, 0);
4528 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4539 const struct hda_fixup *fix, int action)
4543 switch (action) {
4561 int action)
4563 switch (action) {
4575 int action)
4579 if (action == HDA_FIXUP_ACT_PROBE) {
4611 int action)
4615 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4627 int action)
4631 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4642 const struct hda_fixup *fix, int action)
4646 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4658 int action)
4662 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4685 const struct hda_fixup *fix, int action)
4689 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4699 const struct hda_fixup *fix, int action)
4703 if (action == HDA_FIXUP_ACT_PRE_PROBE)
4705 alc_fixup_hp_gpio_led(codec, action, 0, 0x04);
4709 const struct hda_fixup *fix, int action)
4713 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4723 const struct hda_fixup *fix, int action)
4725 alc285_fixup_hp_mute_led_coefbit(codec, fix, action);
4726 alc285_fixup_hp_coef_micmute_led(codec, fix, action);
4730 const struct hda_fixup *fix, int action)
4732 alc285_fixup_hp_mute_led_coefbit(codec, fix, action);
4733 alc285_fixup_hp_gpio_micmute_led(codec, fix, action);
4737 const struct hda_fixup *fix, int action)
4739 alc236_fixup_hp_mute_led_coefbit(codec, fix, action);
4740 alc236_fixup_hp_coef_micmute_led(codec, fix, action);
4744 const struct hda_fixup *fix, int action)
4748 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4756 const struct hda_fixup *fix, int action)
4758 alc236_fixup_hp_mute_led_coefbit(codec, fix, action);
4759 alc236_fixup_hp_micmute_led_vref(codec, fix, action);
4776 const struct hda_fixup *fix, int action)
4790 if (action != HDA_FIXUP_ACT_INIT)
4855 const struct hda_fixup *fix, int action)
4859 alc_fixup_hp_gpio_led(codec, action, 0x08, 0x10);
4860 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4878 switch (action) {
4889 const struct hda_fixup *fix, int action)
4893 alc_fixup_hp_gpio_led(codec, action, 0, 0x04);
4894 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
4907 switch (action) {
4919 const struct hda_fixup *fix, int action)
4923 alc269_fixup_hp_mute_led_micx(codec, fix, action, 0x1a);
4924 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
5851 const struct hda_fixup *fix, int action)
5855 switch (action) {
5873 const struct hda_fixup *fix, int action)
5875 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
5880 alc_fixup_headset_mode(codec, fix, action);
5917 const struct hda_fixup *fix, int action)
5919 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
5922 alc_fixup_headset_mode(codec, fix, action);
5926 const struct hda_fixup *fix, int action)
5928 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
5934 alc_fixup_headset_mode(codec, fix, action);
5948 const struct hda_fixup *fix, int action)
5950 alc_fixup_headset_mode(codec, fix, action);
5951 if (action == HDA_FIXUP_ACT_PROBE) {
5961 const struct hda_fixup *fix, int action)
5963 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
5970 const struct hda_fixup *fix, int action)
5972 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
5979 const struct hda_fixup *fix, int action)
5981 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
5990 const struct hda_fixup *fix, int action)
5999 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6007 const struct hda_fixup *fix, int action)
6016 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6019 } else if (action == HDA_FIXUP_ACT_INIT) {
6030 const struct hda_fixup *fix, int action)
6042 if (action == HDA_FIXUP_ACT_PRE_PROBE)
6047 const struct hda_fixup *fix, int action)
6054 if (action == HDA_FIXUP_ACT_PRE_PROBE)
6070 const struct hda_fixup *fix, int action)
6076 switch (action) {
6097 const struct hda_fixup *fix, int action)
6101 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6110 alc_fixup_headset_mode(codec, fix, action);
6114 const struct hda_fixup *fix, int action)
6116 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6121 alc_fixup_headset_mode(codec, fix, action);
6148 int action)
6152 if (action == HDA_FIXUP_ACT_PROBE) {
6164 int action)
6174 if (action != HDA_FIXUP_ACT_PROBE)
6211 const struct hda_fixup *fix, int action)
6215 switch (action) {
6232 const struct hda_fixup *fix, int action)
6236 switch (action) {
6258 const struct hda_fixup *fix, int action)
6266 switch (action) {
6293 const struct hda_fixup *fix, int action)
6295 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6306 const struct hda_fixup *fix, int action)
6308 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6323 const struct hda_fixup *fix, int action)
6325 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6333 const struct hda_fixup *fix, int action)
6335 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6361 int action)
6365 alc_fixup_hp_gpio_led(codec, action, 0x08, 0);
6366 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6376 int action)
6380 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6394 const struct hda_fixup *fix, int action)
6402 switch (action) {
6422 int action)
6424 alc_fixup_dual_codecs(codec, fix, action);
6425 switch (action) {
6445 const struct hda_fixup *fix, int action)
6447 if (action != HDA_FIXUP_ACT_PRE_PROBE)
6455 const struct hda_fixup *fix, int action)
6463 if (action != HDA_FIXUP_ACT_PRE_PROBE)
6473 const struct hda_fixup *fix, int action)
6480 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6488 const struct hda_fixup *fix, int action)
6490 if (action != HDA_FIXUP_ACT_PRE_PROBE)
6521 const struct hda_fixup *fix, int action)
6525 switch (action) {
6536 const struct hda_fixup *fix, int action)
6538 if (action == HDA_FIXUP_ACT_PRE_PROBE)
6556 const struct hda_fixup *fix, int action)
6562 switch (action) {
6589 const struct hda_fixup *fix, int action)
6594 switch (action) {
6606 const struct hda_fixup *fix, int action)
6608 if (action != HDA_FIXUP_ACT_INIT)
6616 const struct hda_fixup *fix, int action)
6618 switch (action) {
6626 const struct hda_fixup *fix, int action)
6630 switch (action) {
6646 const struct hda_fixup *fix, int action)
6658 alc_fixup_hp_gpio_led(codec, action, 0x00, 0x04);
6660 switch (action) {
6681 const struct hda_fixup *fix, int action)
6689 switch (action) {
6700 int action)
6722 switch (action) {
6727 alc295_fixup_disable_dac3(codec, fix, action);
6756 const struct hda_fixup *fix, int action)
6758 alc_fixup_no_shutup(codec, fix, action); /* reduce click noise */
6759 hda_fixup_thinkpad_acpi(codec, fix, action);
6765 int action)
6769 switch (action) {
6798 struct snd_pcm_substream *sub, int action)
6805 spec->comps[i].pre_playback_hook(spec->comps[i].dev, action);
6809 spec->comps[i].playback_hook(spec->comps[i].dev, action);
6813 spec->comps[i].post_playback_hook(spec->comps[i].dev, action);
6862 static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char *bus,
6870 switch (action) {
6895 static void tas2781_generic_fixup(struct hda_codec *cdc, int action,
6903 switch (action) {
6930 static void cs35l41_fixup_i2c_two(struct hda_codec *cdc, const struct hda_fixup *fix, int action)
6932 cs35l41_generic_fixup(cdc, action, "i2c", "CSC3551", 2);
6935 static void cs35l41_fixup_spi_two(struct hda_codec *codec, const struct hda_fixup *fix, int action)
6937 cs35l41_generic_fixup(codec, action, "spi", "CSC3551", 2);
6940 static void cs35l41_fixup_spi_four(struct hda_codec *codec, const struct hda_fixup *fix, int action)
6942 cs35l41_generic_fixup(codec, action, "spi", "CSC3551", 4);
6946 int action)
6948 cs35l41_generic_fixup(cdc, action, "i2c", "CLSA0100", 2);
6952 int action)
6954 cs35l41_generic_fixup(cdc, action, "i2c", "CLSA0101", 2);
6958 const struct hda_fixup *fix, int action)
6960 tas2781_generic_fixup(cdc, action, "i2c", "TIAS2781");
6978 int action)
7000 int action)
7014 int action)
7031 int action)
7037 alc269_fixup_limit_int_mic_boost(codec, fix, action);
7039 switch (action) {
7065 const struct hda_fixup *fix, int action)
7092 switch (action) {
7102 const struct hda_fixup *fix, int action)
7118 alc_fixup_no_shutup(codec, fix, action);
7120 switch (action) {
7131 const struct hda_fixup *fix, int action)
7139 if (action != HDA_FIXUP_ACT_PRE_PROBE)
7152 const struct hda_fixup *fix, int action)
7160 switch (action) {
7450 int action)
7458 __snd_hda_apply_fixup(codec, id, action, 0);
7470 int action)
7478 __snd_hda_apply_fixup(codec, id, action, 0);
11231 const struct hda_fixup *fix, int action)
11236 if (action != HDA_FIXUP_ACT_INIT)
11248 const struct hda_fixup *fix, int action)
11250 if (action == HDA_FIXUP_ACT_PRE_PROBE)
11365 const struct hda_fixup *fix, int action)
11367 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
11375 const struct hda_fixup *fix, int action)
11379 if (action == HDA_FIXUP_ACT_PRE_PROBE)
11381 alc_fixup_gpio(codec, action, 0x01);
11477 const struct hda_fixup *fix, int action)
11479 if (action != HDA_FIXUP_ACT_PRE_PROBE)
11500 const struct hda_fixup *fix, int action)
11502 if (action == HDA_FIXUP_ACT_BUILD) {
11520 const struct hda_fixup *fix, int action)
11524 alc_fixup_hp_gpio_led(codec, action, 0x01, 0);
11525 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
11546 const struct hda_fixup *fix, int action)
11549 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
11574 const struct hda_fixup *fix, int action)
11580 switch (action) {
11597 const struct hda_fixup *fix, int action)
11607 switch (action) {
11632 const struct hda_fixup *fix, int action)
11635 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
11641 const struct hda_fixup *fix, int action)
11645 if (action == HDA_FIXUP_ACT_PRE_PROBE) {