diff --git a/include/sound/sof/dai-intel.h b/include/sound/sof/dai-intel.h index 7a266f41983cb4..136adf6686e267 100644 --- a/include/sound/sof/dai-intel.h +++ b/include/sound/sof/dai-intel.h @@ -48,10 +48,6 @@ #define SOF_DAI_INTEL_SSP_CLKCTRL_FS_KA BIT(4) /* bclk idle */ #define SOF_DAI_INTEL_SSP_CLKCTRL_BCLK_IDLE_HIGH BIT(5) -/* mclk early start */ -#define SOF_DAI_INTEL_SSP_CLKCTRL_MCLK_ES BIT(6) -/* bclk early start */ -#define SOF_DAI_INTEL_SSP_CLKCTRL_BCLK_ES BIT(7) /* DMIC max. four controllers for eight microphone channels */ #define SOF_DAI_INTEL_DMIC_NUM_CTRL 4 diff --git a/include/sound/sof/dai.h b/include/sound/sof/dai.h index 9625f47557b8ef..6bb403e8c5ee79 100644 --- a/include/sound/sof/dai.h +++ b/include/sound/sof/dai.h @@ -50,13 +50,6 @@ #define SOF_DAI_FMT_INV_MASK 0x0f00 #define SOF_DAI_FMT_CLOCK_PROVIDER_MASK 0xf000 -/* DAI_CONFIG flags */ -#define SOF_DAI_CONFIG_FLAGS_MASK 0x3 -#define SOF_DAI_CONFIG_FLAGS_NONE (0 << 0) /**< DAI_CONFIG sent without stage information */ -#define SOF_DAI_CONFIG_FLAGS_HW_PARAMS (1 << 0) /**< DAI_CONFIG sent during hw_params stage */ -#define SOF_DAI_CONFIG_FLAGS_HW_FREE (2 << 0) /**< DAI_CONFIG sent during hw_free stage */ -#define SOF_DAI_CONFIG_FLAGS_RFU (3 << 0) /**< not used, reserved for future use */ - /** \brief Types of DAI */ enum sof_ipc_dai_type { SOF_DAI_INTEL_NONE = 0, /**< None */ @@ -76,8 +69,7 @@ struct sof_ipc_dai_config { /* physical protocol and clocking */ uint16_t format; /**< SOF_DAI_FMT_ */ - uint8_t group_id; /**< group ID, 0 means no group (ABI 3.17) */ - uint8_t flags; /**< SOF_DAI_CONFIG_FLAGS_ (ABI 3.19) */ + uint16_t reserved16; /**< alignment */ /* reserved for future use */ uint32_t reserved[8]; diff --git a/sound/soc/sof/intel/hda-dai.c b/sound/soc/sof/intel/hda-dai.c index 371dedb542ed14..fb1b429cc451bc 100644 --- a/sound/soc/sof/intel/hda-dai.c +++ b/sound/soc/sof/intel/hda-dai.c @@ -479,8 +479,9 @@ static int ssp_dai_setup_or_free(struct snd_pcm_substream *substream, struct snd return hda_ctrl_dai_widget_free(w); } -static int ssp_dai_prepare(struct snd_pcm_substream *substream, - struct snd_soc_dai *dai) +static int ssp_dai_hw_params(struct snd_pcm_substream *substream, + struct snd_pcm_hw_params *params, + struct snd_soc_dai *dai) { return ssp_dai_setup_or_free(substream, dai, true); } @@ -492,7 +493,7 @@ static int ssp_dai_hw_free(struct snd_pcm_substream *substream, } static const struct snd_soc_dai_ops ssp_dai_ops = { - .prepare = ssp_dai_prepare, + .hw_params = ssp_dai_hw_params, .hw_free = ssp_dai_hw_free, }; diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index f2ebf1dace349a..447c82b227db91 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -71,11 +71,6 @@ int hda_ctrl_dai_widget_setup(struct snd_soc_dapm_widget *w) return ret; } - /* set HW_PARAMS flag */ - set_mask_bits(&config->flags, - SOF_DAI_CONFIG_FLAGS_MASK, - SOF_DAI_CONFIG_FLAGS_HW_PARAMS); - /* send DAI_CONFIG IPC */ ret = sof_ipc_tx_message(sdev->ipc, config->hdr.cmd, config, config->hdr.size, &reply, sizeof(reply)); @@ -112,11 +107,6 @@ int hda_ctrl_dai_widget_free(struct snd_soc_dapm_widget *w) config = &sof_dai->dai_config[sof_dai->current_config]; - /* set HW_FREE flag */ - set_mask_bits(&config->flags, - SOF_DAI_CONFIG_FLAGS_MASK, - SOF_DAI_CONFIG_FLAGS_HW_FREE); - ret = sof_ipc_tx_message(sdev->ipc, config->hdr.cmd, config, config->hdr.size, &reply, sizeof(reply)); if (ret < 0) { diff --git a/sound/soc/sof/sof-audio.c b/sound/soc/sof/sof-audio.c index 637b4ce3ba0f48..ffa3e0449d00d4 100644 --- a/sound/soc/sof/sof-audio.c +++ b/sound/soc/sof/sof-audio.c @@ -55,11 +55,6 @@ static int sof_dai_config_setup(struct snd_sof_dev *sdev, struct snd_sof_dai *da return -EINVAL; } - /* set NONE flag to clear all previous settings */ - set_mask_bits(&config->flags, - SOF_DAI_CONFIG_FLAGS_MASK, - SOF_DAI_CONFIG_FLAGS_NONE); - ret = sof_ipc_tx_message(sdev->ipc, config->hdr.cmd, config, config->hdr.size, &reply, sizeof(reply));