Used revision 5 instead of 7, marked constexpr as static

master
David Marcec 2019-09-21 16:24:56 +07:00
parent b54cdeb284
commit e9d19add7d
1 changed files with 2 additions and 2 deletions

@ -107,7 +107,7 @@ Stream::State AudioRenderer::GetStreamState() const {
return stream->GetState(); return stream->GetState();
} }
constexpr u32 VersionFromRevision(u32_le rev) { static constexpr u32 VersionFromRevision(u32_le rev) {
// "REV7" -> 7 // "REV7" -> 7
return ((rev >> 24) & 0xff) - 0x30; return ((rev >> 24) & 0xff) - 0x30;
} }
@ -172,7 +172,7 @@ std::vector<u8> AudioRenderer::UpdateAudioRenderer(const std::vector<u8>& input_
UpdateDataHeader response_data{worker_params}; UpdateDataHeader response_data{worker_params};
std::vector<u8> output_params(response_data.total_size); std::vector<u8> output_params(response_data.total_size);
const auto audren_revision = VersionFromRevision(config.revision); const auto audren_revision = VersionFromRevision(config.revision);
if (audren_revision >= 7) { if (audren_revision >= 5) {
response_data.frame_count = 0x10; response_data.frame_count = 0x10;
response_data.total_size += 0x10; response_data.total_size += 0x10;
} }