From 83e3c060041d90e43c9bc1db74ec2cf269bfa77c Mon Sep 17 00:00:00 2001 From: Sebastian Holzapfel Date: Fri, 26 Apr 2024 18:14:12 +0200 Subject: [PATCH] tiliqua: hacks for 192kHz --- gateware/drivers/ak4619-cfg.hex | 2 +- gateware/drivers/ak4619.sv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gateware/drivers/ak4619-cfg.hex b/gateware/drivers/ak4619-cfg.hex index 3c937af..03abbbd 100644 --- a/gateware/drivers/ak4619-cfg.hex +++ b/gateware/drivers/ak4619-cfg.hex @@ -3,7 +3,7 @@ 37 // 0x00 Power Management AE // 0x01 Audio I/F Format 1C // 0x02 Audio I/F Format -00 // 0x03 System Clock Setting +04 // 0x03 System Clock Setting 22 // 0x04 MIC AMP Gain 22 // 0x05 MIC AMP Gain 30 // 0x06 ADC1 Lch Digital Volume diff --git a/gateware/drivers/ak4619.sv b/gateware/drivers/ak4619.sv index 56fcfef..8b2ae56 100644 --- a/gateware/drivers/ak4619.sv +++ b/gateware/drivers/ak4619.sv @@ -61,7 +61,7 @@ logic [4:0] bit_counter; assign pdn = ~rst; assign bick = clkdiv[0]; -assign mclk = clk_256fs; +assign mclk = clkdiv[0]; assign lrck = clkdiv[7]; // 0, 1, 2, 3 == L, R, L, R