Commit cd7643bf authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA: hda-intel - fix function_id rework (add missing bitmask)

Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 9e216e8a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment