Buddy: Switch to PC AT Beep driver

This board has a simple beeper instead of internal speaker.

BUG=None
TEST=Compiled
Signed-off-by: Ted Kuo <tedkuo@ami.com.tw>

Change-Id: Icdc448189fb68c0b70841a16eaab7d0157af3a01
Reviewed-on: https://chromium-review.googlesource.com/292030
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Ted Kuo <tedkuo@ami.com.tw>
Tested-by: Ted Kuo <tedkuo@ami.com.tw>
diff --git a/board/buddy/defconfig b/board/buddy/defconfig
index ee088aa..d3d122f 100644
--- a/board/buddy/defconfig
+++ b/board/buddy/defconfig
@@ -29,5 +29,5 @@
 CONFIG_DRIVER_INPUT_PS2=y
 CONFIG_DRIVER_INPUT_USB=y
 CONFIG_DRIVER_POWER_PCH=y
-CONFIG_DRIVER_SOUND_HDA=y
+CONFIG_DRIVER_SOUND_PCAT_BEEP=y
 CONFIG_DRIVER_TPM_LPC=y
diff --git a/src/board/buddy/board.c b/src/board/buddy/board.c
index 053cc72..f743d99 100644
--- a/src/board/buddy/board.c
+++ b/src/board/buddy/board.c
@@ -30,7 +30,7 @@
 #include "drivers/gpio/lynxpoint_lp.h"
 #include "drivers/gpio/sysinfo.h"
 #include "drivers/power/pch.h"
-#include "drivers/sound/hda_codec.h"
+#include "drivers/sound/pcat_beep.h"
 #include "drivers/sound/sound.h"
 #include "drivers/storage/ahci.h"
 #include "drivers/storage/blockdev.h"
@@ -55,11 +55,7 @@
 
 	flash_set_ops(&new_mem_mapped_flash(0xff800000, 0x800000)->ops);
 
-	HdaCodec *codec = new_hda_codec();
-	sound_set_ops(&codec->ops);
-
-	// The realtek codec doesn't report its beep_nid (NID 1)
-	set_hda_beep_nid_override(codec, 1);
+	sound_set_ops(&new_pcat_beep()->ops);
 
 	AhciCtrlr *ahci = new_ahci_ctrlr(PCI_DEV(0, 31, 2));
 	list_insert_after(&ahci->ctrlr.list_node, &fixed_block_dev_controllers);