aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-04-15 17:52:32 +0200
committerTakashi Iwai <tiwai@suse.de>2009-04-15 17:52:32 +0200
commit9dd175f7d2db1826c891855d3d150da3a5792e94 (patch)
treec5b843acc595c15a31528a7ec1e2ea402c427bc8 /sound
parentMerge branch 'topic/memdup_user' into for-linus (diff)
parentALSA: hda - Fix the cmd cache keys for amp verbs (diff)
downloadlinux-dev-9dd175f7d2db1826c891855d3d150da3a5792e94.tar.xz
linux-dev-9dd175f7d2db1826c891855d3d150da3a5792e94.zip
Merge branch 'topic/hda' into for-linus
* topic/hda: ALSA: hda - Fix the cmd cache keys for amp verbs ALSA: add missing definitions(letters) to HD-Audio.txt
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_codec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index a4e5e5952115..fd6e6f337d10 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -2250,7 +2250,11 @@ int snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid,
err = bus->ops.command(bus, res);
if (!err) {
struct hda_cache_head *c;
- u32 key = build_cmd_cache_key(nid, verb);
+ u32 key;
+ /* parm may contain the verb stuff for get/set amp */
+ verb = verb | (parm >> 8);
+ parm &= 0xff;
+ key = build_cmd_cache_key(nid, verb);
c = get_alloc_hash(&codec->cmd_cache, key);
if (c)
c->val = parm;