您好
客户目前使用两个 PCM6260、/proc/asound/pcm 和/proc/asound/cards 中显示了两个器件、但在固件的 bin 文件中使用 conf 开关时、无法应用第二个 pcm6260。 当使用 arecord 进行记录时、2-0049的 pcm6260的 profile_conf_id 仍为0
是否有任何需要调整的地方?
请参阅所附的屏幕截图






This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好
客户目前使用两个 PCM6260、/proc/asound/pcm 和/proc/asound/cards 中显示了两个器件、但在固件的 bin 文件中使用 conf 开关时、无法应用第二个 pcm6260。 当使用 arecord 进行记录时、2-0049的 pcm6260的 profile_conf_id 仍为0
是否有任何需要调整的地方?
请参阅所附的屏幕截图






您好,圣浩
根据 pcmdevice 驱动程序中的文件 ti、pcmdeve.yaml、客户将两个 reg addr 组合在同一节点中。

当前的 cat 声音如下
root@imx8mpevk:~# cat /proc/asound/pcm 00-00: 30c2000.SAI-pcmdevice-codec.2-0048-0 : 30c2000.SAI-pLEX device-codec.2-0048-0 : codec pcmdevice-codec.2-0048-0 : codec@~/proc/asound/cards
第二个芯片记录时、固件 bin 文件中的 PCMDEVICE 配置文件 ID 不会应用于第二个 pcm6260的内容。 我们的设计是、每个 PCM6260通过

如何让第二块芯片也能读取 firmware.bin 的内容?
感谢您的帮助
我们可以进行一次 conf-Call 吗? 让我给您发送邮件。
您可以按如下所示定义两个 pcm6260、没有必要在 dts 中定义两个 i2c pcmdevices
i2c {
/* example for two devices with interrupt support */
#address-cells = <1>;
#size-cells = <0>;
two: pcmdevice@48 {
compatible = "ti,pcm6260";
reg = <0x48>, /* primary-device */
<0x4b>; /* secondary-device */
#sound-dai-cells = <0>;
reset-gpios = < &gpio1 10 GPIO_ACTIVE_HIGH >;
interrupt-parent = <&gpio1>;
interrupts = <15>;
};
};
Then only one bin file with two pcm6260 register setting is enough for you.