Searched refs:ao_attr (Results 1 – 7 of 7) sorted by relevance
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/ |
D | drv_hdmi_infoframe.c | 609 hdmi_ao_attr *ao_attr = HI_NULL; in drv_hdmi_audio_infoframe_send() local 622 ao_attr = &hdmi_dev->attr.ao_attr; in drv_hdmi_audio_infoframe_send() 626 … if (ao_attr->sound_intf == HDMI_AUDIO_INTF_SPDIF || ao_attr->sound_intf == HDMI_AUDIO_INTF_HBRA) { in drv_hdmi_audio_infoframe_send() 629 hdmi_info("audio channel %u \n", ao_attr->channels); in drv_hdmi_audio_infoframe_send() 630 …audio_infoframe->channels = (ao_attr->channels >= 2) ? (ao_attr->channels - 1) : 0; /* 2,1,0, chan… in drv_hdmi_audio_infoframe_send() 633 …if (ao_attr->audio_code == HDMI_AUDIO_CODING_TYPE_AC3 || ao_attr->audio_code == HDMI_AUDIO_CODING_… in drv_hdmi_audio_infoframe_send() 634 …ao_attr->audio_code == HDMI_AUDIO_CODING_TYPE_EAC3 || ao_attr->audio_code == HDMI_AUDIO_CODING_TYP… in drv_hdmi_audio_infoframe_send() 635 audio_infoframe->coding_type = ao_attr->audio_code; in drv_hdmi_audio_infoframe_send() 639 hdmi_info("aduio code : %u \n", ao_attr->audio_code); in drv_hdmi_audio_infoframe_send() 641 switch (ao_attr->channels) { in drv_hdmi_audio_infoframe_send()
|
D | drv_hdmi_frl.c | 203 static hi_void frl_dfm_construct(dfm_in *dfm, const hdmi_ao_attr *ao_attr, in frl_dfm_construct() argument 219 dfm->audio_rate = sample_fs_convert_to_audio_rate(ao_attr->sample_fs); in frl_dfm_construct() 220 dfm->layout = (ao_attr->channels > HDMI_AUDIO_FORMAT_2CH) ? HI_TRUE : HI_FALSE; in frl_dfm_construct() 371 const hdmi_ao_attr *ao_attr = HI_NULL; in frl_check_format() local 376 ao_attr = &attr->ao_attr; in frl_check_format() 393 frl_dfm_construct(&dfm, ao_attr, app_attr, video_def); in frl_check_format() 484 audio_cfg.sample_rate = hdmi_dev->attr.ao_attr.sample_fs; in frl_n_cts_config() 1125 const hdmi_ao_attr *ao_attr = HI_NULL; in dfm_calculate() local 1133 ao_attr = &attr->ao_attr; in dfm_calculate() 1142 frl_dfm_construct(&dfm, ao_attr, app_attr, video_def); in dfm_calculate()
|
D | drv_hdmi_intf.c | 967 audio_attr = &attr->ao_attr; 1225 audio_attr = &hdmi_dev->attr.ao_attr; 1812 static hi_s32 check_audio_attr(const hdmi_ao_attr *ao_attr) argument 1814 if (ao_attr->sound_intf != HDMI_AUDIO_INTF_I2S && 1815 ao_attr->sound_intf != HDMI_AUDIO_INTF_SPDIF && 1816 ao_attr->sound_intf != HDMI_AUDIO_INTF_HBRA) { 1817 hdmi_err("the audio interface(%u) is invalid\n", ao_attr->sound_intf); 1821 if (ao_attr->channels < HDMI_AUDIO_FORMAT_2CH || ao_attr->channels > HDMI_AUDIO_FORMAT_8CH) { 1822 hdmi_err("the audio channel number(%u) is invalid\n", ao_attr->channels); 1826 if (ao_attr->sample_fs < HDMI_SAMPLE_RATE_32K || ao_attr->sample_fs > HDMI_SAMPLE_RATE_768K) { [all …]
|
D | drv_hdmi_intf.h | 102 hi_s32 drv_hdmi_ao_attr_set(hdmi_device *hdmi_dev, const hdmi_ao_attr *ao_attr); 104 hi_s32 drv_hdmi_ao_attr_get(const hdmi_device *hdmi_dev, hdmi_ao_attr *ao_attr);
|
D | drv_hdmi_proc.c | 1074 static hi_void porc_auido_attr(hdmi_proc_entry *file, const hdmi_ao_attr *ao_attr, in porc_auido_attr() argument 1085 index = min((hi_s32)ao_attr->sound_intf, HDMI_AUDIO_INTF_BUTT); in porc_auido_attr() 1090 index = min((hi_s32)ao_attr->audio_code, HDMI_AUDIO_CODING_TYPE_BUTT); in porc_auido_attr() 1094 index = min((hi_s32)ao_attr->channels, HDMI_AUDIO_FORMAT_BUTT); in porc_auido_attr() 1098 osal_seq_printf(file, "%-15s: %-20d |", "SampleFreq", ao_attr->sample_fs); in porc_auido_attr() 1102 osal_seq_printf(file, "%-15s: %-20d |", "SampleDepth", ao_attr->sample_depth); in porc_auido_attr() 1105 osal_seq_printf(file, "%-15s: %-20s |", "DownSample", ao_attr->down_sample ? STR_YES : STR_NO); in porc_auido_attr() 1181 hdmi_ao_attr *ao_attr = HI_NULL; in proc_audio_info() local 1186 ao_attr = &(hdmi_dev->attr.ao_attr); in proc_audio_info() 1191 porc_auido_attr(file, ao_attr, &hw_status); in proc_audio_info()
|
D | drv_hdmi_common.h | 624 hdmi_ao_attr ao_attr; member
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/audio/ |
D | sample_audio.c | 850 static hi_void sample_audio_ai_hdmi_ao_init_param(AIO_ATTR_S *ai_attr, AIO_ATTR_S *ao_attr) in sample_audio_ai_hdmi_ao_init_param() argument 863 ao_attr->enSamplerate = AUDIO_SAMPLE_RATE_48000; in sample_audio_ai_hdmi_ao_init_param() 864 ao_attr->enBitwidth = AUDIO_BIT_WIDTH_16; in sample_audio_ai_hdmi_ao_init_param() 865 ao_attr->enWorkmode = AIO_MODE_I2S_MASTER; in sample_audio_ai_hdmi_ao_init_param() 866 ao_attr->enSoundmode = AUDIO_SOUND_MODE_STEREO; in sample_audio_ai_hdmi_ao_init_param() 867 ao_attr->u32EXFlag = 1; in sample_audio_ai_hdmi_ao_init_param() 868 ao_attr->u32FrmNum = FPS_30; in sample_audio_ai_hdmi_ao_init_param() 869 ao_attr->u32PtNumPerFrm = SAMPLE_AUDIO_PTNUMPERFRM; in sample_audio_ai_hdmi_ao_init_param() 870 ao_attr->u32ChnCnt = 2; /* 2: chn num */ in sample_audio_ai_hdmi_ao_init_param() 871 ao_attr->u32ClkSel = 0; in sample_audio_ai_hdmi_ao_init_param() [all …]
|