ALSA: hda - introduce snd_hda_codec_update_cache()
authorTakashi Iwai <tiwai@suse.de>
Tue, 30 Mar 2010 16:03:44 +0000 (18:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Mar 2010 16:03:44 +0000 (18:03 +0200)
commita68d5a5419d2a15161488b20f740115068e7b666
tree75249110bd358f068835ad87d1f47f99f4962038
parentad35879aa192e783db2d41c196f48f3fc059ce22
ALSA: hda - introduce snd_hda_codec_update_cache()

Add a new helper, snd_hda_codec_update_cache(), for reducing the unneeded
verbs.  This function checks the cached value and skips if it's identical
with the given one.  Otherwise it works like snd_hda_codec_write_cache().

The alc269 code uses this function as an example.

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