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


Groups > linux.kernel > #1271817

Re: [PATCHv2 3/3] ASoC: samsung: pass filter function as pointer

From Krzysztof Kozlowski <k.kozlowski@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCHv2 3/3] ASoC: samsung: pass filter function as pointer
Date 2015-11-18 03:20 +0100
Message-ID <qw0vL-4VG-7@gated-at.bofh.it> (permalink)
References <qvQPL-6YM-3@gated-at.bofh.it> <qvQPM-6YM-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 18.11.2015 00:55, Arnd Bergmann wrote:
> As we are now passing the filter data as pointers to the drivers,
> we can take the final step and also pass the filter function the
> same way. I'm keeping this change separate, as there it's less
> obvious that this is a net win.
> 
> Upsides of this are:
> 
> - The ASoC drivers are completely independent from the DMA engine
>   implementation, which simplifies the Kconfig logic and in theory
>   allows the same sound drivers to be built in a kernel that supports
>   different kinds of dmaengine drivers.
> 
> - Consistency with other subsystems and drivers
> 
> On the other hand, we have a few downsides:
> 
> - The s3c24xx-dma driver now needs to be built-in for the ac97 platform
>   device to be instantiated on s3c2440.
> 
> - samsung_dmaengine_pcm_config cannot be marked 'const' any more
>   because the filter function pointer needs to be set at runtime.
>   This is safe as long we don't have multiple different DMA engines
>   in thet same system at runtime, but is nonetheless ugly.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> v2: avoid possibly NULL pdata
> 

Looks good.

I also tested entire patchset on Exynos4412/Trats2 board (custom kernel
with audio working) for regressions and it worked fine. However, since
this was not a S3C24xx/S3C64xx board, I don't find that testing
sufficient for a tag. So only:

Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>

Best regards,
Krzysztof

--
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

[PATCHv2 3/3] ASoC: samsung: pass filter function as pointer Arnd Bergmann <arnd@arndb.de> - 2015-11-17 17:00 +0100
  Re: [PATCHv2 3/3] ASoC: samsung: pass filter function as pointer Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2015-11-18 03:20 +0100
    Re: [PATCHv2 3/3] ASoC: samsung: pass filter function as pointer Arnd Bergmann <arnd@arndb.de> - 2015-11-18 10:40 +0100

csiph-web