diff options
author | Ed Maste <emaste@FreeBSD.org> | 2020-04-26 22:08:47 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2020-04-26 22:08:47 +0000 |
commit | 258ba4c0270a079231376169a1688fba23c07105 (patch) | |
tree | 6b7ad1406976af225608aab02c0c10b94c45499b /sys/dev/sound | |
parent | 4ee964d6b6919d003b19dbc549dafd0920530d59 (diff) | |
download | src-258ba4c0270a079231376169a1688fba23c07105.tar.gz src-258ba4c0270a079231376169a1688fba23c07105.zip |
snd_hda: use bool for hdac_reset's boolean wakeup param
Notes
Notes:
svn path=/head/; revision=360358
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pci/hda/hdac.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/sound/pci/hda/hdac.c b/sys/dev/sound/pci/hda/hdac.c index 077164b5c69b..5de5c020a583 100644 --- a/sys/dev/sound/pci/hda/hdac.c +++ b/sys/dev/sound/pci/hda/hdac.c @@ -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); |