9 Jul
2022
9 Jul
'22
6:46 p.m.
On Wed, 06 Jul 2022 14:02:30 +0200, Cezary Rojewski wrote:
snd_hda_gen_init() does that for every codec already.
Definitely not.
snd_hda_gen_init() calls init_hook of snd_hda_gen_spec.
OTOH, what you're trying to kill the init_hook call of alc_spec. Both are in different layers and they don't share the same callback.
thanks,
Takashi
Signed-off-by: Cezary Rojewski cezary.rojewski@intel.com
sound/pci/hda/patch_realtek.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index f3ad454b3fbf..a8688025352d 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -923,9 +923,6 @@ static int alc_init(struct hda_codec *codec) if (is_s4_resume(codec)) alc_pre_init(codec);
- if (spec->init_hook)
spec->init_hook(codec);
- spec->gen.skip_verbs = 1; /* applied in below */ snd_hda_gen_init(codec); alc_fix_pll(codec);
-- 2.25.1