* [PATCH] ASoC: tegra: Remove redundant initialisation of compat_filter_fn
@ 2013-10-19 13:17 Mark Brown
2013-10-19 17:26 ` Lars-Peter Clausen
[not found] ` <1382188623-19494-1-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
0 siblings, 2 replies; 5+ messages in thread
From: Mark Brown @ 2013-10-19 13:17 UTC (permalink / raw)
To: Thierry Reding, Stephen Warren
Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Mark Brown
From: Mark Brown <broonie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Setting a field in a static struct to NULL has no effect so don't bother
(and don't generate false positives for grep).
Signed-off-by: Mark Brown <broonie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
sound/soc/tegra/tegra_pcm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c
index f056f63..7b2d23b 100644
--- a/sound/soc/tegra/tegra_pcm.c
+++ b/sound/soc/tegra/tegra_pcm.c
@@ -56,7 +56,6 @@ static const struct snd_pcm_hardware tegra_pcm_hardware = {
static const struct snd_dmaengine_pcm_config tegra_dmaengine_pcm_config = {
.pcm_hardware = &tegra_pcm_hardware,
.prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config,
- .compat_filter_fn = NULL,
.prealloc_buffer_size = PAGE_SIZE * 8,
};
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ASoC: tegra: Remove redundant initialisation of compat_filter_fn
2013-10-19 13:17 [PATCH] ASoC: tegra: Remove redundant initialisation of compat_filter_fn Mark Brown
@ 2013-10-19 17:26 ` Lars-Peter Clausen
[not found] ` <1382188623-19494-1-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
1 sibling, 0 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2013-10-19 17:26 UTC (permalink / raw)
To: Mark Brown
Cc: linux-tegra, alsa-devel, Thierry Reding, Mark Brown,
Stephen Warren
On 10/19/2013 03:17 PM, Mark Brown wrote:
> From: Mark Brown <broonie@linaro.org>
>
> Setting a field in a static struct to NULL has no effect so don't bother
> (and don't generate false positives for grep).
The idea was to make it explicit that tegra uses the compat path, but with
the filter function set to NULL.
- Lars
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ASoC: tegra: Remove redundant initialisation of compat_filter_fn
[not found] ` <1382188623-19494-1-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
@ 2013-10-20 21:38 ` Stephen Warren
[not found] ` <52644D3C.9020709-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Warren @ 2013-10-20 21:38 UTC (permalink / raw)
To: Mark Brown, Thierry Reding
Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, Mark Brown
On 10/19/2013 02:17 PM, Mark Brown wrote:
> From: Mark Brown <broonie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> Setting a field in a static struct to NULL has no effect so don't bother
> (and don't generate false positives for grep).
I'm fine with this either way, so feel free to take my ack whichever way
you work this out with Lars-Peter.
Acked-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [alsa-devel] [PATCH] ASoC: tegra: Remove redundant initialisation of compat_filter_fn
[not found] ` <52644D3C.9020709-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2013-10-22 11:40 ` Lars-Peter Clausen
[not found] ` <52666422.9010505-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Lars-Peter Clausen @ 2013-10-22 11:40 UTC (permalink / raw)
To: Stephen Warren
Cc: Mark Brown, Thierry Reding, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Mark Brown
On 10/20/2013 11:38 PM, Stephen Warren wrote:
> On 10/19/2013 02:17 PM, Mark Brown wrote:
>> From: Mark Brown <broonie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>>
>> Setting a field in a static struct to NULL has no effect so don't bother
>> (and don't generate false positives for grep).
>
> I'm fine with this either way, so feel free to take my ack whichever way
> you work this out with Lars-Peter.
I don't care that much either, just wanted to give an explanation why things
are the way they are. Mark, if you want to merge this patch you can add:
Acked-by: Lars-Peter Clausen <lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
Btw. wasn't there a plan to move tegra to the generic dma bindings? If not I
think it might be a good idea to add the possibility to let the DMA driver
overwrite the DT attribute parsing done by of_dma_match_channel(). This
would spare drivers from having to do the parsing manually and it would
allow the tegra pcm driver to just follow the normal OF path in the
generic-dmaengine-pcm driver and didn't had to rely on the compat path.
- Lars
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [alsa-devel] [PATCH] ASoC: tegra: Remove redundant initialisation of compat_filter_fn
[not found] ` <52666422.9010505-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
@ 2013-10-22 21:07 ` Stephen Warren
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2013-10-22 21:07 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: Mark Brown, Thierry Reding, linux-tegra-u79uwXL29TY76Z2rM5mHXA,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw, Mark Brown
On 10/22/2013 12:40 PM, Lars-Peter Clausen wrote:
> On 10/20/2013 11:38 PM, Stephen Warren wrote:
>> On 10/19/2013 02:17 PM, Mark Brown wrote:
>>> From: Mark Brown <broonie-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>>>
>>> Setting a field in a static struct to NULL has no effect so don't bother
>>> (and don't generate false positives for grep).
>>
>> I'm fine with this either way, so feel free to take my ack whichever way
>> you work this out with Lars-Peter.
>
> I don't care that much either, just wanted to give an explanation why things
> are the way they are. Mark, if you want to merge this patch you can add:
> Acked-by: Lars-Peter Clausen <lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
>
> Btw. wasn't there a plan to move tegra to the generic dma bindings?
IIRC, it's been using them for a release or two.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-22 21:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-19 13:17 [PATCH] ASoC: tegra: Remove redundant initialisation of compat_filter_fn Mark Brown
2013-10-19 17:26 ` Lars-Peter Clausen
[not found] ` <1382188623-19494-1-git-send-email-broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-10-20 21:38 ` Stephen Warren
[not found] ` <52644D3C.9020709-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-10-22 11:40 ` [alsa-devel] " Lars-Peter Clausen
[not found] ` <52666422.9010505-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2013-10-22 21:07 ` Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).