Explorar o código

Merge branch 'devel' of git.alsa-project.org:alsa-kernel into topic/misc

Takashi Iwai %!s(int64=15) %!d(string=hai) anos
pai
achega
7899f81fe4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sound/pci/hda/hda_codec.c

+ 1 - 1
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;