Skip to content

Topology: Need to manage multiple configurations per DAI #697

Closed

Description

@plbossart

We need the ability to expose multiple configurations per DAI in the topology file, and means for the driver to pass the relevant configuration over IPC to the firmware.
One example is support for 8 or 16 kHz for a Bluetooth HFP link.

this was filed initially as thesofproject/soft#11. Making sure this is tracked at the kernel level as well.

Activity

  1. fredoh9 commented on Mar 22, 2019

    @fredoh9
    Collaborator

    Interesting issue. I'm not quite sure what change in kernel driver is required at this moment, but I will review at full stacks, driver/topology files/firmware. I will come up with the solution.

  2. lgirdwood commented on Mar 22, 2019

    @lgirdwood
    Member

    @fredoh9 ASoC topology supports this already but is likely untested. You will need too

    Driver

    1. Write a simple topology with one DAI that has 2 or more configs.
    2. Make sure the alsatplg compiler adds both configs in the binary file.
    3. make sure sound/soc/topology.c parses both DAI configs.
    4. Make sure sound/soc/sof/topology.c parses both configs and send IPC for both configs.

    Firmware

    1. FW should receive both configs and add to dai.c (only one supported today, we can have a list of configs)
    2. By default FW will use config 0. @keyonjie is working on logic to select the best config based on stream params and topology. We may also need to add a manual config selection method too.
  3. fredoh9 commented on Mar 23, 2019

    @fredoh9
    Collaborator

    @lgirdwood wow, thank you for detailed guideline. Will work on it.

  4. wenqingfu commented on Mar 28, 2019

    @wenqingfu

    @fredoh9 #758 may close this ticket

  5. dragosht commented on Mar 29, 2019

    @dragosht

    @wenqingfu Actually #758 simply acknowledges the presence of multiple configs but adds an additional check for the assigned default hardware configuration and chooses that one to be send to the firmware. I think it is more work involved with this issues than just that. And based on @lgirdwood 's notes above, all the hardware configs should eventually be sent to the firmware via IPC, but first the firmware would need some reworks to allow handling multiple configurations on the same DAI.

  6. plbossart commented on Jun 16, 2021

    @plbossart
    MemberAuthor

    we have a multi-configuration support for SSP, let's close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions