aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-01-25 09:41:11 -0500
committerTakashi Iwai <tiwai@suse.de>2010-01-25 09:42:58 -0500
commit95f475f7a2e5d60fe9eeb7a2700753036a6ee6a0 (patch)
tree6e9506c6a58f3b675e295e321a82c69f38234178 /sound/pci/hda/patch_realtek.c
parent23d2df5b0db67fa90d3caf4b2d2f21ca33ec9c11 (diff)
ALSA: hda - Remove coef output in Realtek proc files
The output of COEF index/value in the proc file for Realtek codecs is rather useless since the value varies together with the index. Let's get rid of it again. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index c53faa959390..a3d223894642 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -841,27 +841,6 @@ static void add_verb(struct alc_spec *spec, const struct hda_verb *verb)
841 spec->init_verbs[spec->num_init_verbs++] = verb; 841 spec->init_verbs[spec->num_init_verbs++] = verb;
842} 842}
843 843
844#ifdef CONFIG_PROC_FS
845/*
846 * hook for proc
847 */
848static void print_realtek_coef(struct snd_info_buffer *buffer,
849 struct hda_codec *codec, hda_nid_t nid)
850{
851 int coeff;
852
853 if (nid != 0x20)
854 return;
855 coeff = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0);
856 snd_iprintf(buffer, " Processing Coefficient: 0x%02x\n", coeff);
857 coeff = snd_hda_codec_read(codec, nid, 0,
858 AC_VERB_GET_COEF_INDEX, 0);
859 snd_iprintf(buffer, " Coefficient Index: 0x%02x\n", coeff);
860}
861#else
862#define print_realtek_coef NULL
863#endif
864
865/* 844/*
866 * set up from the preset table 845 * set up from the preset table
867 */ 846 */
@@ -5078,7 +5057,6 @@ static int patch_alc880(struct hda_codec *codec)
5078 if (!spec->loopback.amplist) 5057 if (!spec->loopback.amplist)
5079 spec->loopback.amplist = alc880_loopbacks; 5058 spec->loopback.amplist = alc880_loopbacks;
5080#endif 5059#endif
5081 codec->proc_widget_hook = print_realtek_coef;
5082 5060
5083 return 0; 5061 return 0;
5084} 5062}
@@ -6688,7 +6666,6 @@ static int patch_alc260(struct hda_codec *codec)
6688 if (!spec->loopback.amplist) 6666 if (!spec->loopback.amplist)
6689 spec->loopback.amplist = alc260_loopbacks; 6667 spec->loopback.amplist = alc260_loopbacks;
6690#endif 6668#endif
6691 codec->proc_widget_hook = print_realtek_coef;
6692 6669
6693 return 0; 6670 return 0;
6694} 6671}
@@ -10306,7 +10283,6 @@ static int patch_alc882(struct hda_codec *codec)
10306 if (!spec->loopback.amplist) 10283 if (!spec->loopback.amplist)
10307 spec->loopback.amplist = alc882_loopbacks; 10284 spec->loopback.amplist = alc882_loopbacks;
10308#endif 10285#endif
10309 codec->proc_widget_hook = print_realtek_coef;
10310 10286
10311 return 0; 10287 return 0;
10312} 10288}
@@ -12170,7 +12146,6 @@ static int patch_alc262(struct hda_codec *codec)
12170 if (!spec->loopback.amplist) 12146 if (!spec->loopback.amplist)
12171 spec->loopback.amplist = alc262_loopbacks; 12147 spec->loopback.amplist = alc262_loopbacks;
12172#endif 12148#endif
12173 codec->proc_widget_hook = print_realtek_coef;
12174 12149
12175 return 0; 12150 return 0;
12176} 12151}
@@ -13237,8 +13212,6 @@ static int patch_alc268(struct hda_codec *codec)
13237 if (board_config == ALC268_AUTO) 13212 if (board_config == ALC268_AUTO)
13238 spec->init_hook = alc268_auto_init; 13213 spec->init_hook = alc268_auto_init;
13239 13214
13240 codec->proc_widget_hook = print_realtek_coef;
13241
13242 return 0; 13215 return 0;
13243} 13216}
13244 13217
@@ -13955,7 +13928,6 @@ static int patch_alc269(struct hda_codec *codec)
13955 if (!spec->loopback.amplist) 13928 if (!spec->loopback.amplist)
13956 spec->loopback.amplist = alc269_loopbacks; 13929 spec->loopback.amplist = alc269_loopbacks;
13957#endif 13930#endif
13958 codec->proc_widget_hook = print_realtek_coef;
13959 13931
13960 return 0; 13932 return 0;
13961} 13933}
@@ -15083,7 +15055,6 @@ static int patch_alc861(struct hda_codec *codec)
15083 if (!spec->loopback.amplist) 15055 if (!spec->loopback.amplist)
15084 spec->loopback.amplist = alc861_loopbacks; 15056 spec->loopback.amplist = alc861_loopbacks;
15085#endif 15057#endif
15086 codec->proc_widget_hook = print_realtek_coef;
15087 15058
15088 return 0; 15059 return 0;
15089} 15060}
@@ -16063,7 +16034,6 @@ static int patch_alc861vd(struct hda_codec *codec)
16063 if (!spec->loopback.amplist) 16034 if (!spec->loopback.amplist)
16064 spec->loopback.amplist = alc861vd_loopbacks; 16035 spec->loopback.amplist = alc861vd_loopbacks;
16065#endif 16036#endif
16066 codec->proc_widget_hook = print_realtek_coef;
16067 16037
16068 return 0; 16038 return 0;
16069} 16039}
@@ -18198,7 +18168,6 @@ static int patch_alc662(struct hda_codec *codec)
18198 if (!spec->loopback.amplist) 18168 if (!spec->loopback.amplist)
18199 spec->loopback.amplist = alc662_loopbacks; 18169 spec->loopback.amplist = alc662_loopbacks;
18200#endif 18170#endif
18201 codec->proc_widget_hook = print_realtek_coef;
18202 18171
18203 return 0; 18172 return 0;
18204} 18173}