svn commit: r360358 - head/sys/dev/sound/pci/hda
Ed Maste
emaste at FreeBSD.org
Sun Apr 26 22:08:48 UTC 2020
Author: emaste
Date: Sun Apr 26 22:08:47 2020
New Revision: 360358
URL: https://svnweb.freebsd.org/changeset/base/360358
Log:
snd_hda: use bool for hdac_reset's boolean wakeup param
Modified:
head/sys/dev/sound/pci/hda/hdac.c
Modified: head/sys/dev/sound/pci/hda/hdac.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdac.c Sun Apr 26 22:04:43 2020 (r360357)
+++ head/sys/dev/sound/pci/hda/hdac.c Sun Apr 26 22:08:47 2020 (r360358)
@@ -204,7 +204,7 @@ static const struct {
* Function prototypes
****************************************************************************/
static void hdac_intr_handler(void *);
-static int hdac_reset(struct hdac_softc *, int);
+static int hdac_reset(struct hdac_softc *, bool);
static int hdac_get_capabilities(struct hdac_softc *);
static void hdac_dma_cb(void *, bus_dma_segment_t *, int, int);
static int hdac_dma_alloc(struct hdac_softc *,
@@ -364,12 +364,12 @@ hdac_poll_callback(void *arg)
}
/****************************************************************************
- * int hdac_reset(hdac_softc *, int)
+ * int hdac_reset(hdac_softc *, bool)
*
* Reset the hdac to a quiescent and known state.
****************************************************************************/
static int
-hdac_reset(struct hdac_softc *sc, int wakeup)
+hdac_reset(struct hdac_softc *sc, bool wakeup)
{
uint32_t gctl;
int count, i;
@@ -1286,7 +1286,7 @@ hdac_attach(device_t dev)
HDA_BOOTHVERBOSE(
device_printf(dev, "Reset controller...\n");
);
- hdac_reset(sc, 1);
+ hdac_reset(sc, true);
/* Initialize the CORB and RIRB */
hdac_corb_init(sc);
@@ -1573,7 +1573,7 @@ hdac_suspend(device_t dev)
device_printf(dev, "Reset controller...\n");
);
callout_stop(&sc->poll_callout);
- hdac_reset(sc, 0);
+ hdac_reset(sc, false);
hdac_unlock(sc);
callout_drain(&sc->poll_callout);
taskqueue_drain(taskqueue_thread, &sc->unsolq_task);
@@ -1603,7 +1603,7 @@ hdac_resume(device_t dev)
HDA_BOOTHVERBOSE(
device_printf(dev, "Reset controller...\n");
);
- hdac_reset(sc, 1);
+ hdac_reset(sc, true);
/* Initialize the CORB and RIRB */
hdac_corb_init(sc);
@@ -1659,7 +1659,7 @@ hdac_detach(device_t dev)
free(devlist, M_TEMP);
hdac_lock(sc);
- hdac_reset(sc, 0);
+ hdac_reset(sc, false);
hdac_unlock(sc);
taskqueue_drain(taskqueue_thread, &sc->unsolq_task);
hdac_irq_free(sc);
More information about the svn-src-all
mailing list