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 | for (i = 0; i < DE2_MIXER_UNIT_SIZE; i += 4) | 463 | for (i = 0; i < DE2_MIXER_UNIT_SIZE; i += 4) |
| 464 | regmap_write(mixer->engine.regs, i, 0); | 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 | /* Enable the mixer */ | 475 | /* Enable the mixer */ |
| 467 | regmap_write(mixer->engine.regs, SUN8I_MIXER_GLOBAL_CTL, | 476 | regmap_write(mixer->engine.regs, SUN8I_MIXER_GLOBAL_CTL, |
| 468 | SUN8I_MIXER_GLOBAL_CTL_RT_EN); | 477 | SUN8I_MIXER_GLOBAL_CTL_RT_EN); |
| @@ -101,8 +101,8 @@ · 100 unmodified lines | |||
| 101 | #define SUN8I_MIXER_FBFMT_YUV411 14 | 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 | 104 | * Sub-engines listed bellow are unused for now. The EN registers are here only |
| 105 | * be used to disable these sub-engines. | 105 | * to be used to disable these sub-engines. |
| 106 | */ | 106 | */ |
| 107 | #define SUN8I_MIXER_FCE_EN 0xa0000 | 107 | #define SUN8I_MIXER_FCE_EN 0xa0000 |
| 108 | #define SUN8I_MIXER_BWS_EN 0xa2000 | 108 | #define SUN8I_MIXER_BWS_EN 0xa2000 |