aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-04-21 01:41:12 -0400
committerTakashi Iwai <tiwai@suse.de>2009-04-21 01:41:12 -0400
commit858940773ad5f9dfe32ddb34fa1c90638c5a39df (patch)
tree5f1ee58fd98d798dcbedb98507f2a1cf5ee7a9b2 /sound/pci/hda/hda_codec.c
parent7670dc41b51983b369f9adfb8694a580e7b0cef2 (diff)
parent622e84cdff719b9dcd3f495ddb0afb54995799cc (diff)
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 48f0cea7df14..66a7d3de9fa0 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -643,19 +643,21 @@ static int get_codec_name(struct hda_codec *codec)
643 */ 643 */
644static void /*__devinit*/ setup_fg_nodes(struct hda_codec *codec) 644static void /*__devinit*/ setup_fg_nodes(struct hda_codec *codec)
645{ 645{
646 int i, total_nodes; 646 int i, total_nodes, function_id;
647 hda_nid_t nid; 647 hda_nid_t nid;
648 648
649 total_nodes = snd_hda_get_sub_nodes(codec, AC_NODE_ROOT, &nid); 649 total_nodes = snd_hda_get_sub_nodes(codec, AC_NODE_ROOT, &nid);
650 for (i = 0; i < total_nodes; i++, nid++) { 650 for (i = 0; i < total_nodes; i++, nid++) {
651 codec->function_id = snd_hda_param_read(codec, nid, 651 function_id = snd_hda_param_read(codec, nid,
652 AC_PAR_FUNCTION_TYPE) & 0xff; 652 AC_PAR_FUNCTION_TYPE) & 0xff;
653 switch (codec->function_id) { 653 switch (function_id) {
654 case AC_GRP_AUDIO_FUNCTION: 654 case AC_GRP_AUDIO_FUNCTION:
655 codec->afg = nid; 655 codec->afg = nid;
656 codec->function_id = function_id;
656 break; 657 break;
657 case AC_GRP_MODEM_FUNCTION: 658 case AC_GRP_MODEM_FUNCTION:
658 codec->mfg = nid; 659 codec->mfg = nid;
660 codec->function_id = function_id;
659 break; 661 break;
660 default: 662 default:
661 break; 663 break;