[alsa-devel] [PATCH V2] ASoC: amd: dma driver changes for BT I2S controller instance
Mark Brown
broonie at kernel.org
Mon Apr 16 19:22:33 CEST 2018
On Fri, Mar 30, 2018 at 02:09:54AM +0530, Vijendar Mukunda wrote:
> Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda at amd.com>
> Signed-off-by: Akshu Agrawal <akshu.agrawal at amd.com>
> Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> v1->v2: fixed kbuild errors
> ---
Please put inter-version changelogs after the --- as covered in
SubmittingPatches.
> +#ifdef CONFIG_SND_DESIGNWARE_PCM
> + adata->i2s_capture_instance = dev->i2s_instance;
> +#else
> + adata->i2s_capture_instance = I2S_SP_INSTANCE;
> +#endif
These ifdefs aren't great - we should be able to build a single kernel
image that works on all systems so if we've got configuration options
based on the presence of other drivers then presumably existing systems
are going to be disrupted here. On the other hand if all systems are
able to use the Designware driver then we should just do that
unconditionally.
This will also break in cases where the Designware driver gets built as
a module.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180416/6898d38c/attachment.sig>
More information about the Alsa-devel
mailing list