These functions are supposed to be called at finishing the cached
sequential writes, so clear the flag properly for lazy developers who
often forget details.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
        int i;
 
        mutex_lock(&codec->hash_mutex);
+       codec->cached_write = 0;
        for (i = 0; i < codec->amp_cache.buf.used; i++) {
                struct hda_amp_info *buffer;
                u32 key;
        int i;
 
        mutex_lock(&codec->hash_mutex);
+       codec->cached_write = 0;
        for (i = 0; i < codec->cmd_cache.buf.used; i++) {
                struct hda_cache_head *buffer;
                u32 key;