[PATCH RFC v3 3/7] ASoC: hdmi-codec: Add hdmi-codec for external HDMI-encoders
Mark Brown
broonie at kernel.org
Fri Aug 14 09:18:20 PDT 2015
On Fri, Aug 14, 2015 at 12:30:41PM +0300, Jyri Sarha wrote:
> +struct hdmi_codec_ops {
> + /* For runtime clock configuration from ASoC machine driver.
> + * A direct forward from set_sysclk in struct snd_soc_dai_ops.
> + * Optional */
> + int (*set_clk)(struct device *dev, int clk_id, int freq);
I'd be much happier if we were using the clock API as the external
interface here, it's where we want to be internally too and it's going
to be easier to not introduce any external dependencies on the ASoC
internal stuff.
> + /* Called when ASoC starts an audio stream setup. The call
> + * provides an audio abort callback for stoping an ongoing
> + * stream if the HDMI audio becomes unavailable.
> + * Optional */
> + int (*audio_startup)(struct device *dev,
> + void (*abort_cb)(struct device *dev));
I'm a bit confused about what is going to use abort_cb() and why they
wouldn't just call shutdown instead?
> +/* HDMI codec initalization data */
> +struct hdmi_codec_pdata {
> + struct device *dev; /* The HDMI encoder registering the codec */
Shouldn't this just be dev->parent?
> +enum {
> + DAI_ID_I2C = 0,
> + DAI_ID_SPDIF,
> +};
I2C? :P
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150814/b55546a5/attachment-0001.sig>
More information about the dri-devel
mailing list