On Wed, 13 May 2015 12:23:45 +0300 Jyri Sarha jsarha@ti.com wrote:
Jean-Francois, would you consider trying the generic ASoC patch with your HW, as I can not test the spdif functionality with mine?
Hi Jyri,
I am not sure to need all the stuff you coded.
My tda998x CODEC is quite empty and it works fine in my system. If you look at my last patch request ([PATCH v12 6/6] ASoC: tda998x: add a codec to the HDMI transmitter - http://mailman.alsa-project.org/pipermail/alsa-devel/2015-May/091758.html), the code is much smaller than yours and does not ask for a structure constraint (+/* Has to be the first member of the hdmi endcoder's drvdata */).
So, I'd rather see a real hdmi codec library, i.e. a set of common functions as Russell's DRM ELD helper, each specific hdmi codec being free about the mechanism used for the exchanges with the hdmi transmitter.