summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2010-07-20 12:11:25 +0200
committerJaroslav Kysela <perex@perex.cz>2010-07-20 12:13:25 +0200
commitcd7643bfb772dc7103ed6fc8dda6b233a8e14178 (patch)
tree9480ca59d1332bc2bd3d6ca93c1c041bf6b6ea48
parent9e216e8a40428cbf689222148c28d0256fbd0186 (diff)
downloadop-kernel-dev-cd7643bfb772dc7103ed6fc8dda6b233a8e14178.zip
op-kernel-dev-cd7643bfb772dc7103ed6fc8dda6b233a8e14178.tar.gz
ALSA: hda-intel - fix function_id rework (add missing bitmask)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--sound/pci/hda/hda_codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 6e0de65..3252945 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -731,7 +731,7 @@ static void /*__devinit*/ setup_fg_nodes(struct hda_codec *codec)
for (i = 0; i < total_nodes; i++, nid++) {
function_id = snd_hda_param_read(codec, nid,
AC_PAR_FUNCTION_TYPE);
- switch (function_id) {
+ switch (function_id & 0xff) {
case AC_GRP_AUDIO_FUNCTION:
codec->afg = nid;
codec->afg_function_id = function_id & 0xff;
OpenPOWER on IntegriCloud