Add ESAI & SPDIF Vybrid and LS1+ support.
Subsystems (3)
v2 cover Add ESAI & SPDIF Vybrid and LS1+ support.
Changes in V2:
- Revise some issue from Nicolin Chen and Fabio Estevam.
Xiubo Li (4):
ASoC: esai: use the precise definition of 'ret'.
ASoC: spdif: Sort the header files alphabetically.
ASoC: esai: Add VF610+ compatibles support.
ASoC: spdif: Add VF610+ compatibles support.
sound/soc/fsl/fsl_esai.c | 9 ++++++--- sound/soc/fsl/fsl_spdif.c | 9 +++++---- 2 files changed, 11 insertions(+), 7 deletions(-)
Signature · 1 line
1.8.4
PATCH v2 1/4 ASoC: esai: use the precise definition of 'ret'.
Use the precise definition of 'ret', which will be used for the error check.
--- sound/soc/fsl/fsl_esai.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
sound/soc/fsl/fsl_esai.c +5 -3
@@ -209,8 +209,9 @@ static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,struct clk *clksrc = esai_priv->extalclk;bool tx = clk_id <=ESAI_HCKT_EXTAL ;bool in = dir ==SND_SOC_CLOCK_IN ; -u32 ret, ratio, ecr =0 ; +u32 ratio, ecr =0 ;unsigned long clk_rate; +int ret;/* sck_div can be only bypassed if ETO/ERO=0 and SNC_SOC_CLOCK_OUT */ esai_priv->sck_div[tx] = true;
@@ -432,8 +433,8 @@ static int fsl_esai_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)static int fsl_esai_startup (struct snd_pcm_substream *substream,struct snd_soc_dai *dai) { -int ret;struct fsl_esai *esai_priv =snd_soc_dai_get_drvdata (dai); +int ret;/* * Some platforms might use the same bit to gate all three or two of
@@ -491,7 +492,8 @@ static int fsl_esai_hw_params(struct snd_pcm_substream *substream,bool tx = substream->stream ==SNDRV_PCM_STREAM_PLAYBACK ;u32 width =snd_pcm_format_width (params_format (params));u32 channels =params_channels (params); -u32 bclk, mask, val, ret; +u32 bclk, mask, val; +int ret; bclk =params_rate (params) * esai_priv->slot_width *2 ;
Signature · 1 line
1.8.4
PATCH v2 2/4 ASoC: spdif: Sort the header files alphabetically.
In reply to Xiubo Li--- sound/soc/fsl/fsl_spdif.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/fsl/fsl_spdif.c +4 -4
@@ -13,18 +13,18 @@* kind, whether express or implied. */ -#include <linux/module.h> +#include <linux/bitrev.h> #include <linux/clk.h> #include <linux/clk-private.h> -#include <linux/bitrev.h> -#include <linux/regmap.h> +#include <linux/module.h> #include <linux/of_address.h> #include <linux/of_device.h> #include <linux/of_irq.h> +#include <linux/regmap.h> #include <sound/asoundef.h> -#include <sound/soc.h> #include <sound/dmaengine_pcm.h> +#include <sound/soc.h> #include "fsl_spdif.h" #include "imx-pcm.h"
Signature · 1 line
1.8.4
PATCH v2 3/4 ASoC: esai: Add VF610+ compatibles support.
In reply to Xiubo Li--- sound/soc/fsl/fsl_esai.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/fsl/fsl_esai.c +1 -0
@@ -818,6 +818,7 @@ static int fsl_esai_probe(struct platform_device *pdev)static const struct of_device_id fsl_esai_dt_ids[] = { { .compatible ="fsl,imx35-esai" , }, + { .compatible ="fsl,vf610-esai" , }, {} };MODULE_DEVICE_TABLE (of, fsl_esai_dt_ids);
Signature · 1 line
1.8.4
PATCH v2 4/4 ASoC: spdif: Add VF610+ compatibles support.
In reply to Xiubo Li--- sound/soc/fsl/fsl_spdif.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/fsl/fsl_spdif.c +1 -0
@@ -1186,6 +1186,7 @@ static int fsl_spdif_probe(struct platform_device *pdev)static const struct of_device_id fsl_spdif_dt_ids[] = { { .compatible ="fsl,imx35-spdif" , }, + { .compatible ="fsl,vf610-spdif" , }, {} };MODULE_DEVICE_TABLE (of, fsl_spdif_dt_ids);
Signature · 1 line
1.8.4
Quoted 2 lines · Xiubo Li
Changes in V2:
- Revise some issue from Nicolin Chen and Fabio Estevam.
You have my ACK for all of them.
Thanks,
Nicolin
Quoted 16 lines
Xiubo Li (4):
ASoC: esai: use the precise definition of 'ret'.
ASoC: spdif: Sort the header files alphabetically.
ASoC: esai: Add VF610+ compatibles support.
ASoC: spdif: Add VF610+ compatibles support.sound/soc/fsl/fsl_esai.c | 9 ++++++--- sound/soc/fsl/fsl_spdif.c | 9 +++++---- 2 files changed, 11 insertions(+), 7 deletions(-)Signature · 1 line
1.8.4
Quoted 2 lines · Xiubo Li
Changes in V2:
- Revise some issue from Nicolin Chen and Fabio Estevam.
Applied all, thanks.