Some sub-engines are unused. Disable them explicitly.
Unified · Split
| @@ -463,6 +463,15 @@ static int sun8i_mixer_bind(struct device *dev, struct device *master, · 462 unmodified lines | ||
| 463 | 463 | for (i = 0; i < DE2_MIXER_UNIT_SIZE; i += 4) |
| 464 | 464 | regmap_write(mixer->engine.regs, i, 0); |
| 465 | 465 | |
| 466 | + /* Disable unused sub-engines */ | |
| 467 | + regmap_write(mixer->engine.regs, SUN8I_MIXER_FCE_EN, 0); | |
| 468 | + regmap_write(mixer->engine.regs, SUN8I_MIXER_BWS_EN, 0); | |
| 469 | + regmap_write(mixer->engine.regs, SUN8I_MIXER_LTI_EN, 0); | |
| 470 | + regmap_write(mixer->engine.regs, SUN8I_MIXER_PEAK_EN, 0); | |
| 471 | + regmap_write(mixer->engine.regs, SUN8I_MIXER_ASE_EN, 0); | |
| 472 | + regmap_write(mixer->engine.regs, SUN8I_MIXER_FCC_EN, 0); | |
| 473 | + regmap_write(mixer->engine.regs, SUN8I_MIXER_DCSC_EN, 0); | |
| 474 | + | |
| 466 | 475 | /* Enable the mixer */ |
| 467 | 476 | regmap_write(mixer->engine.regs, SUN8I_MIXER_GLOBAL_CTL, |
| 468 | 477 | SUN8I_MIXER_GLOBAL_CTL_RT_EN); |
| @@ -101,8 +101,8 @@ · 100 unmodified lines | ||
| 101 | 101 | #define SUN8I_MIXER_FBFMT_YUV411 14 |
| 102 | 102 | |
| 103 | 103 | /* |
| 104 | − * These sub-engines are still unknown now, the EN registers are here only to | |
| 105 | − * be used to disable these sub-engines. | |
| 104 | + * Sub-engines listed bellow are unused for now. The EN registers are here only | |
| 105 | + * to be used to disable these sub-engines. | |
| 106 | 106 | */ |
| 107 | 107 | #define SUN8I_MIXER_FCE_EN 0xa0000 |
| 108 | 108 | #define SUN8I_MIXER_BWS_EN 0xa2000 |