This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365 ISIF CCD GAIN problem

I'm trying to adjust ISIF GAIN/OFFSET for each color individually, as described in Section 6.1 of "TMS320DM36x Digital Media System-on-Chip (DMSoC) Video Processing Front End (VPFE) User's Guide"

But something goes wrong and all colors has gain from RED channel. Others channel setting is ignored.

Below is a piece of my test code

    // CCDC gain
    CCDC_GO_PARAM cgo;
    cgo.gain.r_ye = {1, 0};
    cgo.gain.gr_cy = {2, 0};
    cgo.gain.gb_g = {3, 0};
    cgo.gain.b_mg = {4, 0};
    cgo.offset = 0;
    cgo.gain_sdram_en = 1;
    cgo.gain_ipipe_en = 1;
    cgo.gain_h3a_en = 1;
    cgo.offset_sdram_en = 1;
    cgo.offset_ipipe_en = 1;
    cgo.offset_h3a_en = 1;
    CallVideoCCDC(CCDC_S_GAIN_OFFSET, &cgo);

Here is register dump within ISIF registers. "w" is written value, "r" is read value. As I see all register contains desired values.
Reg 0x80: w = 0x7708, r = 0x7708
Reg 0x50: w = 0x200, r = 0x200
Reg 0x54: w = 0x400, r = 0x400
Reg 0x58: w = 0x600, r = 0x600
Reg 0x5C: w = 0x800, r = 0x800

Picture below is an image of my ceiling. I can't see to much blue as i expect from my code.



Have anybody adjusted this hardware module of ISIF on DM365?