Skip to content

Commit

Permalink
ALSA: hda - Apply mario fixup only once
Browse files Browse the repository at this point in the history
The amp-override is necessary only once at initialization time.
Also fixed a coding style issue.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jan 13, 2011
1 parent 74dc890 commit 6fc398c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -19366,7 +19366,10 @@ static void alc662_auto_init(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,
(0x3b << AC_AMPCAP_OFFSET_SHIFT) |
(0x3b << AC_AMPCAP_NUM_STEPS_SHIFT) |
Expand Down

0 comments on commit 6fc398c

Please sign in to comment.