projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b910d9a
)
ALSA: hda - Fix broken hash chain allocation
author
Takashi Iwai
<tiwai@suse.de>
Thu, 6 Nov 2008 23:49:48 +0000
(
00:49
+0100)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 6 Nov 2008 23:51:36 +0000
(
00:51
+0100)
The chaining for amp hash got broken due to the rewrite with
snd_array. Fixed now.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_codec.c
b/sound/pci/hda/hda_codec.c
index 6f170b281e85dd90799602671863c65cfaafa447..06e99c785155a2d706c82e274bafb2d8a0da7a9d 100644
(file)
--- a/
sound/pci/hda/hda_codec.c
+++ b/
sound/pci/hda/hda_codec.c
@@
-901,6
+901,7
@@
static struct hda_cache_head *get_alloc_hash(struct hda_cache_rec *cache,
info = snd_array_new(&cache->buf);
if (!info)
return NULL;
+ cur = cache->buf.used - 1; /* the last entry */
info->key = key;
info->val = 0;
info->next = cache->hash[idx];