Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1406810
| From | Jose Abreu <Jose.Abreu@synopsys.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension |
| Date | 2016-05-25 12:20 +0200 |
| Message-ID | <rCE4V-8dd-15@gated-at.bofh.it> (permalink) |
| References | <rBUY9-4uz-3@gated-at.bofh.it> <rBUY9-4uz-13@gated-at.bofh.it> <rCnGN-5K5-3@gated-at.bofh.it> <rCo0a-65z-23@gated-at.bofh.it> <rCoMy-6n2-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Mark,
On 24-05-2016 18:51, Mark Brown wrote:
> On Tue, May 24, 2016 at 06:07:14PM +0100, Jose Abreu wrote:
>> On 24-05-2016 17:41, Mark Brown wrote:
> Please fix your mail client to word wrap within paragraphs at something
> substantially less than 80 columns. Doing this makes your messages much
> easier to read and reply to.
>
>>>> if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
>>>> i2s_write_reg(dev->i2s_base, ITER, 1);
>>> That seems wrong, or at least something that should be separate?
>>> Previously we needed interrupts for DMA operation but now we enable
>>> interrupts only if we don't use DMA. It feels like we want to make the
>>> change for DMA separately if only to make it clear for bisection, are we
>>> 100% sure that masking the interrupt won't also mask the DMA request
>>> signals?
>> Indeed I thought about this and the interrupts must also be enabled when in DMA
>> mode. Although there is no interrupt handler in the original driver (without
>> this patches) in some setups the interrupt line may be connected to the DMA
>> controller. I will drop this change and always enable interrupts. Please note
>> that I don't have a setup with DMA support so I can only test using the PIO mode.
> Presumably you can talk to your hardware colleagues and get them to make
> you a FPGA with a DMA IP available?
Its already in the todo list.
>
>>> This also seems wrong. We're forcing PIO if an interrupt is provided
>>> rather than based on DMA being configured which means that if the
>>> interrupt is wired up and happens to be described in DT we'll get worse
>> How should I then determine which mode to use?
>> - Check if DMA parameters are declared in DT, or
>> - Check if snd_dmaengine_pcm_register() fails, or
>> - Assume PIO mode will be used when compiling with PIO PCM, or
>> - Something else ?
> You could either unconditionally register the PIO driver and only
> actually start using it if the driver is instantiated or you could check
> to see if the registration function works (handling deferred probe - if
> the DMA driver just didn't load yet you should wait for it).
I think I will take the second option. Something like this:
"
ret = snd_dmaengine_pcm_register(...)
if (ret == -EPROBE_DEFER)
return ret;
else
pio_register(...);
"?
Best regards,
Jose Miguel Abreu
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4 v7] Add I2S audio support for ARC AXS10x boards Jose Abreu <Jose.Abreu@synopsys.com> - 2016-05-23 12:10 +0200
[PATCH 2/4 v7] ASoC: dwc: Do not use devm_clk_get() if using platform data Jose Abreu <Jose.Abreu@synopsys.com> - 2016-05-23 12:10 +0200
Re: [PATCH 2/4 v7] ASoC: dwc: Do not use devm_clk_get() if using platform data Mark Brown <broonie@kernel.org> - 2016-05-23 19:00 +0200
[PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension Jose Abreu <Jose.Abreu@synopsys.com> - 2016-05-23 12:10 +0200
Re: [PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension Mark Brown <broonie@kernel.org> - 2016-05-24 18:50 +0200
Re: [PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension Jose Abreu <Jose.Abreu@synopsys.com> - 2016-05-24 19:10 +0200
Re: [PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension Mark Brown <broonie@kernel.org> - 2016-05-24 20:00 +0200
Re: [PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension Jose Abreu <Jose.Abreu@synopsys.com> - 2016-05-25 12:20 +0200
Re: [PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension Mark Brown <broonie@kernel.org> - 2016-05-25 12:20 +0200
Re: [PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension Jose Abreu <Jose.Abreu@synopsys.com> - 2016-05-25 12:50 +0200
Re: [PATCH 3/4 v7] ASoC: dwc: Add PIO PCM extension Mark Brown <broonie@kernel.org> - 2016-05-25 15:50 +0200
[PATCH 4/4 v7] ASoC: dwc: Add irq parameter to DOCUMENTATION Jose Abreu <Jose.Abreu@synopsys.com> - 2016-05-23 12:10 +0200
Re: [PATCH 4/4 v7] ASoC: dwc: Add irq parameter to DOCUMENTATION Rob Herring <robh@kernel.org> - 2016-05-23 23:40 +0200
csiph-web