mirror of https://github.com/thesofproject/sof.git
topology: use fatal_error instead of errprint
errprint does not stop the compilation as intended, it just prints a message which is removed by the makefile. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
parent
2c46c7a22c
commit
5cc75be44b
|
@ -6,36 +6,36 @@ include(`platform/intel/dmic.m4')
|
|||
|
||||
# variable that need to be defined in upper m4
|
||||
# define(CHANNELS, `4') define channel for the dmic
|
||||
ifdef(`CHANNELS',`',`errprint(note: Need to define channel number for intel-generic-dmic-kwd
|
||||
ifdef(`CHANNELS',`',`fatal_error(note: Need to define channel number for intel-generic-dmic-kwd
|
||||
)')
|
||||
# define(KFBM_TYPE, `vol-kfbm') define kfbm type, available type: vol-kfbm/kfbm
|
||||
ifdef(`KFBM_TYPE',`',`errprint(note: Need to define kfbm type for intel-generic-dmic-kwd, available type: vol-kfbm/kfbm
|
||||
ifdef(`KFBM_TYPE',`',`fatal_error(note: Need to define kfbm type for intel-generic-dmic-kwd, available type: vol-kfbm/kfbm
|
||||
)')
|
||||
# define(DMIC_PCM_48k_ID, `99')
|
||||
ifdef(`DMIC_PCM_48k_ID',`',`errprint(note: Need to define dmic48k pcm id for intel-generic-dmic-kwd
|
||||
ifdef(`DMIC_PCM_48k_ID',`',`fatal_error(note: Need to define dmic48k pcm id for intel-generic-dmic-kwd
|
||||
)')
|
||||
# define(DMIC_PIPELINE_48k_ID, `4')
|
||||
ifdef(`DMIC_PIPELINE_48k_ID',`',`errprint(note: Need to define dmic48k pipeline id for intel-generic-dmic-kwd
|
||||
ifdef(`DMIC_PIPELINE_48k_ID',`',`fatal_error(note: Need to define dmic48k pipeline id for intel-generic-dmic-kwd
|
||||
)')
|
||||
# define(DMIC_DAI_LINK_48k_ID, `1')
|
||||
ifdef(`DMIC_DAI_LINK_48k_ID',`',`errprint(note: Need to define dmic48k dai id for intel-generic-dmic-kwd
|
||||
ifdef(`DMIC_DAI_LINK_48k_ID',`',`fatal_error(note: Need to define dmic48k dai id for intel-generic-dmic-kwd
|
||||
)')
|
||||
|
||||
# define(DMIC_PCM_16k_ID, `7')
|
||||
ifdef(`DMIC_PCM_16k_ID',`',`errprint(note: Need to define dmic16k pcm id for intel-generic-dmic-kwd
|
||||
ifdef(`DMIC_PCM_16k_ID',`',`fatal_error(note: Need to define dmic16k pcm id for intel-generic-dmic-kwd
|
||||
)')
|
||||
# define(DMIC_PIPELINE_16k_ID, `9')
|
||||
ifdef(`DMIC_PIPELINE_16k_ID',`',`errprint(note: Need to define dmic16k pipeline id for intel-generic-dmic-kwd
|
||||
ifdef(`DMIC_PIPELINE_16k_ID',`',`fatal_error(note: Need to define dmic16k pipeline id for intel-generic-dmic-kwd
|
||||
)')
|
||||
# define(DMIC_PIPELINE_KWD_ID, `10')
|
||||
ifdef(`DMIC_PIPELINE_KWD_ID',`',`errprint(note: Need to define kwd pipeline id for intel-generic-dmic-kwd
|
||||
ifdef(`DMIC_PIPELINE_KWD_ID',`',`fatal_error(note: Need to define kwd pipeline id for intel-generic-dmic-kwd
|
||||
)')
|
||||
# define(DMIC_DAI_LINK_16k_ID, `2')
|
||||
ifdef(`DMIC_DAI_LINK_16k_ID',`',`errprint(note: Need to define dmic16k dai id for intel-generic-dmic-kwd
|
||||
ifdef(`DMIC_DAI_LINK_16k_ID',`',`fatal_error(note: Need to define dmic16k dai id for intel-generic-dmic-kwd
|
||||
)')
|
||||
|
||||
# define(KWD_PIPE_SCH_DEADLINE_US, 20000)
|
||||
ifdef(`KWD_PIPE_SCH_DEADLINE_US',`',`errprint(note: Need to define schedule for intel-generic-dmic-kwd
|
||||
ifdef(`KWD_PIPE_SCH_DEADLINE_US',`',`fatal_error(note: Need to define schedule for intel-generic-dmic-kwd
|
||||
)')
|
||||
|
||||
# define(DMIC_DAI_LINK_48k_NAME, `dmic01')
|
||||
|
|
|
@ -28,20 +28,20 @@ ifelse(SDW, `1',
|
|||
`
|
||||
# ALH related
|
||||
# define(`SMART_ALH_INDEX', 1) define smart amplifier ALH index
|
||||
ifdef(`SMART_ALH_INDEX',`',`errprint(note: Need to define ALH index for sof-smart-amplifier
|
||||
ifdef(`SMART_ALH_INDEX',`',`fatal_error(note: Need to define ALH index for sof-smart-amplifier
|
||||
)')
|
||||
ifdef(`SMART_ALH_PLAYBACK_NAME',`',`errprint(note: Need to define ALH BE dai_link name for sof-smart-amplifier
|
||||
ifdef(`SMART_ALH_PLAYBACK_NAME',`',`fatal_error(note: Need to define ALH BE dai_link name for sof-smart-amplifier
|
||||
)')
|
||||
ifdef(`SMART_ALH_CAPTURE_NAME',`',`errprint(note: Need to define ALH BE dai_link name for sof-smart-amplifier
|
||||
ifdef(`SMART_ALH_CAPTURE_NAME',`',`fatal_error(note: Need to define ALH BE dai_link name for sof-smart-amplifier
|
||||
)')
|
||||
',
|
||||
`
|
||||
# SSP related
|
||||
# define(`SMART_SSP_INDEX', 1) define smart amplifier SSP index
|
||||
ifdef(`SMART_SSP_INDEX',`',`errprint(note: Need to define SSP index for sof-smart-amplifier
|
||||
ifdef(`SMART_SSP_INDEX',`',`fatal_error(note: Need to define SSP index for sof-smart-amplifier
|
||||
)')
|
||||
# define(`SMART_SSP_NAME', `SSP1-Codec') define SSP BE dai_link name
|
||||
ifdef(`SMART_SSP_NAME',`',`errprint(note: Need to define SSP BE dai_link name for sof-smart-amplifier
|
||||
ifdef(`SMART_SSP_NAME',`',`fatal_error(note: Need to define SSP BE dai_link name for sof-smart-amplifier
|
||||
)')
|
||||
# define(`SMART_SSP_QUIRK', 0) define SSP quirk for special use, e.g. set SSP_QUIRK_LBM to verify
|
||||
# smart_amp nocodec mode. Set it to 0 by default for normal mode.
|
||||
|
@ -51,41 +51,41 @@ ifdef(`SSP_MCLK',`',`define(`SSP_MCLK', 19200000)')
|
|||
')
|
||||
|
||||
# define(`SMART_BE_ID', 7) define BE dai_link ID
|
||||
ifdef(`SMART_BE_ID',`',`errprint(note: Need to define SSP BE dai_link ID for sof-smart-amplifier
|
||||
ifdef(`SMART_BE_ID',`',`fatal_error(note: Need to define SSP BE dai_link ID for sof-smart-amplifier
|
||||
)')
|
||||
# Playback related
|
||||
# define(`SMART_PB_PPL_ID', 1)
|
||||
ifdef(`SMART_PB_PPL_ID',`',`errprint(note: Need to define playback pipeline ID for sof-smart-amplifier
|
||||
ifdef(`SMART_PB_PPL_ID',`',`fatal_error(note: Need to define playback pipeline ID for sof-smart-amplifier
|
||||
)')
|
||||
# define(`SMART_PB_CH_NUM', 2)
|
||||
ifdef(`SMART_PB_CH_NUM',`',`errprint(note: Need to define playback channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_PB_CH_NUM',`',`fatal_error(note: Need to define playback channel number for sof-smart-amplifier
|
||||
)')
|
||||
define(`SMART_PIPE_SOURCE', concat(`PIPELINE_SOURCE_', SMART_PB_PPL_ID))
|
||||
# define(`SMART_TX_CHANNELS', 4)
|
||||
ifdef(`SMART_TX_CHANNELS',`',`errprint(note: Need to define DAI TX channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_TX_CHANNELS',`',`fatal_error(note: Need to define DAI TX channel number for sof-smart-amplifier
|
||||
)')
|
||||
# define(`SMART_RX_CHANNELS', 8)
|
||||
ifdef(`SMART_RX_CHANNELS',`',`errprint(note: Need to define DAI RX channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_RX_CHANNELS',`',`fatal_error(note: Need to define DAI RX channel number for sof-smart-amplifier
|
||||
)')
|
||||
# define(`SMART_FB_CHANNELS', 4)
|
||||
ifdef(`SMART_FB_CHANNELS',`',`errprint(note: Need to define feedback channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_FB_CHANNELS',`',`fatal_error(note: Need to define feedback channel number for sof-smart-amplifier
|
||||
)')
|
||||
define(`SMART_PB_PPL_NAME', concat(`PIPELINE_PCM_', SMART_PB_PPL_ID))
|
||||
# Ref capture related
|
||||
# define(`SMART_REF_PPL_ID', 11)
|
||||
ifdef(`SMART_REF_PPL_ID',`',`errprint(note: Need to define Echo Ref pipeline ID for sof-smart-amplifier
|
||||
ifdef(`SMART_REF_PPL_ID',`',`fatal_error(note: Need to define Echo Ref pipeline ID for sof-smart-amplifier
|
||||
)')
|
||||
# define(`SMART_REF_CH_NUM', 4)
|
||||
ifdef(`SMART_REF_CH_NUM',`',`errprint(note: Need to define Echo Ref channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_REF_CH_NUM',`',`fatal_error(note: Need to define Echo Ref channel number for sof-smart-amplifier
|
||||
)')
|
||||
define(`SMART_PIPE_SINK', concat(`PIPELINE_SINK_', SMART_REF_PPL_ID))
|
||||
# define(`N_SMART_DEMUX', `MUXDEMUX'SMART_REF_PPL_ID`.'$1)
|
||||
define(`SMART_REF_PPL_NAME', concat(`PIPELINE_PCM_', SMART_REF_PPL_ID))
|
||||
# PCM related
|
||||
# define(`SMART_PCM_ID', 0)
|
||||
ifdef(`SMART_PCM_ID',`',`errprint(note: Need to define PCM ID for sof-smart-amplifier
|
||||
ifdef(`SMART_PCM_ID',`',`fatal_error(note: Need to define PCM ID for sof-smart-amplifier
|
||||
)')
|
||||
ifdef(`SMART_PCM_NAME',`',`errprint(note: Need to define Speaker PCM name for sof-smart-amplifier
|
||||
ifdef(`SMART_PCM_NAME',`',`fatal_error(note: Need to define Speaker PCM name for sof-smart-amplifier
|
||||
)')
|
||||
|
||||
ifelse(SDW, `1',
|
||||
|
@ -183,9 +183,9 @@ DAI_ADD(sof/pipe-dai-capture.m4,
|
|||
')
|
||||
|
||||
# Connect demux to smart_amp
|
||||
ifdef(`N_SMART_REF_BUF',`',`errprint(note: Need to define ref buffer name for connection
|
||||
ifdef(`N_SMART_REF_BUF',`',`fatal_error(note: Need to define ref buffer name for connection
|
||||
)')
|
||||
ifdef(`N_SMART_DEMUX',`',`errprint(note: Need to define demux widget name for connection
|
||||
ifdef(`N_SMART_DEMUX',`',`fatal_error(note: Need to define demux widget name for connection
|
||||
)')
|
||||
SectionGraph."PIPE_SMART_AMP" {
|
||||
index "0"
|
||||
|
|
|
@ -38,7 +38,7 @@ DEBUG_START
|
|||
# PCM100 <---- kpb <---- DMIC16K (dmic 16k capture)
|
||||
|
||||
|
||||
ifdef(`AMP_SSP',`',`errprint(note: Define AMP_SSP for speaker amp SSP Index)')
|
||||
ifdef(`AMP_SSP',`',`fatal_error(note: Define AMP_SSP for speaker amp SSP Index)')
|
||||
# Smart amplifier related
|
||||
# SSP related
|
||||
#define smart amplifier SSP index
|
||||
|
|
|
@ -21,21 +21,21 @@ include(`muxdemux.m4')
|
|||
include(`mixercontrol.m4')
|
||||
include(`bytecontrol.m4')
|
||||
|
||||
ifdef(`SMART_TX_CHANNELS',`',`errprint(note: Need to define DAI TX channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_TX_CHANNELS',`',`fatal_error(note: Need to define DAI TX channel number for sof-smart-amplifier
|
||||
)')
|
||||
ifdef(`SMART_RX_CHANNELS',`',`errprint(note: Need to define DAI RX channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_RX_CHANNELS',`',`fatal_error(note: Need to define DAI RX channel number for sof-smart-amplifier
|
||||
)')
|
||||
ifdef(`SMART_FB_CHANNELS',`',`errprint(note: Need to define feedback channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_FB_CHANNELS',`',`fatal_error(note: Need to define feedback channel number for sof-smart-amplifier
|
||||
)')
|
||||
|
||||
ifdef(`SMART_PB_PPL_ID',`',`errprint(note: Need to define playback pipeline ID for sof-smart-amplifier
|
||||
ifdef(`SMART_PB_PPL_ID',`',`fatal_error(note: Need to define playback pipeline ID for sof-smart-amplifier
|
||||
)')
|
||||
ifdef(`SMART_PB_CH_NUM',`',`errprint(note: Need to define playback channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_PB_CH_NUM',`',`fatal_error(note: Need to define playback channel number for sof-smart-amplifier
|
||||
)')
|
||||
|
||||
ifdef(`SMART_REF_PPL_ID',`',`errprint(note: Need to define Echo Ref pipeline ID for sof-smart-amplifier
|
||||
ifdef(`SMART_REF_PPL_ID',`',`fatal_error(note: Need to define Echo Ref pipeline ID for sof-smart-amplifier
|
||||
)')
|
||||
ifdef(`SMART_REF_CH_NUM',`',`errprint(note: Need to define Echo Ref channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_REF_CH_NUM',`',`fatal_error(note: Need to define Echo Ref channel number for sof-smart-amplifier
|
||||
)')
|
||||
|
||||
ifelse(SMART_FB_CHANNELS, `8',
|
||||
|
|
|
@ -23,9 +23,9 @@ include(`smart_amp.m4')
|
|||
include(`mixercontrol.m4')
|
||||
include(`bytecontrol.m4')
|
||||
|
||||
ifdef(`SMART_TX_CHANNELS',`',`errprint(note: Need to define DAI TX channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_TX_CHANNELS',`',`fatal_error(note: Need to define DAI TX channel number for sof-smart-amplifier
|
||||
)')
|
||||
ifdef(`SMART_FB_CHANNELS',`',`errprint(note: Need to define feedback channel number for sof-smart-amplifier
|
||||
ifdef(`SMART_FB_CHANNELS',`',`fatal_error(note: Need to define feedback channel number for sof-smart-amplifier
|
||||
)')
|
||||
|
||||
DECLARE_SOF_RT_UUID("smart_amp-test", smart_amp_comp_uuid, 0x167a961e, 0x8ae4,
|
||||
|
|
Loading…
Reference in New Issue