[Sound-open-firmware] Multiple configurations per DAI in topology
Hello All,
Is there a way to create multiple configurations for an SSP DAI in a topology file? I see there's an open issue on the soft repo for that ( https://github.com/thesofproject/soft/issues/11 ), but soft is now archived. Issue #630: https://github.com/thesofproject/sof/issues/630 seems somewhat similar, but I'm not sure if that's the same thing.
Thanks, Dragoș
Hi,
Is there a way to create multiple configurations for an SSP DAI in a topology file? I see there's an open issue on the soft repo for that ( https://github.com/thesofproject/soft/issues/11 ), but soft is now archived. Issue #630: https://github.com/thesofproject/sof/issues/630 seems somewhat similar, but I'm not sure if that's the same thing.
Ah, thanks for reporting this.
There are two issues here: 1. we really want the topology to contain more than one configuration, and let the kernel pass the relevant one based on current usage so that the correct bclk, mclk etc are used. This is not supported currently. I just re-added this issue for the Linux kernel and topoplogy.
2. the PR 630 https://github.com/thesofproject/sof/issues/630 is about combining or splitting information between DAIs, or possibly from a single TDM DAI. This is more of a firmware logic part, not really something related to the configuration of the hardware registers controlling the interface.
Does this help? Regards -Pierre
Hi Pierre,
There are two issues here:
- we really want the topology to contain more than one configuration,
and let the kernel pass the relevant one based on current usage so that the correct bclk, mclk etc are used. This is not supported currently. I just re-added this issue for the Linux kernel and topoplogy.
- the PR 630 https://github.com/thesofproject/sof/issues/630 is about
combining or splitting information between DAIs, or possibly from a single TDM DAI. This is more of a firmware logic part, not really something related to the configuration of the hardware registers controlling the interface.
Does this help? Regards -Pierre
Yeah, that's what I wanted to find out. I've spent some time today looking a bit more throughout the firmware and drivers and it seems to me that the SSP configuration is being set up once when the DAI link is being created, am I right? And if I'm not mistaken, that's only happening when the topology is being processed by sending some IPC message from the driver.
Thanks, Dragoș
On Thu, 2019-03-07 at 18:02 +0200, Dragos Tarcatu wrote:
Hi Pierre,
There are two issues here:
- we really want the topology to contain more than one
configuration, and let the kernel pass the relevant one based on current usage so that the correct bclk, mclk etc are used. This is not supported currently. I just re-added this issue for the Linux kernel and topoplogy.
- the PR 630 https://github.com/thesofproject/sof/issues/630 is
about combining or splitting information between DAIs, or possibly from a single TDM DAI. This is more of a firmware logic part, not really something related to the configuration of the hardware registers controlling the interface.
Does this help? Regards -Pierre
Yeah, that's what I wanted to find out. I've spent some time today looking a bit more throughout the firmware and drivers and it seems to me that the SSP configuration is being set up once when the DAI link is being created, am I right? And if I'm not mistaken, that's only happening when the topology is being processed by sending some IPC message from the driver.
Hi Dragos, Yes, you are right about this. This happens at the time of topology parsing in the link_load() driver callback.
Thanks, Ranjani
Thanks, Dragoș
Sound-open-firmware mailing list Sound-open-firmware@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware
Hi Dragos,
We have two mode to configure SSP DAI in ASoC at the moment, fixup mode and dynamic mode, we are using fixup mode for SOF topology now, I believe what you want is actually dynamic mode, that is make configuration to SSP DAI at the hw_params() stage?
Thanks, ~Keyon
-----Original Message----- From: Sound-open-firmware [mailto:sound-open-firmware-bounces@alsa- project.org] On Behalf Of Dragos Tarcatu Sent: Wednesday, March 6, 2019 1:09 PM To: sound-open-firmware@alsa-project.org Subject: [Sound-open-firmware] Multiple configurations per DAI in topology
Hello All,
Is there a way to create multiple configurations for an SSP DAI in a topology file? I see there's an open issue on the soft repo for that ( https://github.com/thesofproject/soft/issues/11 ), but soft is now archived. Issue #630: https://github.com/thesofproject/sof/issues/630 seems somewhat similar, but I'm not sure if that's the same thing.
Thanks, Dragoș
Sound-open-firmware mailing list Sound-open-firmware@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware
participants (4)
-
Dragos Tarcatu
-
Jie, Yang
-
Pierre-Louis Bossart
-
Ranjani Sridharan