Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ 4420.217387] sun4i-dai 1c22400.i2s: Entered sun4i_dai_probe
- [ 4420.217395] sun4i-dai 1c22400.i2s: probe 1
- [ 4420.217670] test printk
- [ 4420.217678] sun4i-dai 1c22400.i2s: probe return 0
- sun4i_dai_probe function:
- ret = snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
- if (ret) {
- dev_err(&pdev->dev, "Could not register PCM\n");
- goto err_disable_clk;
- }
- printk("test printk\n");
- dev_dbg(&pdev->dev, "probe return 0\n");
- return 0;
- err_disable_clk:
- clk_disable_unprepare(sdai->bus_clk);
- return ret;
- static int sun4i_dai_dai_probe(struct snd_soc_dai *dai)
- {
- struct sun4i_dai *sdai = snd_soc_dai_get_drvdata(dai);
- /* Enable the whole hardware block */
- regmap_write(sdai->regmap, SUN4I_DAI_CTRL_REG,
- SUN4I_DAI_CTRL_GL_EN);
- snd_soc_dai_init_dma_data(dai, &sdai->playback_dma_data, NULL);
- snd_soc_dai_set_drvdata(dai, sdai);
- printk("%s +%d\n", __func__, __LINE__); // this doesn't get called !!!!!
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement