diff options
author | st4rk <zeromythos@ufrn.edu.br> | 2018-01-22 04:03:36 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-22 04:03:36 +0100 |
commit | 07355cf7cc114d27c34d2b61a35f929a6db3f8fb (patch) | |
tree | 35381b658ed1f3014813aecd7c58ac289de41032 /src/core/hle/service/audio/codecctl.cpp | |
parent | Merge pull request #131 from lioncash/enum (diff) | |
download | yuzu-07355cf7cc114d27c34d2b61a35f929a6db3f8fb.tar yuzu-07355cf7cc114d27c34d2b61a35f929a6db3f8fb.tar.gz yuzu-07355cf7cc114d27c34d2b61a35f929a6db3f8fb.tar.bz2 yuzu-07355cf7cc114d27c34d2b61a35f929a6db3f8fb.tar.lz yuzu-07355cf7cc114d27c34d2b61a35f929a6db3f8fb.tar.xz yuzu-07355cf7cc114d27c34d2b61a35f929a6db3f8fb.tar.zst yuzu-07355cf7cc114d27c34d2b61a35f929a6db3f8fb.zip |
Diffstat (limited to 'src/core/hle/service/audio/codecctl.cpp')
-rw-r--r-- | src/core/hle/service/audio/codecctl.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/hle/service/audio/codecctl.cpp b/src/core/hle/service/audio/codecctl.cpp new file mode 100644 index 000000000..d2a7f4cd0 --- /dev/null +++ b/src/core/hle/service/audio/codecctl.cpp @@ -0,0 +1,33 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "common/logging/log.h" +#include "core/hle/ipc_helpers.h" +#include "core/hle/kernel/hle_ipc.h" +#include "core/hle/service/audio/codecctl.h" + +namespace Service { +namespace Audio { + +CodecCtl::CodecCtl() : ServiceFramework("codecctl") { + static const FunctionInfo functions[] = { + {0x00000000, nullptr, "InitializeCodecController"}, + {0x00000001, nullptr, "FinalizeCodecController"}, + {0x00000002, nullptr, "SleepCodecController"}, + {0x00000003, nullptr, "WakeCodecController"}, + {0x00000004, nullptr, "SetCodecVolume"}, + {0x00000005, nullptr, "GetCodecVolumeMax"}, + {0x00000006, nullptr, "GetCodecVolumeMin"}, + {0x00000007, nullptr, "SetCodecActiveTarget"}, + {0x00000008, nullptr, "Unknown"}, + {0x00000009, nullptr, "BindCodecHeadphoneMicJackInterrupt"}, + {0x0000000A, nullptr, "IsCodecHeadphoneMicJackInserted"}, + {0x0000000B, nullptr, "ClearCodecHeadphoneMicJackInterrupt"}, + {0x0000000C, nullptr, "IsCodecDeviceRequested"}, + }; + RegisterHandlers(functions); +} + +} // namespace Audio +} // namespace Service |