diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-01-22 09:24:30 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-22 09:25:25 -0500 |
commit | dc870f38e9faf7dd89355aae2252126688a1a372 (patch) | |
tree | df231e38831d3f38ddeba4148934a7b0c047614a /sound/pci/hda/hda_codec.h | |
parent | a836dbf685fa58c7db6cd56ad4559b2e6c02c8d9 (diff) |
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>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 61085b311059..cc73287341de 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -974,10 +974,8 @@ void snd_hda_sequence_write_cache(struct hda_codec *codec, | |||
974 | int snd_hda_codec_update_cache(struct hda_codec *codec, hda_nid_t nid, | 974 | int snd_hda_codec_update_cache(struct hda_codec *codec, hda_nid_t nid, |
975 | int direct, unsigned int verb, unsigned int parm); | 975 | int direct, unsigned int verb, unsigned int parm); |
976 | void snd_hda_codec_resume_cache(struct hda_codec *codec); | 976 | void snd_hda_codec_resume_cache(struct hda_codec *codec); |
977 | 977 | /* both for cmd & amp caches */ | |
978 | /* it's alias but a bit clearer meaning */ | 978 | void snd_hda_codec_flush_cache(struct hda_codec *codec); |
979 | #define snd_hda_codec_flush_cmd_cache(codec) \ | ||
980 | snd_hda_codec_resume_cache(codec) | ||
981 | 979 | ||
982 | /* the struct for codec->pin_configs */ | 980 | /* the struct for codec->pin_configs */ |
983 | struct hda_pincfg { | 981 | struct hda_pincfg { |