|
@@ -37,7 +37,6 @@
|
|
#include <sound/soc.h>
|
|
#include <sound/soc.h>
|
|
#include <sound/dmaengine_pcm.h>
|
|
#include <sound/dmaengine_pcm.h>
|
|
|
|
|
|
-#include "tegra_asoc_utils.h"
|
|
|
|
#include "tegra20_ac97.h"
|
|
#include "tegra20_ac97.h"
|
|
|
|
|
|
#define DRV_NAME "tegra20-ac97"
|
|
#define DRV_NAME "tegra20-ac97"
|
|
@@ -376,18 +375,10 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
|
|
ac97->playback_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
|
|
ac97->playback_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
|
|
ac97->playback_dma_data.maxburst = 4;
|
|
ac97->playback_dma_data.maxburst = 4;
|
|
|
|
|
|
- ret = tegra_asoc_utils_init(&ac97->util_data, &pdev->dev);
|
|
|
|
- if (ret)
|
|
|
|
- goto err_clk_put;
|
|
|
|
-
|
|
|
|
- ret = tegra_asoc_utils_set_ac97_rate(&ac97->util_data);
|
|
|
|
- if (ret)
|
|
|
|
- goto err_asoc_utils_fini;
|
|
|
|
-
|
|
|
|
ret = clk_prepare_enable(ac97->clk_ac97);
|
|
ret = clk_prepare_enable(ac97->clk_ac97);
|
|
if (ret) {
|
|
if (ret) {
|
|
dev_err(&pdev->dev, "clk_enable failed: %d\n", ret);
|
|
dev_err(&pdev->dev, "clk_enable failed: %d\n", ret);
|
|
- goto err_asoc_utils_fini;
|
|
|
|
|
|
+ goto err;
|
|
}
|
|
}
|
|
|
|
|
|
ret = snd_soc_set_ac97_ops(&tegra20_ac97_ops);
|
|
ret = snd_soc_set_ac97_ops(&tegra20_ac97_ops);
|
|
@@ -419,8 +410,6 @@ err_unregister_component:
|
|
snd_soc_unregister_component(&pdev->dev);
|
|
snd_soc_unregister_component(&pdev->dev);
|
|
err_clk_disable_unprepare:
|
|
err_clk_disable_unprepare:
|
|
clk_disable_unprepare(ac97->clk_ac97);
|
|
clk_disable_unprepare(ac97->clk_ac97);
|
|
-err_asoc_utils_fini:
|
|
|
|
- tegra_asoc_utils_fini(&ac97->util_data);
|
|
|
|
err_clk_put:
|
|
err_clk_put:
|
|
err:
|
|
err:
|
|
snd_soc_set_ac97_ops(NULL);
|
|
snd_soc_set_ac97_ops(NULL);
|
|
@@ -434,8 +423,6 @@ static int tegra20_ac97_platform_remove(struct platform_device *pdev)
|
|
tegra_pcm_platform_unregister(&pdev->dev);
|
|
tegra_pcm_platform_unregister(&pdev->dev);
|
|
snd_soc_unregister_component(&pdev->dev);
|
|
snd_soc_unregister_component(&pdev->dev);
|
|
|
|
|
|
- tegra_asoc_utils_fini(&ac97->util_data);
|
|
|
|
-
|
|
|
|
clk_disable_unprepare(ac97->clk_ac97);
|
|
clk_disable_unprepare(ac97->clk_ac97);
|
|
|
|
|
|
snd_soc_set_ac97_ops(NULL);
|
|
snd_soc_set_ac97_ops(NULL);
|