diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2018-10-04 14:46:32 +0300 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:52:02 +0800 |
commit | 09194b889d50146c20eafa3a661c5911d4ee2cbf (patch) | |
tree | d8390154a5da5f3fd367bf6d5652e0ec07386e54 /sound/soc/fsl/fsl_dsp.c | |
parent | 78520df6826e552bbc2c23e76e0f11c32fa559f1 (diff) |
MLK-18497-11: ASoC: fsl: compress: Introduce compress implemenation
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp.c')
-rw-r--r-- | sound/soc/fsl/fsl_dsp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp.c b/sound/soc/fsl/fsl_dsp.c index 3dddaf9e6f53..ef30b5a30bd2 100644 --- a/sound/soc/fsl/fsl_dsp.c +++ b/sound/soc/fsl/fsl_dsp.c @@ -765,6 +765,13 @@ static const struct file_operations dsp_fops = { .release = fsl_dsp_close, }; +extern struct snd_compr_ops dsp_platform_compr_ops; + +static const struct snd_soc_component_driver dsp_soc_platform_drv = { + .name = FSL_DSP_COMP_NAME, + .compr_ops = &dsp_platform_compr_ops, +}; + static int fsl_dsp_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; @@ -927,6 +934,12 @@ static int fsl_dsp_probe(struct platform_device *pdev) /* ...initialize mutex */ mutex_init(&dsp_priv->dsp_mutex); + ret = devm_snd_soc_register_component(&pdev->dev, &dsp_soc_platform_drv, NULL, 0); + if (ret) { + dev_err(&pdev->dev, "registering soc platform failed\n"); + return ret; + } + return 0; } |