Advertisement
Guest User

Untitled

a guest
May 16th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. [ 4420.217387] sun4i-dai 1c22400.i2s: Entered sun4i_dai_probe
  2. [ 4420.217395] sun4i-dai 1c22400.i2s: probe 1
  3. [ 4420.217670] test printk
  4. [ 4420.217678] sun4i-dai 1c22400.i2s: probe return 0
  5.  
  6. sun4i_dai_probe function:
  7.  
  8. ret = snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
  9. if (ret) {
  10. dev_err(&pdev->dev, "Could not register PCM\n");
  11. goto err_disable_clk;
  12. }
  13.  
  14. printk("test printk\n");
  15. dev_dbg(&pdev->dev, "probe return 0\n");
  16. return 0;
  17.  
  18. err_disable_clk:
  19. clk_disable_unprepare(sdai->bus_clk);
  20. return ret;
  21.  
  22. static int sun4i_dai_dai_probe(struct snd_soc_dai *dai)
  23. {
  24. struct sun4i_dai *sdai = snd_soc_dai_get_drvdata(dai);
  25.  
  26. /* Enable the whole hardware block */
  27. regmap_write(sdai->regmap, SUN4I_DAI_CTRL_REG,
  28. SUN4I_DAI_CTRL_GL_EN);
  29.  
  30. snd_soc_dai_init_dma_data(dai, &sdai->playback_dma_data, NULL);
  31.  
  32. snd_soc_dai_set_drvdata(dai, sdai);
  33.  
  34. printk("%s +%d\n", __func__, __LINE__); // this doesn't get called !!!!!
  35.  
  36. return 0;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement