staticconststruct reg_sequence tas2764_shutdown_dance_init_seq[] = { /* * SDZ_MODE=01 (immediate) * * We want the shutdown to happen under the influence of * the magic writes in the 0xfdXX region, so make sure * the shutdown is immediate and there's no grace period * followed by the codec part.
*/
REG_SEQ0(TAS2764_REG(0x0, 0x7), 0x60),
};
/* Handle power state transition to shutdown */ if (target == TAS2764_PWR_CTRL_SHUTDOWN &&
(curr == TAS2764_PWR_CTRL_MUTE || curr == TAS2764_PWR_CTRL_ACTIVE)) {
ret = regmap_multi_reg_write(tas2764->regmap, tas2764_pre_shutdown_seq,
ARRAY_SIZE(tas2764_pre_shutdown_seq)); if (!ret)
ret = snd_soc_component_update_bits(tas2764->component,
TAS2764_PWR_CTRL,
TAS2764_PWR_CTRL_MASK,
TAS2764_PWR_CTRL_SHUTDOWN); if (!ret)
ret = regmap_multi_reg_write(tas2764->regmap,
tas2764_post_shutdown_seq,
ARRAY_SIZE(tas2764_post_shutdown_seq));
}
ret = snd_soc_component_update_bits(tas2764->component, TAS2764_PWR_CTRL,
TAS2764_PWR_CTRL_MASK, target);
return ret;
}
/* * Via devicetree (TODO): * - switch from spread spectrum to class-D switching * - disable edge control * - set BOP settings (the BOP config bits *and* BOP_SRC)
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.