ALSA: hda - Combine snd_hda_codec_flush_*_cache() to a single function

Since both snd_hda_codec_flush_amp_cache() and
snd_hda_codec_flush_cmd_cache() are called usually at the same time,
we can simply combine them to a single function,
snd_hda_codec_flush_cache().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai
2013-01-22 15:24:30 +01:00
parent a836dbf685
commit dc870f38e9
5 changed files with 16 additions and 13 deletions

View File

@@ -621,7 +621,7 @@ static void alc_inv_dmic_sync_adc(struct hda_codec *codec, int adc_idx)
(dir == HDA_OUTPUT ? AC_AMP_SET_OUTPUT : AC_AMP_SET_INPUT);
/* flush all cached amps at first */
snd_hda_codec_flush_amp_cache(codec);
snd_hda_codec_flush_cache(codec);
/* we care only right channel */
val = snd_hda_codec_amp_read(codec, nid, 1, dir, 0);