diff options
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 3001794ad291..e6a0918f70d3 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -440,7 +440,13 @@ int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, | |||
440 | unsigned int caps); | 440 | unsigned int caps); |
441 | u32 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid); | 441 | u32 snd_hda_query_pin_caps(struct hda_codec *codec, hda_nid_t nid); |
442 | 442 | ||
443 | int snd_hda_ctl_add(struct hda_codec *codec, struct snd_kcontrol *kctl); | 443 | struct hda_nid_item { |
444 | struct snd_kcontrol *kctl; | ||
445 | hda_nid_t nid; | ||
446 | }; | ||
447 | |||
448 | int snd_hda_ctl_add(struct hda_codec *codec, hda_nid_t nid, | ||
449 | struct snd_kcontrol *kctl); | ||
444 | void snd_hda_ctls_clear(struct hda_codec *codec); | 450 | void snd_hda_ctls_clear(struct hda_codec *codec); |
445 | 451 | ||
446 | /* | 452 | /* |
@@ -514,7 +520,8 @@ int snd_hda_check_amp_list_power(struct hda_codec *codec, | |||
514 | * AMP control callbacks | 520 | * AMP control callbacks |
515 | */ | 521 | */ |
516 | /* retrieve parameters from private_value */ | 522 | /* retrieve parameters from private_value */ |
517 | #define get_amp_nid(kc) ((kc)->private_value & 0xffff) | 523 | #define get_amp_nid_(pv) ((pv) & 0xffff) |
524 | #define get_amp_nid(kc) get_amp_nid_((kc)->private_value) | ||
518 | #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) | 525 | #define get_amp_channels(kc) (((kc)->private_value >> 16) & 0x3) |
519 | #define get_amp_direction(kc) (((kc)->private_value >> 18) & 0x1) | 526 | #define get_amp_direction(kc) (((kc)->private_value >> 18) & 0x1) |
520 | #define get_amp_index(kc) (((kc)->private_value >> 19) & 0xf) | 527 | #define get_amp_index(kc) (((kc)->private_value >> 19) & 0xf) |