Skip to content

Commit

Permalink
audio volume fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vossstef committed Dec 22, 2023
1 parent 7f394aa commit 63c4e59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/misc/video.v
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Gowin_CLKDIV clk_div_5 (
// generate 48khz audio clock
reg clk_audio /* synthesis syn_keep=1 */;
reg [8:0] aclk_cnt;
always @(posedge clk32_i) begin
always @(posedge clk_pixel) begin
// divisor = pixel clock / 48000 / 2 - 1
if(aclk_cnt < `PIXEL_CLOCK / 48000 / 2 -1)
aclk_cnt <= aclk_cnt + 9'd1;
Expand Down
4 changes: 2 additions & 2 deletions src/tang_nano_20k_c64_top.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ port map(
g_in => std_logic_vector(g(7 downto 4)),
b_in => std_logic_vector(b(7 downto 4)),

audio_l => audio_data_l(17 downto 2),
audio_r => audio_data_r(17 downto 2),
audio_l => '0' & audio_data_l(17 downto 11) & audio_data_l(17 downto 10),
audio_r => '0' & audio_data_l(17 downto 11) & audio_data_l(17 downto 10),
enabled => osd_status,

mcu_start => mcu_start,
Expand Down

0 comments on commit 63c4e59

Please sign in to comment.