More fixes

This commit is contained in:
dingusdev
2026-01-02 18:20:39 -07:00
parent 0236493902
commit 10be145179
+7 -7
View File
@@ -319,19 +319,19 @@ void AMIC::write(uint32_t rgn_start, uint32_t offset, uint32_t value, int size)
this->snd_out_ctrl = value;
return;
case AMICReg::Snd_In_Ctrl:
LOG_F(WARNING, "Snd In Ctrl - SndIn Enable: 0x%x", this->snd_in_ctrl & 0x80);
if (this->snd_in_ctrl & 0xFC) {
LOG_F(WARNING, "Snd In Ctrl - Subframe Out: 0x%x", this->snd_in_ctrl & 0x3C);
LOG_F(WARNING, "Snd In Ctrl - Subframe In: 0x%x", this->snd_in_ctrl & 0x03);
LOG_F(WARNING, "Snd In Ctrl - SndIn Enable: 0x%x", value & 0x80);
if ((value & 0x80) && !(this->snd_in_ctrl & 0x80)){
LOG_F(WARNING, "Snd In Ctrl - Subframe Out: 0x%x", value & 0x3C);
LOG_F(WARNING, "Snd In Ctrl - Subframe In: 0x%x", value & 0x03);
this->snd_in_dma->init(this->dma_base & ~0x3FFFF, this->snd_buf_size);
this->snd_in_dma->enable();
this->awacs->set_sample_rate((this->snd_in_ctrl >> 1) & 3);
this->awacs->set_sample_rate((this->snd_out_ctrl >> 1) & 3);
this->awacs->dma_in_start();
}
else {
else if (!(value & 0x80) && (this->snd_in_ctrl & 0x80)) {
this->snd_in_dma->disable();
this->awacs->dma_in_pause();
}
}
this->snd_in_ctrl = value;
return;
case AMICReg::Snd_Out_DMA: