Firefly开源社区

打印 上一主题 下一主题

3288 通过i2s连接dsp主板无法通讯

56

积分

0

威望

0

贡献

技术小白

积分
56

3288 通过i2s连接dsp主板无法通讯

发表于 2017-1-6 09:46:35      浏览:6846 | 回复:1        打印      只看该作者   [复制链接] 楼主
您好,想咨询一下。我们现在有自己的一块dsp的主板,想通过rk3288的i2s接口与dsp主板
进行通讯。现已仿照es8323codec驱动,写了一份驱动,由于没有像codec那样的寄存器控制,
所以把寄存器相关的操作都屏蔽掉了。现在的加载驱动后,数据无法发送和接收。
请问下像这种虚拟的codec,驱动编写的思路。
回复

使用道具 举报

56

积分

0

威望

0

贡献

技术小白

积分
56
发表于 2017-1-6 09:47:38        只看该作者  沙发
shell@rk3288:/ $ logcat -c
shell@rk3288:/ $ [   74.379762] rockchip-i2s ff890000.rockchip-i2s: rockchip_i2s_runtime_resume
[   74.379802] rk_dsp-Enter::dsp_pcm_startup----653  dsp->sysclk=11289600
[   74.379878] soc_pcm-**********soc_pcm: sound/soc/soc-pcm.c-soc_pcm_hw_params-528  ops->hw_params
[   74.379891] rk_dsp-Enter::rk29_hw_params--44: dai_fmt=4097-0x1001
[   74.379901] soc_core.c-sound/soc/soc-core.c-snd_soc_dai_set_fmt-3495
[   74.379901]
[   74.379915] soc_core.c-sound/soc/soc-core.c-snd_soc_dai_set_fmt-3495
[   74.379915]
[   74.379930] rk_i2s-rockchip_i2s_set_fmt: fmt = 4097--0x1001
[   74.379930]
[   74.379946] rk_i2s-**********Codec is master: sound/soc/rockchip/rk_i2s.c-rockchip_i2s_set_fmt-227 val = 0x8000000
[   74.379968] rk_i2s-rockchip_i2s_set_fmt: I2S_CKR = 134217728--0x8000000
[   74.379968]
[   74.379979] rk_i2s-rockchip_i2s_set_fmt: I2S_TXCR = 0--0x0
[   74.379979]
[   74.379993] rk_i2s-rockchip_i2s_set_fmt: I2S_RXCR = 0--0x0
[   74.379993]
[   74.380004] rk_dsp-Enter:rk29_hw_params, 78, rate=44100
[   74.380011] rk_dsp-Enter:rk29_hw_params, 86, LRCK=64
[   74.380019] sound/soc/soc-pcm.c-soc_pcm_hw_params-538
[   74.380019]
[   74.380029] sound/soc/soc-pcm.c-soc_pcm_hw_params-548
[   74.380029]
[   74.380042] rockchip-i2s ff890000.rockchip-i2s: rockchip_i2s_hw_params: 291
[   74.380053] rk_i2s-rockchip_i2s_hw_params: params_format(params) = 0x2                    params_channels(params) = 0x2
[   74.380053]
[   74.380069] rk_i2s-rockchip_i2s_hw_params: I2S_RXCR & I2S_TXCR = 15--0xF
[   74.380069]
[   74.380084] rk_i2s-rockchip_i2s_hw_params: I2S_DMACR : I2S_DMACR_TDL(16)=0x10 & I2S_DMACR_RDL(16) = 0xF0000
[   74.380084]
[   74.380118] rk_i2s-rockchip_i2s_hw_params: params val = 0xF
[   74.380118]
[   74.380129] sound/soc/soc-pcm.c-soc_pcm_hw_params-558
[   74.380129]
[   74.380142] sound/core/pcm_native.c-snd_pcm_hw_params-426
[   74.380142]
[   74.380179] pcm_lib-include/sound/pcm.h-594: substream->runtime->status->state=1 , substream->stream=0
[   74.380231] pcm_lib-sound/core/pcm_native.c-1396 1.res = 0
[   74.380243] sound/core/pcm_native.c-snd_pcm_pre_prepare-1343
[   74.380243]
[   74.380256] pcm_lib-include/sound/pcm.h-594: substream->runtime->status->state=1 , substream->stream=0
[   74.380398] pcm_lib-include/sound/pcm.h-594: substream->runtime->status->state=1 , substream->stream=0
[   74.380411] pcm_lib-sound/core/pcm_native.c-785 res=0
[   74.380423] pcm_lib-0.sound/core/pcm_native.c-snd_pcm_action_nonatomic-855 state=131074 res=0
[   74.380435] pcm_lib-sound/core/pcm_native.c-1399 2.res = 0 f_flags= 131074(0x20002)
[   74.380452] pcm_lib-name:RK_dsp:snd_pcm_lib_write_transfer-1979  
[   74.380452]
[   74.380471] pcm_lib-write date:0 = 0x0
[   74.380478] pcm_lib-write date:1 = 0x0
[   74.380485] pcm_lib-write date:2 = 0x0
[   74.380492] pcm_lib-write date:3 = 0x0
[   74.380501] pcm_lib-write date:4 = 0x0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表