omap-hdmi-card.rar

  • PUDN用户
    了解作者
  • Unix_Linux
    开发工具
  • 1KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 1
    下载次数
  • 2014-09-07 00:05
    上传日期
OMAP ALSA SoC machine driver for TI OMAP HDMI.
omap-hdmi-card.rar
  • omap-hdmi-card.c
    1.4KB
内容介绍
/* * OMAP ALSA SoC machine driver for TI OMAP HDMI */ #include <linux/module.h> #include <sound/pcm.h> #include <sound/soc.h> #include <asm/mach-types.h rel='nofollow' onclick='return false;'> #include <video/omapdss.h> #define DRV_NAME "omap-hdmi-audio" static struct snd_soc_dai_link omap_hdmi_dai = { .name = "HDMI", .stream_name = "HDMI", .cpu_dai_name = "omap-hdmi-audio-dai", .platform_name = "omap-pcm-audio", .codec_name = "hdmi-audio-codec", .codec_dai_name = "hdmi-hifi", }; static struct snd_soc_card snd_soc_omap_hdmi = { .name = "OMAPHDMI", .owner = THIS_MODULE, .dai_link = &omap_hdmi_dai, .num_links = 1, }; static int omap_hdmi_probe(struct platform_device *pdev) { struct snd_soc_card *card = &snd_soc_omap_hdmi; int ret; card->dev = &pdev->dev; ret = snd_soc_register_card(card); if (ret) { dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); card->dev = NULL; return ret; } return 0; } static int omap_hdmi_remove(struct platform_device *pdev) { struct snd_soc_card *card = platform_get_drvdata(pdev); snd_soc_unregister_card(card); card->dev = NULL; return 0; } static struct platform_driver omap_hdmi_driver = { .driver = { .name = DRV_NAME, .owner = THIS_MODULE, }, .probe = omap_hdmi_probe, .remove = omap_hdmi_remove, }; module_platform_driver(omap_hdmi_driver); MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); MODULE_DESCRIPTION("OMAP HDMI machine ASoC driver"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:" DRV_NAME);
评论
    相关推荐
    • OMAP4460.zip
      omap4460很不错的资料 omap4460很不错的资料 希望大家好好学习
    • hdmi.zip
      LINUX系统上的HDMI接口DSS TI的OMAP4系列处理器的驱动程序。欢迎指教!
    • hdmi_omap4_panel.zip
      LINUX系统里做的TI OMAP4处理器的HDMI库文件。欢迎使用!
    • omap-hdmi-audio.rar
      hdmi-audio.c OMAP4+ DSS HDMI audio support library.
    • _HDMI.rar
      实现linux内核函数HDMI
    • hdmi5.rar
      HDMI driver for OMAP5 for Linux v2.13.6.
    • hdmi_common.rar
      Driver for Silicon Labs C8051F300 microcontroller.
    • omap-hdmi.rar
      Definitions for OMAP ALSA SoC DAI driver for HDMI audio on OMAP4 processors.
    • hdmi_omap4_panel.rar
      LINUX系统里做的TI OMAP4处理器的HDMI库文件。欢迎使用!
    • qpopper2.53.tar.Z
      pop3 server