Skip to content
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

Preparatory patches for NXP platforms transition to Zephyr native drivers #8859

Commits on Mar 1, 2024

  1. ipc3: host-page-table: Add native version for ipc_get_page_descriptors()

    Since the DMAC is configured in a somewhat different way in the
    native case vs the non-native case, add a native version of the
    ipc_get_page_descriptors() function and remove the Zephyr-specific
    functions from the non-native version of said function.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    5464664 View commit details
    Browse the repository at this point in the history
  2. audio: host-zephyr: Update DMA block configuration when re-configuring

    With every copy() operation, the source and destination addresses
    keep getting modified. As such, for each re-configuration performed
    during host_copy_one_shot(), the HOST DMAC needs to be made
    aware of these changes.
    
    This commit changes host_copy_one_shot() such that on each
    dma_config() call the DMAC driver receives the updated
    addresses and size.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    136e184 View commit details
    Browse the repository at this point in the history
  3. audio: host-zephyr: Set SRC/DEST addresses during host_common_params()

    Source and destination addresses cannot be NULL. As such,
    set them to the values found in the first element of
    hd->config's elem_array. This is fine to do because the host
    component uses only 1 block.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    987a59e View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. lib: dai: Add entry for NXP's SAI

    Since the Zephyr SAI driver is now enabled, add an entry in
    the zephyr_dev array, which will resolve to multiple
    "struct device *", one for each SAI node specified in the DTS.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    ad6bcbd View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. lib: dma: Add entries for i.MX93's EDMA and HOST DMAs

    Since the EDMA and HOST DMA nodes have been introduced to
    the i.MX93 overlay, add entries in the dma array which will
    create a struct dma for each of these DMACs.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    bc832ee View commit details
    Browse the repository at this point in the history
  2. audio: dai-zephyr: Allow dai_set_config() to work for NXP's SAI

    Since now there's a Zephyr driver for NXP's SAI, the dai_set_config()
    should be modified to also allow the configuration of the SAI.
    As such, this commit introduces a new case for NXP's SAI that does
    exactly that.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    0c666ed View commit details
    Browse the repository at this point in the history
  3. audio: dai-zephyr: Set source/destination address adjustment

    Some DMACs (e.g: NXP's EDMA) can automatically adjust the source and
    destination addresses upon transfer completion. As such, we need to
    indicate how the adjustment should be performed. In the case of playback,
    the source address should be decremented, while in the case of capture,
    the destination address should be decremented.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    6c3ce5b View commit details
    Browse the repository at this point in the history
  4. audio: dai-zephyr: Add state change on DAI trigger

    Currently, the DAI component's state is not updated on
    dai_trigger() operation, which leads to pipeline_comp_copy()
    skipping the dai_copy() operation (since the DAI component
    never transitions to the ACTIVE state). To fix this, add
    a state transition in dai_comp_trigger_internal(). Also,
    make sure not to trigger the DAI component if already in
    the requested state.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    1bf6b8c View commit details
    Browse the repository at this point in the history
  5. audio: dai-zephyr: add function for computing DMA slot

    In the case of some DAIs, the DMA slot may be encoded
    differently in the DAI configuration handshake. As such,
    we can't count on the fact that the handshake itself can
    be used as the DMA slot. To fix this, add a function which
    parses the handshake and allows each DAI to use its own
    encoding of the DMA slot inside the handshake.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    e347427 View commit details
    Browse the repository at this point in the history
  6. ipc3: dai: change channel decoding function for native SAI and ESAI

    The native SAI and ESAI drivers use a different handshake
    encoding. As such, when using native Zephyr drivers use a
    different function for decoding the channel from the handshake.
    
    Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
    LaurentiuM1234 committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    a0a034a View commit details
    Browse the repository at this point in the history