1
0
mirror of https://github.com/Gehstock/Mist_FPGA.git synced 2026-01-19 09:18:02 +00:00

Merge pull request #112 from squidrpi/master

Reduce Williams volume and fix distortion
This commit is contained in:
Marcel 2021-02-25 19:37:30 +01:00 committed by GitHub
commit 2e55bf9bdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -347,9 +347,9 @@ assign AUDIO_R = dac_o;
dac #(
.C_bits(11))
dac(
.clk_i(clk_0p89),
.clk_i(clk_sys),
.res_n_i(1),
.dac_i({3'b000, audio}), // silence by 9dB
.dac_i({3'b000, audio}),
.dac_o(dac_o)
);

View File

@ -452,17 +452,21 @@ mist_video #(.COLOR_DEPTH(3), .SD_HCNT_WIDTH(11)) mist_video(
.ypbpr ( ypbpr )
);
wire [16:0] audio_mix = speech_en ? { 1'b0, audio, audio } + { 1'b0, speech } : { 1'b0, audio, audio };
wire [16:0] audio_aud = {1'b0, audio, 8'd0} + {1'b0, speech};
wire [15:0] audio_mix = speech_en ? audio_aud[16:1] : {audio, 8'd0};
wire [15:0] audio_mix2 = audio_mix >> 3;
wire dac_o;
assign AUDIO_L = dac_o;
assign AUDIO_R = dac_o;
dac #(
.C_bits(17))
.C_bits(16))
dac(
.clk_i(clk_aud),
.clk_i(clk_sys),
.res_n_i(1),
.dac_i(audio_mix),
.dac_i(audio_mix2),
.dac_o(dac_o)
);