Used revision 5 instead of 7, marked constexpr as static
This commit is contained in:
parent
b54cdeb284
commit
e9d19add7d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue