mirror of https://gitee.com/openkylin/linux.git
mfd: twl4030-audio: Get audio MCLK via twl-core API instead of pdata
twl-core has API to get the boot time configured HFCLK rate which has the same rate as the audio MCLK. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
2275c544cb
commit
c531241dcc
|
@ -175,7 +175,7 @@ static int __devinit twl4030_audio_probe(struct platform_device *pdev)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
mutex_init(&audio->mutex);
|
mutex_init(&audio->mutex);
|
||||||
audio->audio_mclk = pdata->audio_mclk;
|
audio->audio_mclk = twl_get_hfclk_rate();
|
||||||
|
|
||||||
/* Configure APLL_INFREQ and disable APLL if enabled */
|
/* Configure APLL_INFREQ and disable APLL if enabled */
|
||||||
switch (audio->audio_mclk) {
|
switch (audio->audio_mclk) {
|
||||||
|
|
Loading…
Reference in New Issue