Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

WM8731 codec configuration

Hi,

I am trying to send 16 bit numbers to the codec (i have DE1 board) but the sound i get is only a few tunes. please help me to solve this problam.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The codec configuration is:

    when SET_LIN_L => LUT_DATA <= X"001A";

    when SET_LIN_R => LUT_DATA <= X"021A";

    when SET_HEAD_L => LUT_DATA <= X"047B";

    when SET_HEAD_R => LUT_DATA <= X"067B";

    when A_PATH_CTRL => LUT_DATA <= X"08F8";

    when D_PATH_CTRL => LUT_DATA <= X"0A06";

    when POWER_ON => LUT_DATA <= X"0C00";

    when SET_FORMAT => LUT_DATA <= X"0E01";

    when SAMPLE_CTRL => LUT_DATA <= X"1002";

    when SET_ACTIVE => LUT_DATA <= X"1201";

    and the data insert to the codec :

    oAUD_DACDAT === get 16 bit serial throght clock AUD_BCLK

    and LRCK_1X (main clock 18.432 Mhz).

    the problam: can not produce sound, only few tunes.