diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-07-19 17:42:09 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-07-19 17:42:09 +0200 |
commit | 8d011cc7a9374db9b5ace3b75d34f10fdc3b51c4 (patch) | |
tree | 6561bac3271ad8e46ed214bc92db362e1c56316a /sound/pci/hda/hda_codec.c | |
parent | e2768c0c223d86a20ec392528bafd25996ce7585 (diff) | |
parent | 9e216e8a40428cbf689222148c28d0256fbd0186 (diff) | |
download | kernel_replicant_linux-8d011cc7a9374db9b5ace3b75d34f10fdc3b51c4.tar.gz kernel_replicant_linux-8d011cc7a9374db9b5ace3b75d34f10fdc3b51c4.tar.bz2 kernel_replicant_linux-8d011cc7a9374db9b5ace3b75d34f10fdc3b51c4.zip |
Merge branch 'devel' of git.alsa-project.org:alsa-kernel into topic/misc
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index a3d638c8c1fd..6e0de65f1f3a 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -730,15 +730,17 @@ static void /*__devinit*/ setup_fg_nodes(struct hda_codec *codec) total_nodes = snd_hda_get_sub_nodes(codec, AC_NODE_ROOT, &nid); for (i = 0; i < total_nodes; i++, nid++) { function_id = snd_hda_param_read(codec, nid, - AC_PAR_FUNCTION_TYPE) & 0xff; + AC_PAR_FUNCTION_TYPE); switch (function_id) { case AC_GRP_AUDIO_FUNCTION: codec->afg = nid; - codec->function_id = function_id; + codec->afg_function_id = function_id & 0xff; + codec->afg_unsol = (function_id >> 8) & 1; break; case AC_GRP_MODEM_FUNCTION: codec->mfg = nid; - codec->function_id = function_id; + codec->mfg_function_id = function_id & 0xff; + codec->mfg_unsol = (function_id >> 8) & 1; break; default: break; |