-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: amlogic: add radxa-zero-i2s-hifiberry-dac #389
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对比一下两个在系统内的设备树:/proc/device-tree
dtc可以反编译这个目录结构,然后diff看看
结构是一样的 |
数据一样那序号应该也一样才对。你看看具体哪个部分放到overlay会导致顺序不对 |
新增的dai-link导致的顺序不对 |
有试过建一个新的声卡节点么 |
simple-audio-card试过不行,应该是因为不是标准i2s控制器节点,新建amlogic,axg-sound-card的话需要删除自带声卡的一些前端daplink,否则创建失败,我就没接着走了 |
是说用同一个驱动 |
amlogic,axg-sound-card就是同一个驱动 |
我的意思是新建一个单独的节点,compatible = amlogic,axg-sound-card,不用simple-audio-card |
前面说的“新建amlogic,axg-sound-card的话需要删除自带声卡的一些前端daplink,否则创建失败,我就没接着走了“ |
amlogic,axg-sound-card 需要类似frddr*这样的前端dailink配合带codec的后端dailink,所以新建一个声卡要删除自带的amlogic,axg-sound-card部分前端dailink来给新加的amlogic,axg-sound-card用 |
这样是最小实现:
|
有个新发现是可以用 |
alsa config可能要单独定义两个输出? |
已经找到用alsamixer将i2s和hdmi隔离为两个设备的方法了!需要重写一下libreelec的udev规则,可能改动有点大,是重新打包还是写个教程? |
你先大致说一下到底要怎么改 |
设备树的改动已提交,alsa udev那边我再看看怎么改比较好 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那个序号的问题还存在么?
还在的 |
感觉只能disable掉原来的sound节点新建一个才能解决 |
也可以试试先干掉alsa-utils看看是不是这个脚本导致的?不过可能不太是它的原因 |
干掉了libreelec-alsa-utils还是index一样还是不是从0开始的,alsa-utils干掉就没有命令看不了设备列表了 |
还发现以overlay形式会让pipewire探测失败,太奇怪了这 |
目前除了发现无法隔离hdmi单独管理外,当相同的内容写成overlay时,子设备索引从2开始,写入设备本身的设备树则不会: