summaryrefslogtreecommitdiff
path: root/src/southbridge/dmp
diff options
context:
space:
mode:
authorAndrew Wu <arw@dmp.com.tw>2013-08-13 16:37:56 +0800
committerAnton Kochkov <anton.kochkov@gmail.com>2013-08-13 14:10:45 +0200
commit81c70fb142326fe9e5ac5391cdd45f93c984e3e6 (patch)
treecd154782ce5caa992d87f8ff00f9de54182d570b /src/southbridge/dmp
parentb7bb70d3de1653275413f4b4e88bc01f9c570d48 (diff)
downloadcoreboot-81c70fb142326fe9e5ac5391cdd45f93c984e3e6.tar.xz
dmp/vortex86ex: Initialize Reatek ALC262 audio codec
Hook this up into the DMP Vortex86EX. Before under Windows XP the microphone did not work. With the new logic it does. Now line-in,line-out and microphone all work. The verb data table is generated by Realtek. Change-Id: I1bcef898a15547c86c12c4b52ce0069d13e23c84 Signed-off-by: Andrew Wu <arw@dmp.com.tw> Reviewed-on: http://review.coreboot.org/3855 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Diffstat (limited to 'src/southbridge/dmp')
-rw-r--r--src/southbridge/dmp/vortex86ex/Kconfig1
-rw-r--r--src/southbridge/dmp/vortex86ex/Makefile.inc1
-rw-r--r--src/southbridge/dmp/vortex86ex/audio.c29
3 files changed, 31 insertions, 0 deletions
diff --git a/src/southbridge/dmp/vortex86ex/Kconfig b/src/southbridge/dmp/vortex86ex/Kconfig
index e12477cbe8..1da75fa461 100644
--- a/src/southbridge/dmp/vortex86ex/Kconfig
+++ b/src/southbridge/dmp/vortex86ex/Kconfig
@@ -19,4 +19,5 @@
config SOUTHBRIDGE_DMP_VORTEX86EX
bool
+ select AZALIA_PLUGIN_SUPPORT
select HAVE_HARD_RESET
diff --git a/src/southbridge/dmp/vortex86ex/Makefile.inc b/src/southbridge/dmp/vortex86ex/Makefile.inc
index 6d2a921e93..5471faa6da 100644
--- a/src/southbridge/dmp/vortex86ex/Makefile.inc
+++ b/src/southbridge/dmp/vortex86ex/Makefile.inc
@@ -20,3 +20,4 @@
ramstage-y += southbridge.c
ramstage-y += hard_reset.c
ramstage-y += ide_sd_sata.c
+ramstage-y += audio.c
diff --git a/src/southbridge/dmp/vortex86ex/audio.c b/src/southbridge/dmp/vortex86ex/audio.c
new file mode 100644
index 0000000000..6ad9ba4bcc
--- /dev/null
+++ b/src/southbridge/dmp/vortex86ex/audio.c
@@ -0,0 +1,29 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2013 DMP Electronics Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <device/azalia_device.h>
+#include <device/pci.h>
+#include <device/pci_ids.h>
+
+/* RDC HD audio controller */
+static const struct pci_driver rdc_audio __pci_driver = {
+ .ops = &default_azalia_audio_ops,
+ .vendor = PCI_VENDOR_ID_RDC,
+ .device = 0x3010,
+};