提交 6fc398cb 编写于 作者: T Takashi Iwai

ALSA: hda - Apply mario fixup only once

The amp-override is necessary only once at initialization time.
Also fixed a coding style issue.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 74dc8909
...@@ -19366,7 +19366,10 @@ static void alc662_auto_init(struct hda_codec *codec) ...@@ -19366,7 +19366,10 @@ static void alc662_auto_init(struct hda_codec *codec)
} }
static void alc272_fixup_mario(struct hda_codec *codec, static void alc272_fixup_mario(struct hda_codec *codec,
const struct alc_fixup *fix, int pre_init) { const struct alc_fixup *fix, int pre_init)
{
if (!pre_init)
return;
if (snd_hda_override_amp_caps(codec, 0x2, HDA_OUTPUT, if (snd_hda_override_amp_caps(codec, 0x2, HDA_OUTPUT,
(0x3b << AC_AMPCAP_OFFSET_SHIFT) | (0x3b << AC_AMPCAP_OFFSET_SHIFT) |
(0x3b << AC_AMPCAP_NUM_STEPS_SHIFT) | (0x3b << AC_AMPCAP_NUM_STEPS_SHIFT) |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册