ASoC: omap-hdmi-audio: Add platfrom device for OMAP HDMI audio support

The platform device should only be registered from OMAPDSS HDMI
driver. The platfrom driver registers and unregisters all ASoC
components needed for OMAP HDMI audio.

The hdmi audio driver implements cpu-dai component using the callbacks
provided by OMAPDSS. Omap-pcm is registered for platform component,
dummy hdmi-audio-codec is registered for codec component, and
asoc-simple-card is registered for machine driver.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
ASoC: omap-hdmi-audio: SQUASH or DROP: Add WARN_ON(ad->current_stream != substream)

Signed-off-by: Jyri Sarha <jsarha@ti.com>
ASoC: omap-hdmi-audio: SQUASH or DROP: J6 compatibility trough self implemented card

If SQUASHED, put this as the last chapter to commit message (and remove old):

The hdmi audio driver implements cpu-dai component using the callbacks
provided by OMAPDSS and registers the component under DSS HDMI
device. Omap-pcm is registered for platform component also under DSS
HDMI device. Dummy hdmi-audio-codec is registered for codec component.
The hdmi audio driver implement also the card component and registers
it under its own platform device.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
ASoC: omap-hdmi-audio: Use devm_kasprintf

This is not SQUASHed for easier backporting to 3.14LTS.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
ASoC: J6 SQUASH

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: Kconfig: Remove HDMI audio booleans from Kconfig

The booleans are not used anymore. Just select SND_OMAP_SOC_HDMI_AUDIO
to enable OMAP HDMI audio support.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: hdmi: Make hdmi_mode_has_audio() more user friedly

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: hdmi.h: Add members to hdmi drvdata for audio implementation

Adds display_enabled flag and audio_abort_cb callback to struct hdmi.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: hdmi4: Remove callbacks for the old ASoC DAI driver

Removes the OMAP4 HDMI audio callbacks for the old external DAI driver.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: hdmi4: Register ASoC platfrom device for omap hdmi audio

Implements callbacks for OMAP HDMI audio platform driver and registers
it in probe function. Unregistering is done in remove function.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: hdmi4: SQUASH or DROP: J6 compatibility trough self implemented card

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: hdmi5: Remove callbacks for the old ASoC DAI driver

Removes the OMAP5 HDMI audio callbacks for the old external DAI driver.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: hdmi5: Register ASoC platfrom device for omap hdmi audio

Implements callbacks for OMAP HDMI audio platform driver and registers
it in probe function. Unregistering is done in remove function.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: hdmi5: SQUASH or DROP: J6 compatibility trough self implemented card

Signed-off-by: Jyri Sarha <jsarha@ti.com>
ASoC: omap: Remove obsolete HDMI audio code and Kconfig options

Removes omap-hdmi DAI driver, omap-hdmi-card driver, the related
Kconfig options, and Makefile entries. The HDMI DAI drivers has been
integrated directly to OMAP4+ HDMI drivers and simple-card driver is
used instead of omap-hdmi-card driver.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
OMAPDSS: Remove all references to obsolete HDMI audio callbacks

In new model these callbacks are obsolete since the ASoC component
drivers are integrated into the HDMI drivers and no callbacks are
needed anymore.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
ARM: omap2plus_defconfig: Build DRM with DSS HDMI support for OMAP4 in kernel

This patch is here only as an example on how to enable HDMI video and
audio for Panda board. After the late DSS changes it is not possible
to get HDMI audio working without DRM.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
ARM: omap2plus_defconfig: Enable OMAP HDMI audio support

This patch is here only as an example on how to enable HDMI audio for
OMAP family SoCs. Adds CONFIG_SND_OMAP_SOC_HDMI_AUDIO=m.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
ARM: omap2plus_defconfig: Enable OMAP5 HDMI support

This patch is here only as an example on how to enable HDMI video (and
audio if SND_OMAP_SOC_HDMI_AUDIO is selected) for OMAP5 uEVM. Adds
CONFIG_GPIO_PCA953X=y and CONFIG_OMAP5_DSS_HDMI=y.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
omap2plus_defconfig: Enable USB ethernet at boot

Signed-off-by: Jyri Sarha <jsarha@ti.com>