soundwire: intel: remove useless abstraction
PDM is supported in the hardware but never enabled: there are no known PDM-based devices. We can directly call the PCM helper. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20230314015410.487311-5-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
dc9256c91b
commit
59e924fe15
|
@ -586,13 +586,6 @@ static int intel_pdi_stream_ch_update(struct sdw_intel *sdw,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int intel_pdi_ch_update(struct sdw_intel *sdw)
|
|
||||||
{
|
|
||||||
intel_pdi_stream_ch_update(sdw, &sdw->cdns.pcm);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
intel_pdi_shim_configure(struct sdw_intel *sdw, struct sdw_cdns_pdi *pdi)
|
intel_pdi_shim_configure(struct sdw_intel *sdw, struct sdw_cdns_pdi *pdi)
|
||||||
{
|
{
|
||||||
|
@ -1094,7 +1087,7 @@ static int intel_register_dai(struct sdw_intel *sdw)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
intel_pdi_ch_update(sdw);
|
intel_pdi_stream_ch_update(sdw, &sdw->cdns.pcm);
|
||||||
|
|
||||||
/* DAIs are created based on total number of PDIs supported */
|
/* DAIs are created based on total number of PDIs supported */
|
||||||
num_dai = cdns->pcm.num_pdi;
|
num_dai = cdns->pcm.num_pdi;
|
||||||
|
|
Loading…
Reference in New Issue