diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-28 06:55:36 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-28 06:55:36 -0500 |
commit | daead538e9d8efe61d7d2bd12993c8d961b0abd6 (patch) | |
tree | 3a60c0e26f5c499547fd77f5ce06deeeee473706 /sound/pci/hda/hda_proc.c | |
parent | 11cd41b893895c76a8f9bee9467f4b0869b5eeb3 (diff) |
ALSA: hda - Add codec-specific proc hook
Added a hook for proc outputs of codec-specific stuff.
Moved realtek-specific coeff output into patch_realtek.c as well.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_proc.c')
-rw-r--r-- | sound/pci/hda/hda_proc.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c index 9a8498456e6c..7b3817985c34 100644 --- a/sound/pci/hda/hda_proc.c +++ b/sound/pci/hda/hda_proc.c | |||
@@ -414,17 +414,6 @@ static void print_conn_list(struct snd_info_buffer *buffer, | |||
414 | } | 414 | } |
415 | } | 415 | } |
416 | 416 | ||
417 | static void print_realtek_coef(struct snd_info_buffer *buffer, | ||
418 | struct hda_codec *codec, hda_nid_t nid) | ||
419 | { | ||
420 | int coeff = snd_hda_codec_read(codec, nid, 0, | ||
421 | AC_VERB_GET_PROC_COEF, 0); | ||
422 | snd_iprintf(buffer, " Processing Coefficient: 0x%02x\n", coeff); | ||
423 | coeff = snd_hda_codec_read(codec, nid, 0, | ||
424 | AC_VERB_GET_COEF_INDEX, 0); | ||
425 | snd_iprintf(buffer, " Coefficient Index: 0x%02x\n", coeff); | ||
426 | } | ||
427 | |||
428 | static void print_gpio(struct snd_info_buffer *buffer, | 417 | static void print_gpio(struct snd_info_buffer *buffer, |
429 | struct hda_codec *codec, hda_nid_t nid) | 418 | struct hda_codec *codec, hda_nid_t nid) |
430 | { | 419 | { |
@@ -606,9 +595,8 @@ static void print_codec_info(struct snd_info_entry *entry, | |||
606 | if (wid_caps & AC_WCAP_PROC_WID) | 595 | if (wid_caps & AC_WCAP_PROC_WID) |
607 | print_proc_caps(buffer, codec, nid); | 596 | print_proc_caps(buffer, codec, nid); |
608 | 597 | ||
609 | /* NID 0x20 == Realtek Define Registers */ | 598 | if (codec->proc_widget_hook) |
610 | if (codec->vendor_id == 0x10ec && nid == 0x20) | 599 | codec->proc_widget_hook(buffer, codec, nid); |
611 | print_realtek_coef(buffer, codec, nid); | ||
612 | } | 600 | } |
613 | snd_hda_power_down(codec); | 601 | snd_hda_power_down(codec); |
614 | } | 602 | } |