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

dai: assign link DMA channel at run-time #1354

Merged
merged 1 commit into from
May 29, 2019

Commits on May 28, 2019

  1. dai: assign/free link DMA channel during dai_config()

    The recommended HDA HW programming sequence for setting
    the DMA format requires that the link DMA and host DMA
    channels be coupled before setting the format. This
    change means that host DMA or link DMA channels be
    reserved even if only one is used.
    
    Statically assigned link DMA channels would mean that
    all the corresponding host DMA channels will need to be
    reserved, leaving only a few channels available at run-time.
    So, the suggestion here is to switch to dynamically assigning
    both host DMA channels and link DMA channels are run-time.
    
    This change means that the DAI_CONFIG IPC will be sent
    multiple times during link hw_params and link hw_free
    ioctl. The DAI config parameters will remain the same
    except for the link DMA channel that will be assigned at
    run-time. A value of DMA_CHAN_INVALID from the driver
    during hw_free indicates a request to free the current
    link DMA channel in use. The current channel in use
    is freed before assiging the new channel requested in
    the DAI_CONFIG IPC.
    
    Signed-off-by: Ranjani Sridharan <[email protected]>
    ranj063 committed May 28, 2019
    Configuration menu
    Copy the full SHA
    28a6c96 View commit details
    Browse the repository at this point in the history