ASoC: Factor out boiler plate for DAPM event generation