[alsa-devel] [PATCH v2] ASoC: soc-core: add snd_soc_of_parse_master_clkdir() for dt
Mark Brown
broonie at kernel.org
Tue Jan 7 18:05:38 CET 2014
On Thu, Jan 02, 2014 at 10:48:25AM +0800, Xiubo Li wrote:
> This patch adds snd_soc_of_parse_master_clkdir() and supports below
> style on dt:
>
> master-clkdir-out;
>
> If this property is absent 0 will be returned, 1 otherwise.
> 0 : SND_SOC_CLOCK_IN
> 1 : SND_SOC_CLOCK_OUT
This is mostly OK code wise, though it would be good to use those
constants in the code. However I'm still not sure about it being a good
idea - it's similar issues to those with clock IDs but less strong. Do
you have a user in mind?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140107/26f16b18/attachment.sig>
More information about the Alsa-devel
mailing list