diff options
author | Jaroslav Kysela <perex@perex.cz> | 2009-11-11 07:43:01 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-16 05:35:14 -0500 |
commit | 3911a4c19e927738766003839aa447becbdbaa27 (patch) | |
tree | 7a9dc03cfc6776a57a6e459cd4efe5d8e16797cd /sound/pci/hda/hda_local.h | |
parent | 2dca0bba70ce3c233be152e384580c134935332d (diff) |
ALSA: hda - proc - introduce Control: lines to show mixer<->NID assignment
This is an initial patch to show universal control<->NID assigment in
proc codec file. The change helps to debug codec related problems.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
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) |