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

common: pcm: hdmi/sof-hda-dsp/sof-soundwire: Syntax 7 dependent macro to generate the hdmi device sections #413

Closed
wants to merge 3 commits into from

Commits on Apr 30, 2024

  1. ucm2: common: pcm: hdmi: Add new macro to conditionally create hdmi d…

    …evice
    
    The new HdmiDevice macro can be used to create the hdmi PCM device for a
    hardware PCM whose ID can be found in the Iec61937Devices comma separated
    device ID list.
    It is the caller's responsibility to pass correct device id of an HDMI PCM
    as Dev.
    
    The new macro needs Syntax 7 support.
    
    Example for a use by sof-hda-dsp where the HDMI devices are 3, 4 and 5
    
    Macro.0.HdmiDevice { Iec61937Devices "${var:Iec61937Pcms1}" Dev 3 Idx 0 }
    Macro.1.HdmiDevice { Iec61937Devices "${var:Iec61937Pcms1}" Dev 4 Idx 1 }
    Macro.2.HdmiDevice { Iec61937Devices "${var:Iec61937Pcms1}" Dev 5 Idx 2 }
    
    If.HdmiIec61937 {
    	Condition {
    		Type RegexMatch
    		Regex "((^|,)[345](,|$))"
    		String "${var:Iec61937Pcms1}"
    	}
    	True.Macro.save_hdmi_cfg.HdmiPCMSave { Name "42-sof-hdmi" }
    }
    
    The Iec61937Pcms1 contains a match string of "5,4,3"
    
    Signed-off-by: Peter Ujfalusi <[email protected]>
    ujfalusi committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    924fa95 View commit details
    Browse the repository at this point in the history
  2. ucm2: Intel/sof-hda-dsp: Use the HdmiDevice macro for hdmi device cre…

    …ation
    
    The duplicated code for the hdmi device creation can be removed by using
    the HdmiDevice macro.
    
    The macro needs Syntax 7 to work (variable as parameter support), update
    the Syntax version of the file as well.
    
    Signed-off-by: Peter Ujfalusi <[email protected]>
    ujfalusi committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    583a392 View commit details
    Browse the repository at this point in the history
  3. ucm2: sof-soundwire: Use the HdmiDevice macro for hdmi device creation

    The duplicated code for the hdmi device creation can be removed by using
    the HdmiDevice macro.
    
    The macro needs Syntax 7 to work (variable as parameter support), update
    the Syntax version of the file as well.
    
    Signed-off-by: Peter Ujfalusi <[email protected]>
    ujfalusi committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    a33a94e View commit details
    Browse the repository at this point in the history