Hi,
Welcome to the EngineerZone - I have moved this question to the VisualDSP++ Development Tools community, as it relates specifically to the Device Drivers and System Services.
Take a look at the "...\Blackfin\Include\drivers\codec\adi_ac97.h" header file - you will find an enumeration for the "ADI_AC97_DRIVER_MODE". The "ADI_AC97_MODE_CODEC_DATAFLOW_DISABLED" is not valid:
typedef enum ADI_AC97_DRIVER_MODE { /* Codec is in Idle state */ ADI_AC97_MODE_CODEC_IDLE = 0U, /* Wait until codec is ready */ ADI_AC97_MODE_CODEC_WAIT_FOR_CODEC_READY = 0x01U, /* Wait until codec sub-system is ready */ ADI_AC97_MODE_CODEC_WAIT_FOR_SUB_SYSTEM_READY = 0x02U, /* Codec is ready for audio streaming */ ADI_AC97_MODE_CODEC_READY_FOR_AUDIO_STREAM = 0x04U, /* Audio Transmit dataflow enabled/disabled */ ADI_AC97_MODE_CODEC_TX_DATAFLOW_ENABLED = 0x08U, /* Audio Receive dataflow enabled/disabled */ ADI_AC97_MODE_CODEC_RX_DATAFLOW_ENABLED = 0x10U } ADI_AC97_DRIVER_MODE;
I haven't looked at your code in detail, so if you have any additional questions as a result of the above enumeration details, let me know.
Regards,
Craig.