(求教)BC5芯片使用ADK2.5.1怎么设置SPDIF输出?
请教下各位大师,我想用BC57e芯片输出SPDIF信号,应该怎么配置?在datasheet中有以下的描述:1.pcm和I2s,spdif互斥使用硬件上的pcm组接口
2.硬件连线如下:
原文:
10.2.11 IEC 60958 Interface
The IEC 60958 interface is a digital audio interface that uses bi-phase coding to minimise the DC content of the
transmitted signal and allows the receiver to decode the clock information from the transmitted signal. The IEC 60958
specification is based on the 2 industry standards:
■ AES/EBU
■ Sony and Philips interface specification SPDIF
The interface is compatible with IEC 60958-1, IEC 60958-3 and IEC 60958-4.
The SPDIF interface signals are SPDIF_IN and SPDIF_OUT and are shared on the PCM interface pins. The input
and output stages of the SPDIF pins can interface to:
■ A 75Ω coaxial cable with an RCA connector, see Figure 10.4
■ An optical link that uses Toslink optical components, see Figure 10.5.
(反正就是pcm_out一条线作为输出)
我想知道软件该怎么设置,资料也少,也都没提到这部分该怎么设置,psconfig中也没有相应的选项和事件。
谢谢大家的帮助。
这个我搞过,能输出的 大哥,给个方向谢谢,我该设置key值还是改代码?:):) hg1700 发表于 2014-6-9 19:11
这个我搞过,能输出的
高手给个方向指点一下,谢谢。:handshake 本帖最后由 GeorgeChang 于 2014-6-10 00:06 编辑
wago2008 发表于 2014-6-9 20:27
高手给个方向指点一下,谢谢。
先說一下這部份,我沒使用過,但我查了一下library,應該可行~~
但要改的地方很多
1. ...src\lib\csr_a2dp_decoder_common_plugin
2. ..src\lib\csr_a2dp_encoder_common_plugin
這兩個library一定要改,預設是用internal DAC 也就是"AUDIO_HARDWARE_CODEC"
要改成"AUDIO_HARDWARE_SPDIF"
當然你要用參數來轉換DAC or SPDIF 也可行~~自行創意。
然後也是用到CVC or voice prompt or sound tone 都要改,才能output SPDIF
再來就是要設定SPDIF 格式,這部份比較簡單,看一下...tools/include/firmware/app/stream/stream_if.h
裡面的參數!!
最後在rebuild VM and DSP...
以上是我的想法~你可以參考一下I2S輸出文件
============================
以上是手動麻煩的作法,但可以更了解CSR ADK
也是不想這麼麻煩,就等板主release ADK3.0 就不用改code了,直接用Sink Configuration Tool 設定!!
以上~~沒想到我打這麼多字...科科~
好好学习天天向上:) GeorgeChang 发表于 2014-6-10 00:03
先說一下這部份,我沒使用過,但我查了一下library,應該可行~~
但要改的地方很多
1. ...src\lib\csr_a ...
谢谢你耐心的指教,按照你的方法成功输出了spdif,但是我发现一个硬伤,在切换到spdif输出时,由于spdif最低支持32k采样,8k的铃声和通话语音无法通过spdif输出,可能这是格式所限吧。谢谢你的帮助。 学习中。。。。。。 出SPDIF干啥用呀,还要外加解码 我也想想做SPDIF输出,期待高人指点
页:
[1]
2