/* This function configures the hardware to allow audio playback operations. It is called by ALSA framework. */
static int snd_mx1_mx2_prepare(struct snd_pcm_substream *substream)
/* This function configures the hardware to allow audio playback operations. It is called by ALSA framework. */
static int snd_mx1_mx2_prepare(struct snd_pcm_substream *substream)
{
	struct snd_pcm_runtime *runtime =  substream->runtime;
	struct mx1_mx2_runtime_data *prtd = runtime->private_data;
	prtd->period = 0;
	prtd->periods = 0;
	return 0;
}