diff options
author | Alan Tull <alan.tull@freescale.com> | 2011-10-25 15:41:55 -0500 |
---|---|---|
committer | Alan Tull <alan.tull@freescale.com> | 2011-10-28 10:16:55 -0500 |
commit | 9ea5b20802d0246bf8de3a8d915ed0cc7cf65e3a (patch) | |
tree | 14c31a7cde158f495afe8b4134d369f278ed920b /include | |
parent | 2f161b93baebacc99f5a454f4a58dc82d12084e3 (diff) |
ENGR00160860-2 hdmi audio driver
Audio driver for i.Mx built-in HDMI Transmitter.
* Uses HDMI Transmitter's built-in DMA.
* Adds IEC958-style digital audio header info to the raw audio.
* Gets pixel clock from the IPU driver and calculates clock
regenerator values (cts and N).
* Move ipu_id, and disp_id from the HDMI's platform data to the
HDMI mfd's platform data. Saves them in the hdmi mfd.
* Add mfd functionality to update the clock regenerator values
when the hdmi changes the pixel clock rate or when requested
from the audio driver with a new audio sample rate.
Signed-off-by: Alan Tull <alan.tull@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fsl_devices.h | 3 | ||||
-rw-r--r-- | include/linux/mfd/mxc-hdmi-core.h | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 0f75c656f005..717ce11d690b 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -236,6 +236,9 @@ struct fsl_mxc_hdmi_platform_data { void (*put_pins) (void); void (*enable_pins) (void); void (*disable_pins) (void); +}; + +struct fsl_mxc_hdmi_core_platform_data { int ipu_id; int disp_id; }; diff --git a/include/linux/mfd/mxc-hdmi-core.h b/include/linux/mfd/mxc-hdmi-core.h index d0712dbb8ad5..f449946a50f6 100644 --- a/include/linux/mfd/mxc-hdmi-core.h +++ b/include/linux/mfd/mxc-hdmi-core.h @@ -30,8 +30,10 @@ void hdmi_write4(unsigned int value, unsigned int reg); void hdmi_irq_init(void); void hdmi_irq_enable(int irq); unsigned int hdmi_irq_disable(int irq); +void hdmi_set_sample_rate(unsigned int rate); +void hdmi_set_clk_regenerator(void); -extern int mxc_hdmi_pixel_clk; -extern int mxc_hdmi_ratio; +extern int mxc_hdmi_ipu_id; +extern int mxc_hdmi_disp_id; #endif |