Index: /trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
===================================================================
--- /trunk/src/VBox/Devices/Audio/DevIchAc97.cpp	(revision 56511)
+++ /trunk/src/VBox/Devices/Audio/DevIchAc97.cpp	(revision 56512)
@@ -2076,16 +2076,16 @@
      * Validations.
      */
-    if (!CFGMR3AreValuesValid(pCfg, "Type\0"))
+    if (!CFGMR3AreValuesValid(pCfg, "Codec\0"))
         return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES,
                                 N_("Invalid configuration for the AC'97 device"));
 
     /*
-     * Determine the chip type.
+     * Determine the codec model.
      */
-    char szType[20];
-    int rc = CFGMR3QueryStringDef(pCfg, "Type", &szType[0], sizeof(szType), "STAC9700");
+    char szCodec[20];
+    int rc = CFGMR3QueryStringDef(pCfg, "Codec", &szCodec[0], sizeof(szCodec), "STAC9700");
     if (RT_FAILURE(rc))
         return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES,
-                                N_("AC'97 configuration error: Querying \"Type\" as string failed"));
+                                N_("AC'97 configuration error: Querying \"Codec\" as string failed"));
 
     /*
@@ -2095,13 +2095,13 @@
      */
     bool fChipAD1980 = false;
-    if (!strcmp(szType, "STAC9700"))
+    if (!strcmp(szCodec, "STAC9700"))
         fChipAD1980 = false;
-    else if (!strcmp(szType, "AD1980"))
+    else if (!strcmp(szCodec, "AD1980"))
         fChipAD1980 = true;
     else
     {
         return PDMDevHlpVMSetError(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, RT_SRC_POS,
-                                   N_("AC'97 configuration error: The \"Type\" value \"%s\" is unsupported"),
-                                   szType);
+                                   N_("AC'97 configuration error: The \"Codec\" value \"%s\" is unsupported"),
+                                   szCodec);
     }
 
Index: /trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp	(revision 56511)
+++ /trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp	(revision 56512)
@@ -2695,4 +2695,6 @@
             AudioControllerType_T audioController;
             hrc = audioAdapter->COMGETTER(AudioController)(&audioController);               H();
+            AudioCodecType_T audioCodec;
+            hrc = audioAdapter->COMGETTER(AudioCodec)(&audioCodec);                         H();
             switch (audioController)
             {
@@ -2705,4 +2707,13 @@
                     hrc = pBusMgr->assignPCIDevice("ichac97", pInst);                       H();
                     InsertConfigNode(pInst,    "Config", &pCfg);
+                    switch (audioCodec)
+                    {
+                        case AudioCodecType_STAC9700:
+                            InsertConfigString(pCfg,   "Codec", "STAC9700");
+                            break;
+                        case AudioCodecType_AD1980:
+                            InsertConfigString(pCfg,   "Codec", "AD1980");
+                            break;
+                    }
                     break;
                 }
