ALSA: hda - Set patch_ops before calling auto-parser
... so that the parser code can overwrite some optional ops. For Realtek and others, it can be set solely in the spec allocator, so it results in a good code cleanup, too. With this change, we can finally remove the local stream_pm setup and rely on the generic parser's automatic setting. Signed-off-by: Takashi Iwai <tiwai@suse.de>
这个提交包含在:
@@ -205,8 +205,6 @@ static int ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp)
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
codec->patch_ops = ad198x_auto_patch_ops;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -223,6 +221,7 @@ static int alloc_ad_spec(struct hda_codec *codec)
|
||||
return -ENOMEM;
|
||||
codec->spec = spec;
|
||||
snd_hda_gen_spec_init(&spec->gen);
|
||||
codec->patch_ops = ad198x_auto_patch_ops;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户