codecctl.cpp 948 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "core/hle/service/audio/codecctl.h"
  4. namespace Service::Audio {
  5. CodecCtl::CodecCtl(Core::System& system_) : ServiceFramework{system_, "codecctl"} {
  6. static const FunctionInfo functions[] = {
  7. {0, nullptr, "Initialize"},
  8. {1, nullptr, "Finalize"},
  9. {2, nullptr, "Sleep"},
  10. {3, nullptr, "Wake"},
  11. {4, nullptr, "SetVolume"},
  12. {5, nullptr, "GetVolumeMax"},
  13. {6, nullptr, "GetVolumeMin"},
  14. {7, nullptr, "SetActiveTarget"},
  15. {8, nullptr, "GetActiveTarget"},
  16. {9, nullptr, "BindHeadphoneMicJackInterrupt"},
  17. {10, nullptr, "IsHeadphoneMicJackInserted"},
  18. {11, nullptr, "ClearHeadphoneMicJackInterrupt"},
  19. {12, nullptr, "IsRequested"},
  20. };
  21. RegisterHandlers(functions);
  22. }
  23. CodecCtl::~CodecCtl() = default;
  24. } // namespace Service::Audio