Skip to content

Commit

Permalink
always use 44.1KHz audio. #138
Browse files Browse the repository at this point in the history
  • Loading branch information
gardners committed Dec 3, 2019
1 parent f98a4bd commit dad0f13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/vhdl/hdmi_i2c.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ architecture behavioural of hdmi_i2c is
-- Input mode
---------------
x"3C11", -- PAL 576p 4:3 aspect ratio video mode
x"15E0", -- Simple RGB video (was $06 = YCbCr 422, DDR, External sync), 192KHz audio sample rate
x"15E0", -- Simple RGB video (was $06 = YCbCr 422, DDR, External sync), 44.1KHz audio sample rate
x"4810", -- Left justified data (D23 downto 8)
-- according to documenation, style 2 should be x"1637" but it isn't. ARGH!
-- x"1637", -- 444 output, 8 bit style 2, 1st half on rising edge - YCrCb clipping
Expand Down Expand Up @@ -212,7 +212,7 @@ architecture behavioural of hdmi_i2c is
-- (or we increase sample rate to 27.083/27*44100 = 44237 samples / second.)
-- Big-endian byte order.
-- Use $6000 for 192KHz audio sample rate
x"0100",x"0260",x"0300",
x"0100",x"0218",x"0380",
-- x"0700",x"08EE",x"09E0",

-- -- Set HDMI device name
Expand Down
8 changes: 4 additions & 4 deletions src/vhdl/mega65r2.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,11 @@ begin

-- Make SPDIF audio switchable for debugging HDMI output
if portp(0) = '1' then
if portp(1) = '0' then
hdmi_spdif <= spdif_192000;
else
-- if portp(1) = '0' then
-- hdmi_spdif <= spdif_192000;
-- else
hdmi_spdif <= spdif_44100;
end if;
-- end if;
else
hdmi_spdif <= '0';
end if;
Expand Down

0 comments on commit dad0f13

Please sign in to comment.