铜锣湾有什么好玩的| 安全感是什么意思| 自强不息的息是什么意思| 蚧壳虫用什么药| 禾字五行属什么的| 锁舌是什么| 喘不上气挂什么科| 吃什么补气血效果最好| 绿豆不能跟什么一起吃| 大战三百回合是什么意思| 办狗证需要什么资料| 月经黑红色是什么原因| 便秘什么原因| 腰肌劳损什么症状| 糜烂性胃炎可以吃什么蔬菜| 什么是升华| 婴儿黄疸高有什么影响| 啪啪是什么意思| honor是什么牌子手机| 肺肿瘤吃什么好| 冰箱发烫是什么原因| 编者按是什么意思| 入睡难一般是什么原因造成的| 福州立冬吃什么| cdfi是什么意思| 1022是什么星座| 肺动脉流的是什么血| 什么动物冬眠| 刷脂是什么意思| 儿童肚子痛挂什么科| 做什么生意挣钱| 肺静脉流的是什么血| 掉头发多是什么原因| 挚友是什么意思| 谷丙转氨酶高吃什么药可以降下来| 心脏支架不能吃什么| 血糖高忌什么食物| 威海的海是什么海| 爸爸的爷爷叫什么| 吃什么血脂降的最快| 为什么会有痣| ch什么意思| 月经来黑色是什么原因| 每年什么时候最热| 前什么后仰| 泡黄芪水喝有什么好处| 脸上肉跳动是什么原因| 包含是什么意思| 皮粉色是什么颜色| 心脏上有个小洞是什么病| 不堪一击是什么意思| 减少什么| 职业年金什么时候领取| 脚底抽筋是什么原因引起的| 理数是什么| 哺乳期头疼可以吃什么药| 慢性胰腺炎吃什么药效果最好| 如家是什么内涵| 长个子需要补充什么| 一什么露珠| 黑脸代表什么| 肺结核吃什么食物好| 筋膜炎吃什么药| 什么材料| 87年是什么年| 心机是什么意思| 什么脸型最好看| 枕大神经痛吃什么药| 画蛇添足告诉我们什么道理| c5是什么意思| 胃酸吃点什么药| 米线用什么做的| 白花花的什么| 结婚下大雨是什么兆头| 肘关节发黑是什么原因| 做深蹲有什么好处| 9月14号是什么星座| 房早有什么危害| 毒唯什么意思| 西装裤配什么上衣| 阴盛格阳是什么意思| 碱性磷酸酶偏高说明什么问题| 黄埔军校现在是什么学校| 已佚是什么意思| 口腔溃疡挂什么科| 跖疣是什么| 五指毛桃有什么用| lucy是什么意思| 右肺上叶肺大泡是什么意思| 体检需要注意什么| 中华田园犬为什么禁养| 宫商角徵羽是什么意思| edenbo是什么牌子| tg是什么| 信女是什么意思| 薪字五行属什么| 乳腺增生样改变是什么意思| logo中文是什么意思| 为什么月经老是提前| 夏天什么颜色最防晒| 射手座的幸运色是什么颜色| 血压低什么原因| 为什么会长闭口粉刺| 阳瘘的最佳治疗方法是什么| hpv长什么样| 颈动脉硬化有什么症状| 口腔医学和口腔医学技术有什么区别| 三点水的字有什么| 蓝色的小药丸是什么药| 晚睡早起是什么原因| 维生素b吃多了有什么副作用| 黄体破裂是什么| 福尔马林是什么味道| 人授和试管有什么区别| 有机可乘是什么意思| 智齿肿痛吃什么药| 恍然大悟是什么意思| 4b橡皮和2b橡皮有什么区别| 耳朵疼吃什么消炎药| 维生素什么牌子好| 观音菩萨是保佑什么的| 双鱼女和什么座最配对| 琼字代表什么生肖| 狂风暴雨是什么生肖| 五三年属什么生肖| 昔字五行属什么| 张飞穿针歇后语下一句是什么| HPV高危亚型52阳性什么意思| 老是掉头发什么原因| 脾虚的人有什么症状| 处女膜是什么样的| 人死后为什么要盖住脸| 血液生化检查能看出什么病| 偶像包袱是什么意思| 肿瘤是什么病严重吗| h家是什么牌子| 227是什么意思| 梦见被蛇追着咬是什么意思| 上嘴唇发黑是什么原因| 害怕什么| 运单号是什么| 电灯是什么时候发明的| 引力的本质是什么| 真谛是什么意思| 相火是什么意思| 未见血流信号是什么意思| 众什么意思| 干咳是什么原因引起的| 橄榄菜长什么样子图片| 补充电解质喝什么水| vae是什么意思| 明朝前面是什么朝代| 手指头红是什么原因| 容易出汗什么原因| 为什么叫印度阿三| 聊胜于无什么意思| 鱼的五行属什么| 经期吃什么好| 梦见捡硬币是什么预兆| 内瘘是什么意思| 水牛吃什么| 古驰属于什么档次| 什么的长江| 泪囊炎用什么眼药水| 为什么端午节要吃粽子| 垂死病中惊坐起什么意思| 气血不足是什么引起的| 20年是什么婚| 手掌纹路多且杂乱是为什么| 女生剪什么短发好看| 为什么兔子的眼睛是红色的| 呵护是什么意思| 家里为什么有隐翅虫| 刷酸是什么| 旗舰是什么意思| 为什么有钱人不去植发| 桦树茸有什么功效| 肝右叶低密度灶是什么意思| 神经外科和神经内科有什么区别| 升白针叫什么名字| 总胆汁酸高是什么原因| 中暑喝什么好| 胰腺在什么位置| 什么是卫星| 损伤是什么意思| 三七粉什么时间吃最好| 小学什么时候期末考试| 小孩便秘吃什么最管用| 纳财适合做什么| 名不见经传是什么意思| 晚上难入睡是什么原因| 什么药能治阳痿早泄| 备孕需要做些什么准备| 错综复杂是什么意思| 小候鸟是什么意思| 鸭子为什么会游泳| 小孩睡觉出汗多是什么原因| 洋葱和什么相克| 眼睛酸疼是什么原因| 孕妇喝咖啡有什么危害| 两个火念什么| 什么叫认知| 为的笔顺是什么| 健康管理是什么专业| 糗事是什么意思| 138是什么意思啊| 办理住院手续需要带什么证件| 为什么智齿老是发炎| 早泄有什么办法| 水猴子是什么| 香奈儿是什么牌子| 角质是什么意思| 似乎的近义词是什么| 三个火字读什么| 手指甲上有竖纹是什么原因| 白羊座是什么性格| 3岁小孩不会说话是什么原因| 1977年属蛇是什么命| 舌头起泡吃什么药| 咽喉炎用什么药| 甲状腺结节吃什么药| 板栗什么时候成熟| 女生吃避孕药有什么副作用| 承五行属性是什么| 12345是什么投诉电话| 硫酸羟氯喹片是治什么病| 口腔溃疡可以吃什么药| 二次元文化是什么意思| 被蚂蚁咬了怎么止痒消肿要擦什么药| 夏占生女是什么意思| 头发软是什么原因| 人参归脾丸适合什么人吃| 起酥油是什么东西| 珍珠疹是什么原因引起的| 口干舌燥是什么病的前兆| 肾炎是什么症状| 为什么喝牛奶会拉肚子| 桑蚕丝被有什么好处| 一个草字头一个氏念什么| 大校军衔相当于什么官| 支原体肺炎用什么药| 蝗虫吃什么| 对口高考班是什么意思| 1983年属什么生肖| 卡布奇诺是什么咖啡| sk是什么牌子| 老公梦见老婆出轨是什么意思| ab型血为什么叫贵族血| 闰6月是什么意思| 掌眼什么意思| 菩提有什么寓意| below是什么意思| palace是什么牌子| 甜菊糖苷是什么| 铅是什么颜色| 吃避孕药有什么副作用| 什么节日吃饺子| 病退需要什么条件| 摸头是什么意思| 脂肪肝是什么病| 什么是理科什么是文科| 黄体期什么意思| 什么食物养胃又治胃病| 榴莲为什么那么贵| 百度

白百何被曝停工作 盘点陈羽凡等娱乐圈绿帽男

This version (19 Jan 2018 09:22) was approved by Alexandru Ardelean.The Previously approved version (08 Jun 2016 18:15) is available.Diff

HDL AXI SPIDF Linux Driver

Supported Devices

  • HDL AXI SPDIF

Source Code

Status

Source Mainlined?
git Yes

Files

Function File
driver sound/soc/adi/axi-spdif.c

Example device initialization

百度 然而,猴子试验事件的再次将大众推向舆论的风口浪尖。

The AXI SPDIF driver is a platform driver and can currently only be instantiated via device tree.

Required devicetree properties:

  • compatible: Should always be “adi,axi-spdif-tx-1.00.a”
  • reg: Base address and register area size
  • clock-frequency: Clock frequency applied at the spdif_data_clk pin in HZ

Example:

    axi_spdif_tx_0: axi-spdif-tx@75c00000 {
        compatible = "adi,axi-spdif-tx-1.00.a";
        reg = <0x75c00000 0x1000>;
        clock-frequency = <12288000>;
    };

DAI configuration

The driver will register one CPU-DAI named after the device itself.

Supported DAI formats

Name Supported by driver Description
SND_SOC_DAIFMT_I2S no I2S mode
SND_SOC_DAIFMT_RIGHT_J no Right Justified mode
SND_SOC_DAIFMT_LEFT_J no Left Justified mode
SND_SOC_DAIFMT_DSP_A no data MSB after FRM LRC
SND_SOC_DAIFMT_DSP_B no data MSB during FRM LRC
SND_SOC_DAIFMT_AC97 no AC97 mode
SND_SOC_DAIFMT_PDM no Pulse density modulation
SND_SOC_DAIFMT_SPDIF yes SPDIF mode
SND_SOC_DAIFMT_NB_NF yes Normal bit- and frameclock
SND_SOC_DAIFMT_NB_IF no Normal bitclock, inverted frameclock
SND_SOC_DAIFMT_IB_NF no Inverted frameclock, normal bitclock
SND_SOC_DAIFMT_IB_IF no Inverted bit- and frameclock
SND_SOC_DAIFMT_CBM_CFM no Codec bit- and frameclock master
SND_SOC_DAIFMT_CBS_CFM no Codec bitclock slave, frameclock master
SND_SOC_DAIFMT_CBM_CFS no Codec bitclock master, frameclock slave
SND_SOC_DAIFMT_CBS_CFS yes Codec bit- and frameclock slave

Example DAI configuration

static struct snd_soc_dai_link hdmi_dai_link = {
	.name = "HDMI",
	.stream_name = "HDMI",
	.cpu_dai_name = "75c00000.axi-spdif-tx",
	.platform_name = "xilinx_pcm_audio.2",
	.codec_name = "adv7511.0-0039",
	.codec_dai_name = "adv7511",
	.dai_fmt = SND_SOC_DAIFMT_SPDIF |
			SND_SOC_DAIFMT_NB_NF |
			SND_SOC_DAIFMT_CBS_CFS,
};
 
static struct snd_soc_card hdmi_card = {
	.name = "HDMI monitor",
	.owner = THIS_MODULE,
	.dai_link = &hdmi_dai_link,
	.num_links = 1,
};

ADV7511 HDMI + SPDIF board driver

The HDL AXI SPDIF driver is currently used in conjunction with the ADV7511 HDMI transmitter on various FPGA platforms. For these platforms there exist a ASoC board driver which provides the necessary information on how both device are interconnected, so that a ALSA sound card can be instantiated.

Source

Status

Source Mainlined?
In progress In progress

Files

Function File
driver sound/soc/adi/adv7511_hdmi.c

Kernel configuration

Enable ALSA SoC evaluation board driver:

Device Drivers  --->
<*> Sound card support  --->
<*>   Advanced Linux Sound Architecture  --->
<*>     ALSA for SoC audio support  --->
<*>       SoC Audio for Xilinx based boards
<*>       ADV7511 HDMI transmitter sound support

Example device initialization

The ADV7511 HDMI sound board driver is a platform driver and can currently only be instantiated via device tree.

Required devicetree properties:

  • compatible: Should always be “adv7511-hdmi-snd”
  • cpu-dai: Phandle to the SPDIF device devicetree entry
  • pcm: Phandle to the PCM device devicetree entry

Example:

    axi_dma_0: axidma@40400000 {
        #address-cells = <1>;
        #size-cells = <1>;
        #dma-cells = <1>;
        compatible = "xlnx,axi-dma";
        reg = <0x40400000 0x1000>;
        xlnx,sg-include-stscntrl-strm = <0x0>;
        dma-channel@40400000 {
            compatible = "xlnx,axi-dma-mm2s-channel";
            interrupts = <0 58 0x4>;
            xlnx,datawidth = <0x20>;
            xlnx,include-dre = <0x0>;
        };
    };

    xilinx_pcm_audio: xilinx_pcm_audio {
        compatible = "xilinx-pcm-audio";
        #size-cells = <0>;
        #address-cells = <1>;

        playback: stream@0 {
            reg = <0>;
            dma-request = <&axi_dma_0 0>;
        };
    };

    axi_spdif_tx_0: axi-spdif-tx@0x75c00000 {
        compatible = "adi,axi-spdif-tx-1.00.a";
        reg = <0x75c00000 0x1000>;
        clock-frequency = <12288000>;
    };

    adv7511_hdmi_snd: adv7511_hdmi_snd {
        compatible = "adv7511-hdmi-snd";
        cpu-dai = <&axi_spdif_tx_0>;
        pcm = <&xilinx_pcm_audio>;
    };

Driver testing

Make sure the sound card is properly instantiated.

This specifies any shell prompt running on the target

root:/> aplay -l
card 0: monitor [HDMI monitor], device 0: HDMI adv7511-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

To test audio playback you can use the speaker-test utility, which allows to playback several different test patterns. For a extensive description on the speaker-test utility and the different options it supports please refer to the speaker-test man page.

This specifies any shell prompt running on the target

root:/> speaker-test -c 2
speaker-test 1.0.24.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 512 to 2097152
Period size range from 256 to 262143
Requested buffer time 20000 us
Periods = 4
was set period_size = 320
was set buffer_size = 960
 0 - Front Left
 1 - Front Right
....

To test audio record you can use the arecord utility. arecord will record the incoming audio signal and write it to a wav file.

This specifies any shell prompt running on the target

root:/> arecord -f S16 -r 48000 -c 2 > test.wav
...

To playback a wav file you can use the aplay utility. You can also create a audio loop-back by sending the output of arecord to aplay. This will send the incoming audio stream back via the outgoing audio stream.

This specifies any shell prompt running on the target

root:/> arecord -f S16 -r 48000 -c 2 | aplay
...

For more information on the the aplay and arecord utilities please refer to the aplay and arecord man page.

More information

resources/tools-software/linux-drivers/sound/hdl-axi-spidf.txt · Last modified: 19 Jan 2018 09:22 by Alexandru Ardelean

? 
平肝什么意思 102是什么意思 韭菜炒什么好吃 保花保果用什么药最好 口干舌燥口苦是什么原因引起的
生殖器疱疹是什么原因引起的 吃什么能让子宫瘤变小 贤上腺瘤是什么意思 囡是什么意思 肠道紊乱有什么症状
燕窝适合什么人吃 牙齿变黑是什么原因 28岁属相是什么生肖 amp是什么 sp什么意思
阳刚之气是什么意思 芸豆是什么豆 低血糖不能吃什么食物 大拇指疼痛什么原因引起的 红细胞是什么
全麻对身体有什么危害hcv7jop6ns2r.cn 正餐是什么意思hcv7jop5ns4r.cn 生姜能治什么病hcv7jop6ns6r.cn 什么叫快闪hcv8jop6ns2r.cn 脉冲是什么hcv9jop0ns3r.cn
lsa是什么意思hcv9jop7ns4r.cn 水煮肉片用什么肉beikeqingting.com 月经提前来是什么原因hcv8jop8ns9r.cn 化疗期间不能吃什么hcv9jop8ns0r.cn 字母哥什么位置creativexi.com
活血化瘀吃什么hcv8jop0ns6r.cn 山楂炖肉起什么作用hcv8jop1ns6r.cn 什么海翻江hcv8jop4ns8r.cn 低头族是什么意思hcv9jop7ns5r.cn 鬼市是什么意思hcv9jop3ns0r.cn
什么程度下病危通知书chuanglingweilai.com 监视居住是什么意思hcv8jop9ns3r.cn 熬夜对心脏有什么影响hcv7jop9ns1r.cn 耳朵一直痒是什么原因hcv8jop3ns7r.cn 心肝火旺吃什么中成药baiqunet.com
百度