mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-22 00:17:00 +00:00
More fixes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user