mb/prodrive/hermes: Set mb_hda_amp_enable based on cfg

Change-Id: I13c2ece729128fe245de88c0d36ce7b4bcaf6b6d
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50381
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/src/mainboard/prodrive/hermes/mainboard.c b/src/mainboard/prodrive/hermes/mainboard.c
index 822ed58..d9abb761 100644
--- a/src/mainboard/prodrive/hermes/mainboard.c
+++ b/src/mainboard/prodrive/hermes/mainboard.c
@@ -62,9 +62,16 @@
 	if (!board_cfg)
 		return;
 
+	/* Set Deep Sx */
 	config_t *config = config_of_soc();
 	config->deep_s5_enable_ac = board_cfg->deep_sx_enabled;
 	config->deep_s5_enable_dc = board_cfg->deep_sx_enabled;
+
+	/* Enable internal speaker amplifier */
+	if (board_cfg->internal_audio_connection == 2)
+		mb_hda_amp_enable(1);
+	else
+		mb_hda_amp_enable(0);
 }
 
 static void mainboard_final(struct device *dev)
@@ -122,7 +129,6 @@
 	mb_configure_dp2_pwr(1);
 	mb_configure_dp3_pwr(1);
 
-	mb_hda_amp_enable(1);
 	mb_usb31_rp1_pwr_enable(1);
 	mb_usb31_rp2_pwr_enable(1);
 	mb_usb31_fp_pwr_enable(1);