/* This file is autogenerated by tracetool, do not edit. */
/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef TRACE_AUDIO_GENERATED_TRACERS_H
#define TRACE_AUDIO_GENERATED_TRACERS_H

#include "trace/control.h"

extern TraceEvent _TRACE_ALSA_REVENTS_EVENT;
extern TraceEvent _TRACE_ALSA_POLLOUT_EVENT;
extern TraceEvent _TRACE_ALSA_SET_HANDLER_EVENT;
extern TraceEvent _TRACE_ALSA_WROTE_ZERO_EVENT;
extern TraceEvent _TRACE_ALSA_READ_ZERO_EVENT;
extern TraceEvent _TRACE_ALSA_XRUN_OUT_EVENT;
extern TraceEvent _TRACE_ALSA_XRUN_IN_EVENT;
extern TraceEvent _TRACE_ALSA_RESUME_OUT_EVENT;
extern TraceEvent _TRACE_ALSA_INFO_PARAMS_EVENT;
extern TraceEvent _TRACE_ALSA_INFO_SAMPLES_EVENT;
extern TraceEvent _TRACE_ALSA_FINI_OUT_EVENT;
extern TraceEvent _TRACE_ALSA_ENABLE_OUT_EVENT;
extern TraceEvent _TRACE_ALSA_ENABLE_IN_EVENT;
extern TraceEvent _TRACE_OSS_VERSION_EVENT;
extern TraceEvent _TRACE_OSS_OUT_PARAMS_EVENT;
extern TraceEvent _TRACE_OSS_IN_PARAMS_EVENT;
extern TraceEvent _TRACE_OSS_FINI_OUT_EVENT;
extern TraceEvent _TRACE_OSS_ENABLE_OUT_EVENT;
extern TraceEvent _TRACE_OSS_ENABLE_IN_EVENT;
extern TraceEvent _TRACE_DBUS_AUDIO_REGISTER_EVENT;
extern TraceEvent _TRACE_DBUS_AUDIO_PUT_BUFFER_OUT_EVENT;
extern TraceEvent _TRACE_DBUS_AUDIO_READ_EVENT;
extern TraceEvent _TRACE_DSOUND_CLEAR_SAMPLE_EVENT;
extern TraceEvent _TRACE_DSOUND_WAVE_FORMAT_EVENT;
extern TraceEvent _TRACE_DSOUND_BUFFER_BYTES_EVENT;
extern TraceEvent _TRACE_JACK_CLIENT_RECOVER_EVENT;
extern TraceEvent _TRACE_JACK_CONNECT_EVENT;
extern TraceEvent _TRACE_JACK_SERVER_STARTED_EVENT;
extern TraceEvent _TRACE_JACK_UNIQUE_NAME_EVENT;
extern TraceEvent _TRACE_JACK_OUT_INIT_EVENT;
extern TraceEvent _TRACE_JACK_IN_INIT_EVENT;
extern TraceEvent _TRACE_JACK_INFO_EVENT;
extern TraceEvent _TRACE_PW_STATE_CHANGED_EVENT;
extern TraceEvent _TRACE_PW_READ_EVENT;
extern TraceEvent _TRACE_PW_WRITE_EVENT;
extern TraceEvent _TRACE_PW_VOL_EVENT;
extern TraceEvent _TRACE_PW_PERIOD_EVENT;
extern TraceEvent _TRACE_PW_AUDIO_INIT_EVENT;
extern TraceEvent _TRACE_AUDIO_BE_SET_ACTIVE_IN_EVENT;
extern TraceEvent _TRACE_AUDIO_BE_SET_ACTIVE_OUT_EVENT;
extern TraceEvent _TRACE_AUDIO_TIMER_START_EVENT;
extern TraceEvent _TRACE_AUDIO_TIMER_STOP_EVENT;
extern TraceEvent _TRACE_AUDIO_TIMER_DELAYED_EVENT;
extern TraceEvent _TRACE_AUDIO_NOTIFY_CAPTURE_EVENT;
extern TraceEvent _TRACE_AUDIO_CAPTURE_ATTACH_EVENT;
extern TraceEvent _TRACE_AUDIO_GET_AVAIL_EVENT;
extern TraceEvent _TRACE_AUDIO_RUN_POLL_EVENT;
extern TraceEvent _TRACE_AUDIO_CAPTURE_FREE_SW_EVENT;
extern TraceEvent _TRACE_AUDIO_OUT_FULL_EVENT;
extern TraceEvent _TRACE_AUDIO_SW_WRITE_EVENT;
extern TraceEvent _TRACE_AUDIO_GET_FREE_EVENT;
extern TraceEvent _TRACE_AUDIO_OUT_DISABLE_EVENT;
extern TraceEvent _TRACE_AUDIO_OUT_PLAYED_EVENT;
extern TraceEvent _TRACE_AUDIO_RATE_RESET_EVENT;
extern TraceEvent _TRACE_AUDIO_OPEN_OUT_EVENT;
extern TraceEvent _TRACE_AUDIO_OPEN_IN_EVENT;
extern TraceEvent _TRACE_AUDIO_VOICE_PAIR_EVENT;
extern uint16_t _TRACE_ALSA_REVENTS_DSTATE;
extern uint16_t _TRACE_ALSA_POLLOUT_DSTATE;
extern uint16_t _TRACE_ALSA_SET_HANDLER_DSTATE;
extern uint16_t _TRACE_ALSA_WROTE_ZERO_DSTATE;
extern uint16_t _TRACE_ALSA_READ_ZERO_DSTATE;
extern uint16_t _TRACE_ALSA_XRUN_OUT_DSTATE;
extern uint16_t _TRACE_ALSA_XRUN_IN_DSTATE;
extern uint16_t _TRACE_ALSA_RESUME_OUT_DSTATE;
extern uint16_t _TRACE_ALSA_INFO_PARAMS_DSTATE;
extern uint16_t _TRACE_ALSA_INFO_SAMPLES_DSTATE;
extern uint16_t _TRACE_ALSA_FINI_OUT_DSTATE;
extern uint16_t _TRACE_ALSA_ENABLE_OUT_DSTATE;
extern uint16_t _TRACE_ALSA_ENABLE_IN_DSTATE;
extern uint16_t _TRACE_OSS_VERSION_DSTATE;
extern uint16_t _TRACE_OSS_OUT_PARAMS_DSTATE;
extern uint16_t _TRACE_OSS_IN_PARAMS_DSTATE;
extern uint16_t _TRACE_OSS_FINI_OUT_DSTATE;
extern uint16_t _TRACE_OSS_ENABLE_OUT_DSTATE;
extern uint16_t _TRACE_OSS_ENABLE_IN_DSTATE;
extern uint16_t _TRACE_DBUS_AUDIO_REGISTER_DSTATE;
extern uint16_t _TRACE_DBUS_AUDIO_PUT_BUFFER_OUT_DSTATE;
extern uint16_t _TRACE_DBUS_AUDIO_READ_DSTATE;
extern uint16_t _TRACE_DSOUND_CLEAR_SAMPLE_DSTATE;
extern uint16_t _TRACE_DSOUND_WAVE_FORMAT_DSTATE;
extern uint16_t _TRACE_DSOUND_BUFFER_BYTES_DSTATE;
extern uint16_t _TRACE_JACK_CLIENT_RECOVER_DSTATE;
extern uint16_t _TRACE_JACK_CONNECT_DSTATE;
extern uint16_t _TRACE_JACK_SERVER_STARTED_DSTATE;
extern uint16_t _TRACE_JACK_UNIQUE_NAME_DSTATE;
extern uint16_t _TRACE_JACK_OUT_INIT_DSTATE;
extern uint16_t _TRACE_JACK_IN_INIT_DSTATE;
extern uint16_t _TRACE_JACK_INFO_DSTATE;
extern uint16_t _TRACE_PW_STATE_CHANGED_DSTATE;
extern uint16_t _TRACE_PW_READ_DSTATE;
extern uint16_t _TRACE_PW_WRITE_DSTATE;
extern uint16_t _TRACE_PW_VOL_DSTATE;
extern uint16_t _TRACE_PW_PERIOD_DSTATE;
extern uint16_t _TRACE_PW_AUDIO_INIT_DSTATE;
extern uint16_t _TRACE_AUDIO_BE_SET_ACTIVE_IN_DSTATE;
extern uint16_t _TRACE_AUDIO_BE_SET_ACTIVE_OUT_DSTATE;
extern uint16_t _TRACE_AUDIO_TIMER_START_DSTATE;
extern uint16_t _TRACE_AUDIO_TIMER_STOP_DSTATE;
extern uint16_t _TRACE_AUDIO_TIMER_DELAYED_DSTATE;
extern uint16_t _TRACE_AUDIO_NOTIFY_CAPTURE_DSTATE;
extern uint16_t _TRACE_AUDIO_CAPTURE_ATTACH_DSTATE;
extern uint16_t _TRACE_AUDIO_GET_AVAIL_DSTATE;
extern uint16_t _TRACE_AUDIO_RUN_POLL_DSTATE;
extern uint16_t _TRACE_AUDIO_CAPTURE_FREE_SW_DSTATE;
extern uint16_t _TRACE_AUDIO_OUT_FULL_DSTATE;
extern uint16_t _TRACE_AUDIO_SW_WRITE_DSTATE;
extern uint16_t _TRACE_AUDIO_GET_FREE_DSTATE;
extern uint16_t _TRACE_AUDIO_OUT_DISABLE_DSTATE;
extern uint16_t _TRACE_AUDIO_OUT_PLAYED_DSTATE;
extern uint16_t _TRACE_AUDIO_RATE_RESET_DSTATE;
extern uint16_t _TRACE_AUDIO_OPEN_OUT_DSTATE;
extern uint16_t _TRACE_AUDIO_OPEN_IN_DSTATE;
extern uint16_t _TRACE_AUDIO_VOICE_PAIR_DSTATE;
#define TRACE_ALSA_REVENTS_ENABLED 1
#define TRACE_ALSA_POLLOUT_ENABLED 1
#define TRACE_ALSA_SET_HANDLER_ENABLED 1
#define TRACE_ALSA_WROTE_ZERO_ENABLED 1
#define TRACE_ALSA_READ_ZERO_ENABLED 1
#define TRACE_ALSA_XRUN_OUT_ENABLED 1
#define TRACE_ALSA_XRUN_IN_ENABLED 1
#define TRACE_ALSA_RESUME_OUT_ENABLED 1
#define TRACE_ALSA_INFO_PARAMS_ENABLED 1
#define TRACE_ALSA_INFO_SAMPLES_ENABLED 1
#define TRACE_ALSA_FINI_OUT_ENABLED 1
#define TRACE_ALSA_ENABLE_OUT_ENABLED 1
#define TRACE_ALSA_ENABLE_IN_ENABLED 1
#define TRACE_OSS_VERSION_ENABLED 1
#define TRACE_OSS_OUT_PARAMS_ENABLED 1
#define TRACE_OSS_IN_PARAMS_ENABLED 1
#define TRACE_OSS_FINI_OUT_ENABLED 1
#define TRACE_OSS_ENABLE_OUT_ENABLED 1
#define TRACE_OSS_ENABLE_IN_ENABLED 1
#define TRACE_DBUS_AUDIO_REGISTER_ENABLED 1
#define TRACE_DBUS_AUDIO_PUT_BUFFER_OUT_ENABLED 1
#define TRACE_DBUS_AUDIO_READ_ENABLED 1
#define TRACE_DSOUND_CLEAR_SAMPLE_ENABLED 1
#define TRACE_DSOUND_WAVE_FORMAT_ENABLED 1
#define TRACE_DSOUND_BUFFER_BYTES_ENABLED 1
#define TRACE_JACK_CLIENT_RECOVER_ENABLED 1
#define TRACE_JACK_CONNECT_ENABLED 1
#define TRACE_JACK_SERVER_STARTED_ENABLED 1
#define TRACE_JACK_UNIQUE_NAME_ENABLED 1
#define TRACE_JACK_OUT_INIT_ENABLED 1
#define TRACE_JACK_IN_INIT_ENABLED 1
#define TRACE_JACK_INFO_ENABLED 1
#define TRACE_PW_STATE_CHANGED_ENABLED 1
#define TRACE_PW_READ_ENABLED 1
#define TRACE_PW_WRITE_ENABLED 1
#define TRACE_PW_VOL_ENABLED 1
#define TRACE_PW_PERIOD_ENABLED 1
#define TRACE_PW_AUDIO_INIT_ENABLED 1
#define TRACE_AUDIO_BE_SET_ACTIVE_IN_ENABLED 1
#define TRACE_AUDIO_BE_SET_ACTIVE_OUT_ENABLED 1
#define TRACE_AUDIO_TIMER_START_ENABLED 1
#define TRACE_AUDIO_TIMER_STOP_ENABLED 1
#define TRACE_AUDIO_TIMER_DELAYED_ENABLED 1
#define TRACE_AUDIO_NOTIFY_CAPTURE_ENABLED 1
#define TRACE_AUDIO_CAPTURE_ATTACH_ENABLED 1
#define TRACE_AUDIO_GET_AVAIL_ENABLED 1
#define TRACE_AUDIO_RUN_POLL_ENABLED 1
#define TRACE_AUDIO_CAPTURE_FREE_SW_ENABLED 1
#define TRACE_AUDIO_OUT_FULL_ENABLED 1
#define TRACE_AUDIO_SW_WRITE_ENABLED 1
#define TRACE_AUDIO_GET_FREE_ENABLED 1
#define TRACE_AUDIO_OUT_DISABLE_ENABLED 1
#define TRACE_AUDIO_OUT_PLAYED_ENABLED 1
#define TRACE_AUDIO_RATE_RESET_ENABLED 1
#define TRACE_AUDIO_OPEN_OUT_ENABLED 1
#define TRACE_AUDIO_OPEN_IN_ENABLED 1
#define TRACE_AUDIO_VOICE_PAIR_ENABLED 1
#include "qemu/log-for-trace.h"


#define TRACE_ALSA_REVENTS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_REVENTS) || \
    false)

static inline void trace_alsa_revents(int revents)
{
    if (trace_event_get_state(TRACE_ALSA_REVENTS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 4 "../audio/trace-events"
            qemu_log("alsa_revents " "revents = %d" "\n", revents);
#line 194 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_POLLOUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_POLLOUT) || \
    false)

static inline void trace_alsa_pollout(int i, int fd)
{
    if (trace_event_get_state(TRACE_ALSA_POLLOUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 5 "../audio/trace-events"
            qemu_log("alsa_pollout " "i = %d fd = %d" "\n", i, fd);
#line 209 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_SET_HANDLER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_SET_HANDLER) || \
    false)

static inline void trace_alsa_set_handler(int events, int index, int fd, int err)
{
    if (trace_event_get_state(TRACE_ALSA_SET_HANDLER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 6 "../audio/trace-events"
            qemu_log("alsa_set_handler " "events=0x%x index=%d fd=%d err=%d" "\n", events, index, fd, err);
#line 224 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_WROTE_ZERO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_WROTE_ZERO) || \
    false)

static inline void trace_alsa_wrote_zero(int len)
{
    if (trace_event_get_state(TRACE_ALSA_WROTE_ZERO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 7 "../audio/trace-events"
            qemu_log("alsa_wrote_zero " "Failed to write %d frames (wrote zero)" "\n", len);
#line 239 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_READ_ZERO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_READ_ZERO) || \
    false)

static inline void trace_alsa_read_zero(long len)
{
    if (trace_event_get_state(TRACE_ALSA_READ_ZERO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 8 "../audio/trace-events"
            qemu_log("alsa_read_zero " "Failed to read %ld frames (read zero)" "\n", len);
#line 254 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_XRUN_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_XRUN_OUT) || \
    false)

static inline void trace_alsa_xrun_out(void)
{
    if (trace_event_get_state(TRACE_ALSA_XRUN_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 9 "../audio/trace-events"
            qemu_log("alsa_xrun_out " "Recovering from playback xrun" "\n");
#line 269 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_XRUN_IN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_XRUN_IN) || \
    false)

static inline void trace_alsa_xrun_in(void)
{
    if (trace_event_get_state(TRACE_ALSA_XRUN_IN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 10 "../audio/trace-events"
            qemu_log("alsa_xrun_in " "Recovering from capture xrun" "\n");
#line 284 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_RESUME_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_RESUME_OUT) || \
    false)

static inline void trace_alsa_resume_out(void)
{
    if (trace_event_get_state(TRACE_ALSA_RESUME_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 11 "../audio/trace-events"
            qemu_log("alsa_resume_out " "Resuming suspended output stream" "\n");
#line 299 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_INFO_PARAMS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_INFO_PARAMS) || \
    false)

static inline void trace_alsa_info_params(int req_fmt, int obt_fmt, int req_channels, int obt_channels, int req_freq, int obt_freq)
{
    if (trace_event_get_state(TRACE_ALSA_INFO_PARAMS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 12 "../audio/trace-events"
            qemu_log("alsa_info_params " "format %d->%d, channels %d->%d, frequency %d->%d" "\n", req_fmt, obt_fmt, req_channels, obt_channels, req_freq, obt_freq);
#line 314 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_INFO_SAMPLES_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_INFO_SAMPLES) || \
    false)

static inline void trace_alsa_info_samples(int buffer_length, int period_length, long samples)
{
    if (trace_event_get_state(TRACE_ALSA_INFO_SAMPLES)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 13 "../audio/trace-events"
            qemu_log("alsa_info_samples " "requested: buffer len %d, period len %d; obtained: %ld samples" "\n", buffer_length, period_length, samples);
#line 329 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_FINI_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_FINI_OUT) || \
    false)

static inline void trace_alsa_fini_out(void)
{
    if (trace_event_get_state(TRACE_ALSA_FINI_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 14 "../audio/trace-events"
            qemu_log("alsa_fini_out " "" "\n");
#line 344 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_ENABLE_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_ENABLE_OUT) || \
    false)

static inline void trace_alsa_enable_out(bool enable)
{
    if (trace_event_get_state(TRACE_ALSA_ENABLE_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 15 "../audio/trace-events"
            qemu_log("alsa_enable_out " "enable=%d" "\n", enable);
#line 359 "trace/trace-audio.h"
        }
    }
}

#define TRACE_ALSA_ENABLE_IN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_ALSA_ENABLE_IN) || \
    false)

static inline void trace_alsa_enable_in(bool enable)
{
    if (trace_event_get_state(TRACE_ALSA_ENABLE_IN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 16 "../audio/trace-events"
            qemu_log("alsa_enable_in " "enable=%d" "\n", enable);
#line 374 "trace/trace-audio.h"
        }
    }
}

#define TRACE_OSS_VERSION_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_OSS_VERSION) || \
    false)

static inline void trace_oss_version(int version)
{
    if (trace_event_get_state(TRACE_OSS_VERSION)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 19 "../audio/trace-events"
            qemu_log("oss_version " "OSS version = 0x%x" "\n", version);
#line 389 "trace/trace-audio.h"
        }
    }
}

#define TRACE_OSS_OUT_PARAMS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_OSS_OUT_PARAMS) || \
    false)

static inline void trace_oss_out_params(int req_fmt, int obt_fmt, int req_channels, int obt_channels, int req_freq, int obt_freq, int req_nfrags, int obt_nfrags, int req_fragsize, int obt_fragsize)
{
    if (trace_event_get_state(TRACE_OSS_OUT_PARAMS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 20 "../audio/trace-events"
            qemu_log("oss_out_params " "fmt=%d->%d, channels %d->%d, freq=%d->%d, nfrags=%d->%d, fragsize=%d->%d" "\n", req_fmt, obt_fmt, req_channels, obt_channels, req_freq, obt_freq, req_nfrags, obt_nfrags, req_fragsize, obt_fragsize);
#line 404 "trace/trace-audio.h"
        }
    }
}

#define TRACE_OSS_IN_PARAMS_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_OSS_IN_PARAMS) || \
    false)

static inline void trace_oss_in_params(int req_fmt, int obt_fmt, int req_channels, int obt_channels, int req_freq, int obt_freq, int req_nfrags, int obt_nfrags, int req_fragsize, int obt_fragsize)
{
    if (trace_event_get_state(TRACE_OSS_IN_PARAMS)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 21 "../audio/trace-events"
            qemu_log("oss_in_params " "fmt=%d->%d, channels %d->%d, freq=%d->%d, nfrags=%d->%d, fragsize=%d->%d" "\n", req_fmt, obt_fmt, req_channels, obt_channels, req_freq, obt_freq, req_nfrags, obt_nfrags, req_fragsize, obt_fragsize);
#line 419 "trace/trace-audio.h"
        }
    }
}

#define TRACE_OSS_FINI_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_OSS_FINI_OUT) || \
    false)

static inline void trace_oss_fini_out(void)
{
    if (trace_event_get_state(TRACE_OSS_FINI_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 22 "../audio/trace-events"
            qemu_log("oss_fini_out " "" "\n");
#line 434 "trace/trace-audio.h"
        }
    }
}

#define TRACE_OSS_ENABLE_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_OSS_ENABLE_OUT) || \
    false)

static inline void trace_oss_enable_out(bool enable)
{
    if (trace_event_get_state(TRACE_OSS_ENABLE_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 23 "../audio/trace-events"
            qemu_log("oss_enable_out " "enable=%d" "\n", enable);
#line 449 "trace/trace-audio.h"
        }
    }
}

#define TRACE_OSS_ENABLE_IN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_OSS_ENABLE_IN) || \
    false)

static inline void trace_oss_enable_in(bool enable)
{
    if (trace_event_get_state(TRACE_OSS_ENABLE_IN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 24 "../audio/trace-events"
            qemu_log("oss_enable_in " "enable=%d" "\n", enable);
#line 464 "trace/trace-audio.h"
        }
    }
}

#define TRACE_DBUS_AUDIO_REGISTER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_DBUS_AUDIO_REGISTER) || \
    false)

static inline void trace_dbus_audio_register(const char *s, const char *dir)
{
    if (trace_event_get_state(TRACE_DBUS_AUDIO_REGISTER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 27 "../audio/trace-events"
            qemu_log("dbus_audio_register " "sender = %s, dir = %s" "\n", s, dir);
#line 479 "trace/trace-audio.h"
        }
    }
}

#define TRACE_DBUS_AUDIO_PUT_BUFFER_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_DBUS_AUDIO_PUT_BUFFER_OUT) || \
    false)

static inline void trace_dbus_audio_put_buffer_out(size_t pos, size_t size)
{
    if (trace_event_get_state(TRACE_DBUS_AUDIO_PUT_BUFFER_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 28 "../audio/trace-events"
            qemu_log("dbus_audio_put_buffer_out " "buf_pos = %zu, buf_size = %zu" "\n", pos, size);
#line 494 "trace/trace-audio.h"
        }
    }
}

#define TRACE_DBUS_AUDIO_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_DBUS_AUDIO_READ) || \
    false)

static inline void trace_dbus_audio_read(size_t len)
{
    if (trace_event_get_state(TRACE_DBUS_AUDIO_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 29 "../audio/trace-events"
            qemu_log("dbus_audio_read " "len = %zu" "\n", len);
#line 509 "trace/trace-audio.h"
        }
    }
}

#define TRACE_DSOUND_CLEAR_SAMPLE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_DSOUND_CLEAR_SAMPLE) || \
    false)

static inline void trace_dsound_clear_sample(void *p1, uint32_t blen1, uint32_t len1, void *p2, uint32_t blen2, uint32_t len2)
{
    if (trace_event_get_state(TRACE_DSOUND_CLEAR_SAMPLE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 32 "../audio/trace-events"
            qemu_log("dsound_clear_sample " "p1=%p, blen1=%u, len1=%u, p2=%p, blen2=%u, len2=%u" "\n", p1, blen1, len1, p2, blen2, len2);
#line 524 "trace/trace-audio.h"
        }
    }
}

#define TRACE_DSOUND_WAVE_FORMAT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_DSOUND_WAVE_FORMAT) || \
    false)

static inline void trace_dsound_wave_format(uint16_t wFormatTag, uint16_t nChannels, uint32_t nSamplesPerSec, uint32_t nAvgBytesPerSec, uint16_t nBlockAlign, uint16_t wBitsPerSample, uint16_t cbSize)
{
    if (trace_event_get_state(TRACE_DSOUND_WAVE_FORMAT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 33 "../audio/trace-events"
            qemu_log("dsound_wave_format " "wFormatTag=%u, nChannels=%u, nSamplesPerSec=%u, nAvgBytesPerSec=%u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u" "\n", wFormatTag, nChannels, nSamplesPerSec, nAvgBytesPerSec, nBlockAlign, wBitsPerSample, cbSize);
#line 539 "trace/trace-audio.h"
        }
    }
}

#define TRACE_DSOUND_BUFFER_BYTES_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_DSOUND_BUFFER_BYTES) || \
    false)

static inline void trace_dsound_buffer_bytes(uint32_t caps_bytes, uint32_t desc_bytes)
{
    if (trace_event_get_state(TRACE_DSOUND_BUFFER_BYTES)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 34 "../audio/trace-events"
            qemu_log("dsound_buffer_bytes " "caps_bytes=%u, desc_bytes=%u" "\n", caps_bytes, desc_bytes);
#line 554 "trace/trace-audio.h"
        }
    }
}

#define TRACE_JACK_CLIENT_RECOVER_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_JACK_CLIENT_RECOVER) || \
    false)

static inline void trace_jack_client_recover(void)
{
    if (trace_event_get_state(TRACE_JACK_CLIENT_RECOVER)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 37 "../audio/trace-events"
            qemu_log("jack_client_recover " "attempting to reconnect to server" "\n");
#line 569 "trace/trace-audio.h"
        }
    }
}

#define TRACE_JACK_CONNECT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_JACK_CONNECT) || \
    false)

static inline void trace_jack_connect(const char *src, const char *dst)
{
    if (trace_event_get_state(TRACE_JACK_CONNECT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 38 "../audio/trace-events"
            qemu_log("jack_connect " "connect %s -> %s" "\n", src, dst);
#line 584 "trace/trace-audio.h"
        }
    }
}

#define TRACE_JACK_SERVER_STARTED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_JACK_SERVER_STARTED) || \
    false)

static inline void trace_jack_server_started(void)
{
    if (trace_event_get_state(TRACE_JACK_SERVER_STARTED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 39 "../audio/trace-events"
            qemu_log("jack_server_started " "server started" "\n");
#line 599 "trace/trace-audio.h"
        }
    }
}

#define TRACE_JACK_UNIQUE_NAME_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_JACK_UNIQUE_NAME) || \
    false)

static inline void trace_jack_unique_name(const char *name)
{
    if (trace_event_get_state(TRACE_JACK_UNIQUE_NAME)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 40 "../audio/trace-events"
            qemu_log("jack_unique_name " "unique name assigned %s" "\n", name);
#line 614 "trace/trace-audio.h"
        }
    }
}

#define TRACE_JACK_OUT_INIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_JACK_OUT_INIT) || \
    false)

static inline void trace_jack_out_init(uint32_t freq, int buffersize)
{
    if (trace_event_get_state(TRACE_JACK_OUT_INIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 41 "../audio/trace-events"
            qemu_log("jack_out_init " "output configured for %uHz (%d samples)" "\n", freq, buffersize);
#line 629 "trace/trace-audio.h"
        }
    }
}

#define TRACE_JACK_IN_INIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_JACK_IN_INIT) || \
    false)

static inline void trace_jack_in_init(uint32_t freq, int buffersize)
{
    if (trace_event_get_state(TRACE_JACK_IN_INIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 42 "../audio/trace-events"
            qemu_log("jack_in_init " "input configured for %uHz (%d samples)" "\n", freq, buffersize);
#line 644 "trace/trace-audio.h"
        }
    }
}

#define TRACE_JACK_INFO_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_JACK_INFO) || \
    false)

static inline void trace_jack_info(const char *msg)
{
    if (trace_event_get_state(TRACE_JACK_INFO)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 43 "../audio/trace-events"
            qemu_log("jack_info " "%s" "\n", msg);
#line 659 "trace/trace-audio.h"
        }
    }
}

#define TRACE_PW_STATE_CHANGED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PW_STATE_CHANGED) || \
    false)

static inline void trace_pw_state_changed(int nodeid, const char *s)
{
    if (trace_event_get_state(TRACE_PW_STATE_CHANGED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 46 "../audio/trace-events"
            qemu_log("pw_state_changed " "node id: %d stream state: %s" "\n", nodeid, s);
#line 674 "trace/trace-audio.h"
        }
    }
}

#define TRACE_PW_READ_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PW_READ) || \
    false)

static inline void trace_pw_read(int32_t avail, uint32_t index, size_t len)
{
    if (trace_event_get_state(TRACE_PW_READ)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 47 "../audio/trace-events"
            qemu_log("pw_read " "avail=%d index=%u len=%zu" "\n", avail, index, len);
#line 689 "trace/trace-audio.h"
        }
    }
}

#define TRACE_PW_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PW_WRITE) || \
    false)

static inline void trace_pw_write(int32_t filled, int32_t avail, uint32_t index, size_t len)
{
    if (trace_event_get_state(TRACE_PW_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 48 "../audio/trace-events"
            qemu_log("pw_write " "filled=%d avail=%d index=%u len=%zu" "\n", filled, avail, index, len);
#line 704 "trace/trace-audio.h"
        }
    }
}

#define TRACE_PW_VOL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PW_VOL) || \
    false)

static inline void trace_pw_vol(const char *ret)
{
    if (trace_event_get_state(TRACE_PW_VOL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 49 "../audio/trace-events"
            qemu_log("pw_vol " "set volume: %s" "\n", ret);
#line 719 "trace/trace-audio.h"
        }
    }
}

#define TRACE_PW_PERIOD_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PW_PERIOD) || \
    false)

static inline void trace_pw_period(uint64_t quantum, uint32_t rate)
{
    if (trace_event_get_state(TRACE_PW_PERIOD)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 50 "../audio/trace-events"
            qemu_log("pw_period " "period =%" PRIu64 "/%u" "\n", quantum, rate);
#line 734 "trace/trace-audio.h"
        }
    }
}

#define TRACE_PW_AUDIO_INIT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_PW_AUDIO_INIT) || \
    false)

static inline void trace_pw_audio_init(void)
{
    if (trace_event_get_state(TRACE_PW_AUDIO_INIT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 51 "../audio/trace-events"
            qemu_log("pw_audio_init " "Initialize PipeWire context" "\n");
#line 749 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_BE_SET_ACTIVE_IN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_BE_SET_ACTIVE_IN) || \
    false)

static inline void trace_audio_be_set_active_in(void *sw, bool on)
{
    if (trace_event_get_state(TRACE_AUDIO_BE_SET_ACTIVE_IN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 54 "../audio/trace-events"
            qemu_log("audio_be_set_active_in " "sw=%p, on=%d" "\n", sw, on);
#line 764 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_BE_SET_ACTIVE_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_BE_SET_ACTIVE_OUT) || \
    false)

static inline void trace_audio_be_set_active_out(void *sw, bool on)
{
    if (trace_event_get_state(TRACE_AUDIO_BE_SET_ACTIVE_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 55 "../audio/trace-events"
            qemu_log("audio_be_set_active_out " "sw=%p, on=%d" "\n", sw, on);
#line 779 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_TIMER_START_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_TIMER_START) || \
    false)

static inline void trace_audio_timer_start(int interval)
{
    if (trace_event_get_state(TRACE_AUDIO_TIMER_START)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 58 "../audio/trace-events"
            qemu_log("audio_timer_start " "interval %d ms" "\n", interval);
#line 794 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_TIMER_STOP_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_TIMER_STOP) || \
    false)

static inline void trace_audio_timer_stop(void)
{
    if (trace_event_get_state(TRACE_AUDIO_TIMER_STOP)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 59 "../audio/trace-events"
            qemu_log("audio_timer_stop " "" "\n");
#line 809 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_TIMER_DELAYED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_TIMER_DELAYED) || \
    false)

static inline void trace_audio_timer_delayed(int interval)
{
    if (trace_event_get_state(TRACE_AUDIO_TIMER_DELAYED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 60 "../audio/trace-events"
            qemu_log("audio_timer_delayed " "interval %d ms" "\n", interval);
#line 824 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_NOTIFY_CAPTURE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_NOTIFY_CAPTURE) || \
    false)

static inline void trace_audio_notify_capture(int cmd)
{
    if (trace_event_get_state(TRACE_AUDIO_NOTIFY_CAPTURE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 61 "../audio/trace-events"
            qemu_log("audio_notify_capture " "notification %d sent" "\n", cmd);
#line 839 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_CAPTURE_ATTACH_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_CAPTURE_ATTACH) || \
    false)

static inline void trace_audio_capture_attach(const char *name, bool active)
{
    if (trace_event_get_state(TRACE_AUDIO_CAPTURE_ATTACH)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 62 "../audio/trace-events"
            qemu_log("audio_capture_attach " "capture %s active=%d" "\n", name, active);
#line 854 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_GET_AVAIL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_GET_AVAIL) || \
    false)

static inline void trace_audio_get_avail(const char *name, size_t live, uint32_t frontend_frames)
{
    if (trace_event_get_state(TRACE_AUDIO_GET_AVAIL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 65 "../audio/trace-events"
            qemu_log("audio_get_avail " "%s: get_avail live %zu frontend frames %u" "\n", name, live, frontend_frames);
#line 869 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_RUN_POLL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_RUN_POLL) || \
    false)

static inline void trace_audio_run_poll(const char *msg, int64_t elapsed_us)
{
    if (trace_event_get_state(TRACE_AUDIO_RUN_POLL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 66 "../audio/trace-events"
            qemu_log("audio_run_poll " "Elapsed since last %s: %" PRId64 " us" "\n", msg, elapsed_us);
#line 884 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_CAPTURE_FREE_SW_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_CAPTURE_FREE_SW) || \
    false)

static inline void trace_audio_capture_free_sw(const char *name)
{
    if (trace_event_get_state(TRACE_AUDIO_CAPTURE_FREE_SW)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 67 "../audio/trace-events"
            qemu_log("audio_capture_free_sw " "freeing %s" "\n", name);
#line 899 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_OUT_FULL_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_OUT_FULL) || \
    false)

static inline void trace_audio_out_full(const char *name, size_t live)
{
    if (trace_event_get_state(TRACE_AUDIO_OUT_FULL)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 68 "../audio/trace-events"
            qemu_log("audio_out_full " "%s is full %zu" "\n", name, live);
#line 914 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_SW_WRITE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_SW_WRITE) || \
    false)

static inline void trace_audio_sw_write(const char *name, size_t size, size_t written, size_t total_mixed)
{
    if (trace_event_get_state(TRACE_AUDIO_SW_WRITE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 69 "../audio/trace-events"
            qemu_log("audio_sw_write " "%s: write size %zu written %zu total mixed %zu" "\n", name, size, written, total_mixed);
#line 929 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_GET_FREE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_GET_FREE) || \
    false)

static inline void trace_audio_get_free(const char *name, size_t live, size_t dead, uint32_t frontend_frames)
{
    if (trace_event_get_state(TRACE_AUDIO_GET_FREE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 70 "../audio/trace-events"
            qemu_log("audio_get_free " "%s: get_free live %zu dead %zu frontend frames %u" "\n", name, live, dead, frontend_frames);
#line 944 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_OUT_DISABLE_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_OUT_DISABLE) || \
    false)

static inline void trace_audio_out_disable(void)
{
    if (trace_event_get_state(TRACE_AUDIO_OUT_DISABLE)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 71 "../audio/trace-events"
            qemu_log("audio_out_disable " "Disabling voice" "\n");
#line 959 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_OUT_PLAYED_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_OUT_PLAYED) || \
    false)

static inline void trace_audio_out_played(size_t played)
{
    if (trace_event_get_state(TRACE_AUDIO_OUT_PLAYED)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 72 "../audio/trace-events"
            qemu_log("audio_out_played " "played=%zu" "\n", played);
#line 974 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_RATE_RESET_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_RATE_RESET) || \
    false)

static inline void trace_audio_rate_reset(int64_t frames)
{
    if (trace_event_get_state(TRACE_AUDIO_RATE_RESET)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 73 "../audio/trace-events"
            qemu_log("audio_rate_reset " "Resetting rate control (%" PRId64 " frames)" "\n", frames);
#line 989 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_OPEN_OUT_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_OPEN_OUT) || \
    false)

static inline void trace_audio_open_out(const char *name, int freq, int nchannels, int fmt)
{
    if (trace_event_get_state(TRACE_AUDIO_OPEN_OUT)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 76 "../audio/trace-events"
            qemu_log("audio_open_out " "open %s, freq %d, nchannels %d, fmt %d" "\n", name, freq, nchannels, fmt);
#line 1004 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_OPEN_IN_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_OPEN_IN) || \
    false)

static inline void trace_audio_open_in(const char *name, int freq, int nchannels, int fmt)
{
    if (trace_event_get_state(TRACE_AUDIO_OPEN_IN)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 77 "../audio/trace-events"
            qemu_log("audio_open_in " "open %s, freq %d, nchannels %d, fmt %d" "\n", name, freq, nchannels, fmt);
#line 1019 "trace/trace-audio.h"
        }
    }
}

#define TRACE_AUDIO_VOICE_PAIR_BACKEND_DSTATE() ( \
    trace_event_get_state_dynamic_by_id(TRACE_AUDIO_VOICE_PAIR) || \
    false)

static inline void trace_audio_voice_pair(const char *type, const char *name, const char *hw_fmt, int hw_freq, int hw_nchannels, const char *sw_fmt, int sw_freq, int sw_nchannels)
{
    if (trace_event_get_state(TRACE_AUDIO_VOICE_PAIR)) {
        if (qemu_loglevel_mask(LOG_TRACE)) {
#line 78 "../audio/trace-events"
            qemu_log("audio_voice_pair " "%s: name=%s hw=%s/%d/%d sw=%s/%d/%d" "\n", type, name, hw_fmt, hw_freq, hw_nchannels, sw_fmt, sw_freq, sw_nchannels);
#line 1034 "trace/trace-audio.h"
        }
    }
}
#endif /* TRACE_AUDIO_GENERATED_TRACERS_H */
