Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1276161

Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai device

From Nicolin Chen <nicoleotsuka@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai device
Date 2015-11-24 09:40 +0100
Message-ID <qyhiO-5GD-15@gated-at.bofh.it> (permalink)
References <qyfTH-4UT-3@gated-at.bofh.it> <qyhiO-5GD-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Nov 24, 2015 at 03:03:28PM +0800, Shengjiu Wang wrote:

> @@ -469,6 +471,9 @@ static int fsl_esai_startup(struct snd_pcm_substream *substream,
>  	ret = clk_prepare_enable(esai_priv->coreclk);
>  	if (ret)
>  		return ret;
> +	ret = clk_prepare_enable(esai_priv->spbaclk);
> +	if (ret)
> +		goto err_spbaclk;
>  	if (!IS_ERR(esai_priv->extalclk)) {
>  		ret = clk_prepare_enable(esai_priv->extalclk);
>  		if (ret)

Just like for extalclk there is a IS_ERR check out there, there
should be one for spbaclk as well. Otherwise....

root@imx6qdlsolo:~# aplay /unit_tests/audio8k16S.wav 
[   29.956250] Unable to handle kernel paging request at virtual address fffffffe
[   29.963491] pgd = edd98000
[   29.966278] [fffffffe] *pgd=afffd861, *pte=00000000, *ppte=00000000
[   29.972615] Internal error: Oops: 37 [#1] SMP ARM
[   29.977327] Modules linked in:
[   29.980410] CPU: 0 PID: 755 Comm: aplay Not tainted 4.4.0-rc1-12414-gcc8db17 #250
[   29.987899] Hardware name: Freescale i.MX6 SoloX (Device Tree)
[   29.993738] task: edece780 ti: ed26a000 task.ti: ed26a000
[   29.999156] PC is at clk_prepare+0x18/0x38
[   30.003268] LR is at mark_held_locks+0x70/0x98
[   30.007720] pc : [<c0568714>]    lr : [<c006f42c>]    psr: 600f0013
[   30.007720] sp : ed26bc60  ip : 00000003  fp : ed26bc74
[   30.019204] r10: eebe4d9c  r9 : eeb2e00c  r8 : eeb2e00c
[   30.024435] r7 : fffffffe  r6 : eeb2c500  r5 : eeb2d0c0  r4 : fffffffe
[   30.030966] r3 : edece780  r2 : 00000001  r1 : 00000001  r0 : 00000001
[   30.037502] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   30.044643] Control: 10c5387d  Table: add9804a  DAC: 00000051
[   30.050395] Process aplay (pid: 755, stack limit = 0xed26a210)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V3 0/3] add spba clock for fsl audio IP Shengjiu Wang <shengjiu.wang@freescale.com> - 2015-11-24 08:10 +0100
  Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai  device Nicolin Chen <nicoleotsuka@gmail.com> - 2015-11-24 09:40 +0100
  Re: [PATCH V3 2/3] ASoC: fsl_spdif: spba clk is needed by spdif  device Rob Herring <robh@kernel.org> - 2015-11-25 00:30 +0100
  Re: [PATCH V3 1/3] ASoC: fsl_esai: spba clock is needed by esai  device Rob Herring <robh@kernel.org> - 2015-11-25 00:30 +0100
  Re: [PATCH V3 3/3] ASoC: fsl_asrc: spba clock is needed by asrc  device Rob Herring <robh@kernel.org> - 2015-11-25 00:30 +0100

csiph-web