1 // Copyright 2018 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #pragma once
6 
7 #include <assert.h>
8 #include <zircon/compiler.h>
9 #include <zircon/device/ioctl.h>
10 #include <zircon/device/ioctl-wrapper.h>
11 #include <zircon/types.h>
12 
13 // Enables/Disables the audio codec.
14 #define IOCTL_AUDIO_CODEC_ENABLE IOCTL(IOCTL_KIND_DEFAULT, IOCTL_FAMILY_AUDIO_CODEC, 1)
15 
16 // ssize_t ioctl_audio_codec_enable(int fd, bool enable)
17 IOCTL_WRAPPER_IN(ioctl_audio_codec_enable, IOCTL_AUDIO_CODEC_ENABLE, bool);
18