aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve/hda_codec.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-10-23 14:43:06 +0000
committerMark Johnston <markj@FreeBSD.org>2022-10-23 15:11:33 +0000
commit489392feb7dd784b6036dd6511c690e4df9726e3 (patch)
treebe1b958113fc8b62adc51e9d117da42e8ff312ff /usr.sbin/bhyve/hda_codec.c
parent84633b9d5244c5bd0438d2969e021ec01066b107 (diff)
downloadsrc-489392feb7dd784b6036dd6511c690e4df9726e3.tar.gz
src-489392feb7dd784b6036dd6511c690e4df9726e3.zip
Diffstat (limited to 'usr.sbin/bhyve/hda_codec.c')
-rw-r--r--usr.sbin/bhyve/hda_codec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bhyve/hda_codec.c b/usr.sbin/bhyve/hda_codec.c
index 2cc875d3d2e2..cfab2e7f2547 100644
--- a/usr.sbin/bhyve/hda_codec.c
+++ b/usr.sbin/bhyve/hda_codec.c
@@ -465,7 +465,7 @@ hda_codec_init(struct hda_codec_inst *hci, const char *play,
static int
hda_codec_reset(struct hda_codec_inst *hci)
{
- struct hda_ops *hops = NULL;
+ const struct hda_ops *hops = NULL;
struct hda_codec_softc *sc = NULL;
struct hda_codec_stream *st = NULL;
int i;
@@ -500,8 +500,8 @@ hda_codec_reset(struct hda_codec_inst *hci)
static int
hda_codec_command(struct hda_codec_inst *hci, uint32_t cmd_data)
{
+ const struct hda_ops *hops = NULL;
struct hda_codec_softc *sc = NULL;
- struct hda_ops *hops = NULL;
uint8_t cad = 0, nid = 0;
uint16_t verb = 0, payload = 0;
uint32_t res = 0;
@@ -677,9 +677,9 @@ hda_codec_audio_output_nid(struct hda_codec_softc *sc, uint16_t verb,
static void
hda_codec_audio_output_do_transfer(void *arg)
{
+ const struct hda_ops *hops = NULL;
struct hda_codec_softc *sc = (struct hda_codec_softc *)arg;
struct hda_codec_inst *hci = NULL;
- struct hda_ops *hops = NULL;
struct hda_codec_stream *st = NULL;
struct audio *aud = NULL;
int err;
@@ -738,9 +738,9 @@ hda_codec_audio_input_nid(struct hda_codec_softc *sc, uint16_t verb,
static void
hda_codec_audio_input_do_transfer(void *arg)
{
+ const struct hda_ops *hops = NULL;
struct hda_codec_softc *sc = (struct hda_codec_softc *)arg;
struct hda_codec_inst *hci = NULL;
- struct hda_ops *hops = NULL;
struct hda_codec_stream *st = NULL;
struct audio *aud = NULL;
int err;