]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - Add snd_hda_codec_flush_*_cache() aliases
authorTakashi Iwai <tiwai@suse.de>
Thu, 20 Dec 2012 10:41:54 +0000 (11:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:33:59 +0000 (08:33 +0100)
It makes easier to understand although these are identical with
snd_hda_codec_resume_*() functions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_local.h
sound/pci/hda/patch_realtek.c

index a1cb28ff39681f81fbf7eb5a3e8d7cc9238f5fba..2d9a51cb4a8e86b45c574cf5780c5fb46018b5bd 100644 (file)
@@ -970,6 +970,10 @@ int snd_hda_codec_update_cache(struct hda_codec *codec, hda_nid_t nid,
                              int direct, unsigned int verb, unsigned int parm);
 void snd_hda_codec_resume_cache(struct hda_codec *codec);
 
+/* it's alias but a bit clearer meaning */
+#define snd_hda_codec_flush_cmd_cache(codec) \
+       snd_hda_codec_resume_cache(codec)
+
 /* the struct for codec->pin_configs */
 struct hda_pincfg {
        hda_nid_t nid;
index de12dcc5accc051ea8ce7c6f32aab49326b2320c..fec0e2d72894235fc93de0703aaa13780be79d77 100644 (file)
@@ -139,6 +139,10 @@ int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid,
                                  int dir, int idx, int mask, int val);
 void snd_hda_codec_resume_amp(struct hda_codec *codec);
 
+/* it's alias but a bit clearer meaning */
+#define snd_hda_codec_flush_amp_cache(codec) \
+       snd_hda_codec_resume_amp(codec)
+
 void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir,
                             unsigned int *tlv);
 struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec,
index caf6fa5e6a70b02122bba83fe3b60c18861905c8..a6547570c854fa086271eb13cdf257e81325dee9 100644 (file)
@@ -634,7 +634,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_resume_amp(codec);
+       snd_hda_codec_flush_amp_cache(codec);
 
        /* we care only right channel */
        val = snd_hda_codec_amp_read(codec, nid, 1, dir, 0);