piSmasher Configuration Libraries
piSmasher peripheral device configuration libraries
tda1997x.h File Reference

TDA1997x HDMI Receiver FreeBSD. More...

Go to the source code of this file.

Data Structures

struct  tda1997x_mtp_seed
 
struct  tda1997x_irq_event
 TDA1997X interrupt event. More...
 
struct  tda1997x_irq_source
 
struct  tda1997x_vid_cfg
 TDA1997X video configuration. More...
 
struct  tda1997x_cfg
 TDA1997X driver configuration. More...
 
struct  tda1997x_dev
 TDA1997X device structure. More...
 

Enumerations

enum  tda1997x_filters_ctrl_prefil { FILTERS_CTRL_PREFILTER_OFF = 0x00, FILTERS_CTRL_PREFILTER_2TAPS = 0x01, FILTERS_CTRL_PREFILTER_7TAPS = 0X02, FILTERS_CTRL_PREFILTER_27TAPS = 0x03 }
 
enum  tda1997x_of_ctrl_format { OF_CTRL_FORMAT_444 = 0x00, OF_CTRL_FORMAT_422_SMP = 0x01, OF_CTRL_FORMAT_422_CCIR = 0x02 }
 
enum  tda1997x_audio_freq {
  AUDIO_FREQ_HEADER = 0x00, AUDIO_FREQ_32kHz = 0x01, AUDIO_FREQ_44_1kHz = 0x02, AUDIO_FREQ_48kHz = 0x03,
  AUDIO_FREQ_88_2kHz = 0x04, AUDIO_FREQ_96kHz = 0x05, AUDIO_FREQ_176kHz = 0x06, AUDIO_FREQ_192kHz = 0x07
}
 
enum  tda1997x_audio_sel_mode { AUDIO_SEL_MODE_SAMPLES = 0x00, AUDIO_SEL_MODE_HBR = 0x01, AUDIO_SEL_MODE_OBA = 0x02, AUDIO_SEL_MODE_DST = 0x03 }
 
enum  tda1997x_vid_fmt { VIDEO_FORMAT_444, VIDEO_FORMAT_422_SMP, VIDEO_FORMAT_422_CCIR }
 TDA1997X video format. More...
 

Functions

int tda1997x_init (struct tda1997x_dev *dev, struct tda1997x_cfg *cfg, uint8_t *edid_block, uint8_t *edid_ext)
 Initialize TDA1997x HDMI Receiver. More...
 
int tda1997x_handle_irq (struct tda1997x_dev *dev)
 Handle TDA1997x Interrupt. More...
 
int tda1997x_cfg_vid_out (struct tda1997x_dev *dev)
 Configure Video Output Format. More...
 
int tda1997x_cfg_vp (struct tda1997x_dev *dev, uint8_t *vp_conf)
 Configure Video Port. More...
 
int tda1997x_cfg_prefilter (struct tda1997x_dev *dev, enum tda1997x_filters_ctrl_prefil bu, enum tda1997x_filters_ctrl_prefil rv)
 Configure Prefilter. More...
 
int tda1997x_cfg_audio_fmt (struct tda1997x_dev *dev)
 Configure Audio Format. More...
 
int tda1997x_cfg_audio_mode (struct tda1997x_dev *dev, enum tda1997x_audio_sel_mode mode)
 Configure Audio Selection. More...
 
int tda1997x_get_audio_flags (struct tda1997x_dev *dev, uint8_t *status)
 Get Audio Status. More...
 
int tda1997x_get_audio_freq (struct tda1997x_dev *dev, enum tda1997x_audio_freq *freq)
 Get Audio Frequency. More...
 
int tda1997x_cfg_edid (struct tda1997x_dev *dev, uint8_t *edid, uint8_t *edid_ext)
 Configure EDID. More...
 
int tda1997x_get_timing (struct tda1997x_dev *dev, uint8_t *data)
 Get Timing Values Sets an data memory block to the video timing register values. More...
 

Detailed Description

TDA1997x HDMI Receiver FreeBSD.

Author
R. Bush bush@.nosp@m.krtk.nosp@m.l.com
Version
v1.0
Date
2017 September 14 Copyright (c) 2017, krtkl inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project.