FROMGIT: ASoC: da7219: Add recalc_rate function to return DAI clock rate

By making MCLK parent of DAI clocks, when querying the rate of the
clock the rate returned is now given from the parent clock so
gives the MCLK rate rather than 0 as previously returned. This is
a bit misleading, and actually there's no major reason why we can't
at least return the DAI WCLK rate, as set in HW, so that's what we
now do.

Signed-off-by: Adam Thomson <>
Signed-off-by: Mark Brown <>
(cherry picked from commit a58943abcb08cfbe6c36648602d796c5834ee8a9
Signed-off-by: Akshu Agrawal <>

TEST=cras_test_client --capture_f <file> --duration_seconds 1
	cras_test_client --playback_f <file>
	=> No "pop" or "bo" sound at start of capture.

Change-Id: If2839b994e8c6dac9f142483c0990f652da523a9
Commit-Ready: ChromeOS CL Exonerator Bot <>
Tested-by: Akshu Agrawal <>
Reviewed-by: Daniel Kurtz <>
Commit-Queue: Daniel Kurtz <>
Tested-by: Daniel Kurtz <>
2 files changed