[PATCH v4 2/2] ASoC: fsl_asrc: Add ASRC ASoC CPU DAI and platform drivers

2014-07-25 Thread Nicolin Chen
The Asynchronous Sample Rate Converter (ASRC) converts the sampling rate of a signal associated with an input clock into a signal associated with a different output clock. The driver currently works as a Front End of DPCM with other Back Ends DAI links such as ESAI-CS42888 and SSI-WM8962 and SAI.

Re: [PATCH v4 2/2] ASoC: fsl_asrc: Add ASRC ASoC CPU DAI and platform drivers

2014-07-25 Thread Varka Bhadram
On 07/25/2014 12:49 PM, Nicolin Chen wrote: (...) + + div[IN] = clk_get_rate(clk) / inrate; + if (div[IN] == 0) { + pair_err(failed to support input sample rate %dHz by asrck_%x, + inrate, clk_index[ideal ? OUT : IN]); Oh... missed

Re: [PATCH v4 2/2] ASoC: fsl_asrc: Add ASRC ASoC CPU DAI and platform drivers

2014-07-25 Thread Nicolin Chen
Hi Varka, Thank you for the comments! On Fri, Jul 25, 2014 at 01:05:05PM +0530, Varka Bhadram wrote: On 07/25/2014 12:49 PM, Nicolin Chen wrote: (...) +static const struct platform_device_id fsl_asrc_devtype[] = { +{ +.name = imx35-asrc, +.driver_data =

Re: [PATCH v4 2/2] ASoC: fsl_asrc: Add ASRC ASoC CPU DAI and platform drivers

2014-07-25 Thread Varka Bhadram
On 07/25/2014 01:27 PM, Nicolin Chen wrote: Hi Varka, Thank you for the comments! On Fri, Jul 25, 2014 at 01:05:05PM +0530, Varka Bhadram wrote: On 07/25/2014 12:49 PM, Nicolin Chen wrote: (...) +static const struct platform_device_id fsl_asrc_devtype[] = { + { + .name =

Re: [PATCH v4 2/2] ASoC: fsl_asrc: Add ASRC ASoC CPU DAI and platform drivers

2014-07-25 Thread Nicolin Chen
On Fri, Jul 25, 2014 at 02:13:10PM +0530, Varka Bhadram wrote: On 07/25/2014 01:27 PM, Nicolin Chen wrote: + if (IS_ERR(asrc_priv-regmap)) { + dev_err(pdev-dev, failed to init regmap\n); + return PTR_ERR(asrc_priv-regmap); + } + + irq = platform_get_irq(pdev, 0); + if