lkml.org 
[lkml]   [2020]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/9] ASoC: meson: aiu: add hdmi codec control support
On Thu, Feb 13, 2020 at 04:51:55PM +0100, Jerome Brunet wrote:

> +int aiu_add_component(struct device *dev,
> + const struct snd_soc_component_driver *component_driver,
> + struct snd_soc_dai_driver *dai_drv,
> + int num_dai,
> + const char *debugfs_prefix)
> +{
> + struct snd_soc_component *component;
> +
> + component = devm_kzalloc(dev, sizeof(*component), GFP_KERNEL);
> + if (!component)
> + return -ENOMEM;
> +
> +#ifdef CONFIG_DEBUG_FS
> + component->debugfs_prefix = debugfs_prefix;
> +#endif

You really shouldn't be doing this as it could conflict with something
the machine driver wants to do however it's probably not going to be an
issue in practice as it's not like there's going to be multiple SoCs in
the card at once and if there were there'd doubltess be other issues.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-02-13 19:22    [W:0.084 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site