socsvn commit: r304169 - soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve

iateaca at FreeBSD.org iateaca at FreeBSD.org
Sun May 29 18:51:58 UTC 2016


Author: iateaca
Date: Sun May 29 18:51:57 2016
New Revision: 304169
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=304169

Log:
  use get_reg_by_offset instead of sc->regs
  
  M    bhyve/pci_hda.c

Modified:
  soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c

Modified: soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c
==============================================================================
--- soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c	Sun May 29 18:40:19 2016	(r304168)
+++ soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c	Sun May 29 18:51:57 2016	(r304169)
@@ -527,7 +527,7 @@
 static void
 hda_set_gctl(struct hda_softc *sc, uint32_t offset, uint32_t old)
 {
-	uint32_t value = sc->regs[offset];
+	uint32_t value = hda_get_reg_by_offset(sc, offset);
 
 	if (!(value & HDAC_GCTL_CRST)) {
 		hda_reset(sc);
@@ -547,7 +547,7 @@
 static void
 hda_set_corbctl(struct hda_softc *sc, uint32_t offset, uint32_t old)
 {
-	uint32_t value = sc->regs[offset];
+	uint32_t value = hda_get_reg_by_offset(sc, offset);
 	int err;
 	struct hda_codec_cmd_ctl *corb = NULL;
 
@@ -565,7 +565,7 @@
 static void
 hda_set_rirbctl(struct hda_softc *sc, uint32_t offset, uint32_t old)
 {
-	uint32_t value = sc->regs[offset];
+	uint32_t value = hda_get_reg_by_offset(sc, offset);
 	int err;
 	struct hda_codec_cmd_ctl *rirb = NULL;
 


More information about the svn-soc-all mailing list