diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp index d0490173ae..4127dc55a2 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec.cpp @@ -25,6 +25,8 @@ u32 nvhost_nvdec::ioctl(Ioctl command, const std::vector& input, const std:: switch (static_cast(command.raw)) { case IoctlCommand::IocSetNVMAPfdCommand: return SetNVMAPfd(input, output); + case IoctlCommand::IocChannelGetWaitBase: + return ChannelGetWaitBase(input, output); } if (command.group == NVHOST_IOCTL_MAGIC) { @@ -45,6 +47,17 @@ u32 nvhost_nvdec::SetNVMAPfd(const std::vector& input, std::vector& outp nvmap_fd = params.nvmap_fd; return 0; } + +u32 nvhost_nvdec::ChannelGetWaitBase(const std::vector& input, std::vector& output) { + IoctChannelWaitBase params{}; + std::memcpy(¶ms, input.data(), input.size()); + LOG_DEBUG(Service_NVDRV, "called, module_id: {}", params.module_id); + + params.waitbase_value = 0; + + std::memcpy(output.data(), ¶ms, output.size()); + return 0; +} u32 nvhost_nvdec::ChannelMapCmdBuffer(const std::vector& input, std::vector& output) { IoctlMapCmdBuffer params{};