diff options
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 5c9e578f7f2d..7957fefda730 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -368,12 +368,15 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec, | |||
368 | #define AMP_OUT_UNMUTE 0xb000 | 368 | #define AMP_OUT_UNMUTE 0xb000 |
369 | #define AMP_OUT_ZERO 0xb000 | 369 | #define AMP_OUT_ZERO 0xb000 |
370 | /* pinctl values */ | 370 | /* pinctl values */ |
371 | #define PIN_IN 0x20 | 371 | #define PIN_IN (AC_PINCTL_IN_EN) |
372 | #define PIN_VREF80 0x24 | 372 | #define PIN_VREFHIZ (AC_PINCTL_IN_EN | AC_PINCTL_VREF_HIZ) |
373 | #define PIN_VREF50 0x21 | 373 | #define PIN_VREF50 (AC_PINCTL_IN_EN | AC_PINCTL_VREF_50) |
374 | #define PIN_OUT 0x40 | 374 | #define PIN_VREFGRD (AC_PINCTL_IN_EN | AC_PINCTL_VREF_GRD) |
375 | #define PIN_HP 0xc0 | 375 | #define PIN_VREF80 (AC_PINCTL_IN_EN | AC_PINCTL_VREF_80) |
376 | #define PIN_HP_AMP 0x80 | 376 | #define PIN_VREF100 (AC_PINCTL_IN_EN | AC_PINCTL_VREF_100) |
377 | #define PIN_OUT (AC_PINCTL_OUT_EN) | ||
378 | #define PIN_HP (AC_PINCTL_OUT_EN | AC_PINCTL_HP_EN) | ||
379 | #define PIN_HP_AMP (AC_PINCTL_HP_EN) | ||
377 | 380 | ||
378 | /* | 381 | /* |
379 | * get widget capabilities | 382 | * get widget capabilities |
@@ -418,4 +421,13 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec, | |||
418 | hda_nid_t nid); | 421 | hda_nid_t nid); |
419 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ | 422 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ |
420 | 423 | ||
424 | /* | ||
425 | * AMP control callbacks | ||
426 | */ | ||
427 | /* retrieve parameters from private_value */ | ||
428 | #define get_amp_nid(kc) ((kc)->private_value & 0xffff) | ||
429 | #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) | ||
430 | #define get_amp_direction(kc) (((kc)->private_value >> 18) & 0x1) | ||
431 | #define get_amp_index(kc) (((kc)->private_value >> 19) & 0xf) | ||
432 | |||
421 | #endif /* __SOUND_HDA_LOCAL_H */ | 433 | #endif /* __SOUND_HDA_LOCAL_H */ |