Commit 95f475f7 authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 23d2df5b
...@@ -841,27 +841,6 @@ static void add_verb(struct alc_spec *spec, const struct hda_verb *verb) ...@@ -841,27 +841,6 @@ static void add_verb(struct alc_spec *spec, const struct hda_verb *verb)
spec->init_verbs[spec->num_init_verbs++] = verb; spec->init_verbs[spec->num_init_verbs++] = verb;
} }
#ifdef CONFIG_PROC_FS
/*
* hook for proc
*/
static void print_realtek_coef(struct snd_info_buffer *buffer,
struct hda_codec *codec, hda_nid_t nid)
{
int coeff;
if (nid != 0x20)
return;
coeff = snd_hda_codec_read(codec, nid, 0, AC_VERB_GET_PROC_COEF, 0);
snd_iprintf(buffer, " Processing Coefficient: 0x%02x\n", coeff);
coeff = snd_hda_codec_read(codec, nid, 0,
AC_VERB_GET_COEF_INDEX, 0);
snd_iprintf(buffer, " Coefficient Index: 0x%02x\n", coeff);
}
#else
#define print_realtek_coef NULL
#endif
/* /*
* set up from the preset table * set up from the preset table
*/ */
...@@ -5078,7 +5057,6 @@ static int patch_alc880(struct hda_codec *codec) ...@@ -5078,7 +5057,6 @@ static int patch_alc880(struct hda_codec *codec)
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc880_loopbacks; spec->loopback.amplist = alc880_loopbacks;
#endif #endif
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
...@@ -6688,7 +6666,6 @@ static int patch_alc260(struct hda_codec *codec) ...@@ -6688,7 +6666,6 @@ static int patch_alc260(struct hda_codec *codec)
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc260_loopbacks; spec->loopback.amplist = alc260_loopbacks;
#endif #endif
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
...@@ -10306,7 +10283,6 @@ static int patch_alc882(struct hda_codec *codec) ...@@ -10306,7 +10283,6 @@ static int patch_alc882(struct hda_codec *codec)
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc882_loopbacks; spec->loopback.amplist = alc882_loopbacks;
#endif #endif
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
...@@ -12170,7 +12146,6 @@ static int patch_alc262(struct hda_codec *codec) ...@@ -12170,7 +12146,6 @@ static int patch_alc262(struct hda_codec *codec)
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc262_loopbacks; spec->loopback.amplist = alc262_loopbacks;
#endif #endif
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
...@@ -13237,8 +13212,6 @@ static int patch_alc268(struct hda_codec *codec) ...@@ -13237,8 +13212,6 @@ static int patch_alc268(struct hda_codec *codec)
if (board_config == ALC268_AUTO) if (board_config == ALC268_AUTO)
spec->init_hook = alc268_auto_init; spec->init_hook = alc268_auto_init;
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
...@@ -13955,7 +13928,6 @@ static int patch_alc269(struct hda_codec *codec) ...@@ -13955,7 +13928,6 @@ static int patch_alc269(struct hda_codec *codec)
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc269_loopbacks; spec->loopback.amplist = alc269_loopbacks;
#endif #endif
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
...@@ -15083,7 +15055,6 @@ static int patch_alc861(struct hda_codec *codec) ...@@ -15083,7 +15055,6 @@ static int patch_alc861(struct hda_codec *codec)
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc861_loopbacks; spec->loopback.amplist = alc861_loopbacks;
#endif #endif
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
...@@ -16063,7 +16034,6 @@ static int patch_alc861vd(struct hda_codec *codec) ...@@ -16063,7 +16034,6 @@ static int patch_alc861vd(struct hda_codec *codec)
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc861vd_loopbacks; spec->loopback.amplist = alc861vd_loopbacks;
#endif #endif
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
...@@ -18198,7 +18168,6 @@ static int patch_alc662(struct hda_codec *codec) ...@@ -18198,7 +18168,6 @@ static int patch_alc662(struct hda_codec *codec)
if (!spec->loopback.amplist) if (!spec->loopback.amplist)
spec->loopback.amplist = alc662_loopbacks; spec->loopback.amplist = alc662_loopbacks;
#endif #endif
codec->proc_widget_hook = print_realtek_coef;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment