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

ASoC: SOF: core/Intel: Follow the pause_supported flag from topology to disable or keep the pause support enabled #5041

Open
wants to merge 2 commits into
base: topic/sof-dev
Choose a base branch
from

Commits on Oct 7, 2024

  1. ASoC: SOF: Add support for pause supported tokens from topology

    New tokens are added to topology:
    1202: SOF_TKN_STREAM_PLAYBACK_PAUSE_SUPPORTED
    1203: SOF_TKN_STREAM_CAPTURE_PAUSE_SUPPORTED
    
    The new tokens are used to advertise support for PAUSE/RESUME operation on
    a PCM device depending on firmware product, use case, pipeline topology.
    
    The snd_sof_pcm_stream.pause_supported is updated to reflect the advertised
    value for the PCM device.
    
    If the token does not exist then the pause_supported is set to false.
    
    Note: it is up to the platform code to use this flag to decide to advertise
    the PAUSE support for user space or not.
    
    Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
    ujfalusi committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    c5342a4 View commit details
    Browse the repository at this point in the history
  2. ASoC: SOF: Intel: hda-pcm: Follow the pause_supported flag to drop PA…

    …USE support
    
    If the stream's pause_supported flag is false then mask out the PAUSE
    support, so user space will be prevented to use it.
    
    Introduce a module parameter to ignore the pause_supported flag, named as
    force_pause_support to allow testing of the PAUSE feature.
    
    Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
    ujfalusi committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    7c2318b View commit details
    Browse the repository at this point in the history