> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 15:01:37 up 4 days, 10:07,  1 user,  load average: 0.54, 0.53, 0.54
This commit is contained in:
tracer-ics2023
2024-09-21 15:01:38 +08:00
committed by zzy
parent ccd5fa9826
commit 52379e98db
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ static void audio_io_handler(uint32_t offset, int len, bool is_write) {
case reg_init:
if (is_write) {
if (audio_base[reg_init] & 1) init_audio_dev();
if (audio_base[reg_init] & 1 << 1) {
if (audio_base[reg_init] & 2) {
mtx_lock(&mtx_audio);
} else {
mtx_unlock(&mtx_audio);