Skip to content

Commit

Permalink
ALSA: hda - Do sequential writes in snd_hda_gen_init()
Browse files Browse the repository at this point in the history
This would reduce the number of actually executed verbs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 47d46ab commit 3bbcd27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3540,6 +3540,8 @@ int snd_hda_gen_init(struct hda_codec *codec)

snd_hda_apply_verbs(codec);

codec->cached_write = 1;

init_multi_out(codec);
init_extra_out(codec);
init_multi_io(codec);
Expand All @@ -3552,6 +3554,9 @@ int snd_hda_gen_init(struct hda_codec *codec)
snd_hda_gen_line_automute(codec, NULL);
snd_hda_gen_mic_autoswitch(codec, NULL);

snd_hda_codec_flush_amp_cache(codec);
snd_hda_codec_flush_cmd_cache(codec);

if (spec->vmaster_mute.sw_kctl && spec->vmaster_mute.hook)
snd_hda_sync_vmaster_hook(&spec->vmaster_mute);

Expand Down

0 comments on commit 3bbcd27

Please sign in to comment.