Firefly开源社区

打印 上一主题 下一主题

[Linux] i2s_8ch_0: i2s 信号,8进8出配置

5

积分

0

威望

0

贡献

吃瓜的群众

积分
5

i2s_8ch_0: i2s 信号,8进8出配置

发表于 2023-9-25 20:58:42      浏览:2805 | 回复:0        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rk3308_v1.5.0a
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: /dts-v1/; #include "rk3308b-firefly.dtsi" / { model = "Firefly ROC-RK3308B-CC-PLUS analog mic board"; compatible = "firefly,rk3308-roc-cc-plus-amic_emmc", "firefly,rk3308", "rockchip,rk3308"; chosen { bootargs = "earlycon=uart8250,mmio32,0xff0e0000 swiotlb=1 console=ttyFIQ0 root=PARTLABEL=rootfs rootfstype=ext4 rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1 overlayroot=device:dev=PARTLABEL=userdata,fstype=ext4,mkfs=1 coherent_pool=1m systemd.gpt_auto=0 cgroup_enable=memory swapaccount=1"; }; pdm_i2s_dais: pdm-i2s-dais { status = "disabled"; compatible = "rockchip,rk3308-multi-dais", "rockchip,multi-dais"; dais = <&pdm_8ch>, <&i2s_8ch_2>; capture,channel-mapping = <6 2>; playback,channel-mapping = <0 2>; bitclock-inversion = <1 0>; }; pdm-mic-array { status = "disabled"; compatible = "simple-audio-card"; simple-audio-card,name = "rockchip,pdm-mic-array"; simple-audio-card,cpu { sound-dai = <&pdm_8ch>; }; simple-audio-card,codec { sound-dai = <&dummy_codec>; }; }; i2s-dmic-array { status = "okay"; compatible = "simple-audio-card"; simple-audio-card,format = "i2s"; simple-audio-card,name = "rockchip,i2s-dmic-array"; simple-audio-card,mclk-fs = <256>; simple-audio-card,cpu { sound-dai = <&i2s_8ch_0>; }; simple-audio-card,codec { sound-dai = <&dummy_codec>; }; }; vad-sound { status = "disabled"; compatible = "rockchip,multicodecs-card"; rockchip,card-name = "rockchip,rk3308-vad"; rockchip,cpu = <&pdm_i2s_dais>; rockchip,codec = <&acodec>, <&vad>; }; vad_acodec_sound: vad-acodec-sound { status = "okay"; compatible = "rockchip,multicodecs-card"; rockchip,card-name = "rockchip,rk3308b-acodec"; rockchip,codec-hp-det; rockchip,mclk-fs = <256>; rockchip,cpu = <&i2s_8ch_2>; rockchip,codec = <&acodec>, <&vad>; }; ir_rx { status = "okay"; compatible = "gpio-ir-receiver"; gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&ir_recv_pin>; }; ir_tx { status = "okay"; compatible = "pwm-ir-tx"; pwms = <&pwm5 0 25000 0>; }; leds { status = "okay"; compatible = "gpio-leds"; power { label = "firefly:red:power"; linux,default-trigger = "ir-power-click"; default-state = "on"; gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; }; user { label = "firefly:blue:user"; linux,default-trigger = "ir-user-click"; default-state = "off"; gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>; }; }; }; &i2s_8ch_0 { status = "okay"; rockchip,no-dmaengine; #sound-dai-cells = <0>; };
  • Log日志: log.txt
问题描述及复现步骤:
我想用i2s_8ch_0做数字音频同步录放,按照文档改了设备树,但是感觉文档和代码没对上。
文档是:
Rockchip Audio 开发指南
文件标识:RK-KF-YF-145
发布版本:V1.5.0
日期:2021-01-20
文件密级:□绝密 □秘密 □内部资料 ■公开


log.txt

36.6 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

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

本版积分规则

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