Date: Sun, 29 May 2016 18:51:57 GMT From: iateaca@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r304169 - soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve Message-ID: <201605291851.u4TIpvsw037929@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605291851.u4TIpvsw037929>