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.c | |
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.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index e6cdad713734..77ddd34fffed 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -3637,6 +3637,17 @@ void snd_hda_sequence_write_cache(struct hda_codec *codec, | |||
3637 | } | 3637 | } |
3638 | EXPORT_SYMBOL_HDA(snd_hda_sequence_write_cache); | 3638 | EXPORT_SYMBOL_HDA(snd_hda_sequence_write_cache); |
3639 | 3639 | ||
3640 | /** | ||
3641 | * snd_hda_codec_flush_cache - Execute all pending (cached) amps / verbs | ||
3642 | * @codec: HD-audio codec | ||
3643 | */ | ||
3644 | void snd_hda_codec_flush_cache(struct hda_codec *codec) | ||
3645 | { | ||
3646 | snd_hda_codec_resume_amp(codec); | ||
3647 | snd_hda_codec_resume_cache(codec); | ||
3648 | } | ||
3649 | EXPORT_SYMBOL_HDA(snd_hda_codec_flush_cache); | ||
3650 | |||
3640 | void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg, | 3651 | void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg, |
3641 | unsigned int power_state, | 3652 | unsigned int power_state, |
3642 | bool eapd_workaround) | 3653 | bool eapd_workaround) |