├── CEC ├── Android.mk ├── RtkCecHardware.h └── hdmi_cec.hercules.so ├── HWM ├── io.h └── rtk_hwm.h ├── StreamingEngine2 ├── Android.mk ├── Makefile ├── Makefile.dvdplayer ├── Makefile.linaro ├── Makefile.nas ├── MdAPI.h ├── MdCmdSaturn.h ├── MdDrv.h ├── MdLib.h ├── MdReg.h ├── MdRegSaturn.h ├── SeAPI.h ├── SeCmdSaturn.h ├── SeDrv.h ├── SeExtraParamSaturn.h ├── SeLib.h ├── SeReg.h ├── SeRegSaturn.h ├── SeRegTableSaturn.h ├── SeStretchUtils.h ├── dbgmsg.h ├── dcu_reg.h ├── libhwse.hercules.so ├── md.h ├── md_api.h ├── md_export.h ├── md_reg.h ├── rtk_uctrl.h ├── rtk_uctrl_wrapper.h ├── sb2_reg.h ├── se.h ├── se_export.h └── se_local.h ├── VideoEngine2 ├── hercules │ ├── Android.mk │ ├── JPEG │ │ ├── Android.mk │ │ ├── Makefile.linaro │ │ ├── config.h │ │ ├── include │ │ │ ├── jpuhelper.h │ │ │ ├── jpulog.h │ │ │ ├── jpurun.h │ │ │ ├── mixer.h │ │ │ └── msvc │ │ │ │ ├── inttypes.h │ │ │ │ └── stdint.h │ │ ├── jdi │ │ │ ├── jdi.h │ │ │ ├── linux │ │ │ │ └── driver │ │ │ │ │ ├── jmm.h │ │ │ │ │ └── jpu.h │ │ │ └── mm.h │ │ ├── jpuapi │ │ │ ├── Android.mk │ │ │ ├── jpuapi.h │ │ │ ├── jpuapifunc.h │ │ │ ├── jpuconfig.h │ │ │ ├── jputable.h │ │ │ ├── jputypes.h │ │ │ └── regdefine.h │ │ └── src │ │ │ └── Android.mk │ ├── VE │ │ ├── Android.mk │ │ ├── Coda960Dec.mak │ │ ├── Coda980Dec.mak │ │ ├── Coda980Enc.mak │ │ ├── Makefile.linaro │ │ ├── Wave5xxDec.mak │ │ ├── Wave5xxMulti.mak │ │ ├── aes │ │ │ └── aes.h │ │ ├── config.h │ │ ├── sample │ │ │ ├── Android.mk │ │ │ ├── helper │ │ │ │ ├── bitstream │ │ │ │ │ └── .gitignore │ │ │ │ ├── comparator │ │ │ │ │ └── .gitignore │ │ │ │ ├── display │ │ │ │ │ └── .gitignore │ │ │ │ ├── main_helper.h │ │ │ │ ├── misc │ │ │ │ │ ├── debug.h │ │ │ │ │ ├── getopt.h │ │ │ │ │ └── skip.h │ │ │ │ ├── msvc │ │ │ │ │ ├── inttypes.h │ │ │ │ │ └── stdint.h │ │ │ │ └── yuv │ │ │ │ │ └── .gitignore │ │ │ └── main_multi_instance_test.h │ │ ├── vdi │ │ │ ├── linux │ │ │ │ └── driver │ │ │ │ │ ├── vmm.h │ │ │ │ │ └── vpu.h │ │ │ ├── mm.h │ │ │ ├── vdi.h │ │ │ └── vdi_osal.h │ │ └── vpuapi │ │ │ ├── .RTKRevision.426f204.c │ │ │ ├── Android.mk │ │ │ ├── coda9 │ │ │ ├── coda9.h │ │ │ ├── coda9_regdefine.h │ │ │ └── coda9_vpuconfig.h │ │ │ ├── coda980.h │ │ │ ├── picasso.h │ │ │ ├── product.h │ │ │ ├── vpuapi.h │ │ │ ├── vpuapifunc.h │ │ │ ├── vpuconfig.h │ │ │ ├── vpuerror.h │ │ │ ├── vputypes.h │ │ │ └── wave │ │ │ ├── wave5.h │ │ │ └── wave5_regdefine.h │ ├── coda980_dec_test │ ├── coda980_enc_test │ ├── jpurun │ ├── libjpu.so │ └── libvpu.so └── hercules32 ├── audio ├── Android.mk └── audio.primary.hercules.so ├── bootctrl ├── Android.mk ├── bootctrl.h └── bootctrl.hercules.so ├── bt └── rtkbt │ ├── Android.mk │ ├── Firmware │ ├── BT │ │ ├── BT_Firmware.mk │ │ ├── UART_2M │ │ │ ├── rtl8703as_config │ │ │ ├── rtl8703bs_config │ │ │ ├── rtl8703cs_config │ │ │ ├── rtl8723as_config │ │ │ ├── rtl8723bs_VQ0_config │ │ │ ├── rtl8723bs_config │ │ │ ├── rtl8723cs_cg_config │ │ │ ├── rtl8723cs_vf_config │ │ │ ├── rtl8723cs_xx_config │ │ │ ├── rtl8723ds_config │ │ │ ├── rtl8761at_config │ │ │ ├── rtl8761bt_config │ │ │ ├── rtl8821as_config │ │ │ ├── rtl8821cs_config │ │ │ ├── rtl8822bs_config │ │ │ └── rtl8822cs_config │ │ ├── fw_info.txt │ │ ├── rtl8703as_config │ │ ├── rtl8703as_fw │ │ ├── rtl8703bs_config │ │ ├── rtl8703bs_fw │ │ ├── rtl8703cs_config │ │ ├── rtl8703cs_fw │ │ ├── rtl8723a_config │ │ ├── rtl8723a_config_addr │ │ ├── rtl8723a_fw │ │ ├── rtl8723as_config │ │ ├── rtl8723as_fw │ │ ├── rtl8723b_config │ │ ├── rtl8723b_config_2Ant_S0 │ │ ├── rtl8723b_fw │ │ ├── rtl8723bs_VQ0_config │ │ ├── rtl8723bs_VQ0_fw │ │ ├── rtl8723bs_config │ │ ├── rtl8723bs_fw │ │ ├── rtl8723bu_config │ │ ├── rtl8723c_fw │ │ ├── rtl8723cs_cg_config │ │ ├── rtl8723cs_cg_fw │ │ ├── rtl8723cs_vf_config │ │ ├── rtl8723cs_vf_fw │ │ ├── rtl8723cs_xx_config │ │ ├── rtl8723cs_xx_fw │ │ ├── rtl8723d_config │ │ ├── rtl8723d_fw │ │ ├── rtl8723ds_config │ │ ├── rtl8723ds_fw │ │ ├── rtl8761a_config │ │ ├── rtl8761at8192ee_fw │ │ ├── rtl8761at8812ae_fw │ │ ├── rtl8761at_config │ │ ├── rtl8761at_fw │ │ ├── rtl8761au8192ee_fw │ │ ├── rtl8761au8812ae_fw │ │ ├── rtl8761au_fw │ │ ├── rtl8761aw8192eu_config │ │ ├── rtl8761aw8192eu_fw │ │ ├── rtl8761b_config │ │ ├── rtl8761b_fw │ │ ├── rtl8761bt_config │ │ ├── rtl8761bt_fw │ │ ├── rtl8821a_config │ │ ├── rtl8821a_fw │ │ ├── rtl8821as_config │ │ ├── rtl8821as_fw │ │ ├── rtl8821c_config │ │ ├── rtl8821c_fw │ │ ├── rtl8821cs_config │ │ ├── rtl8821cs_fw │ │ ├── rtl8822b_config │ │ ├── rtl8822b_fw │ │ ├── rtl8822bs_config │ │ ├── rtl8822bs_fw │ │ ├── rtl8822c_config │ │ ├── rtl8822c_fw │ │ ├── rtl8822cs_config │ │ └── rtl8822cs_fw │ └── TV │ │ ├── TV_Firmware.mk │ │ ├── UART_2M │ │ ├── rtl8723bs_VQ0_config │ │ ├── rtl8723bs_config │ │ ├── rtl8723ds_config │ │ ├── rtl8761at_config │ │ ├── rtl8761bt_config │ │ ├── rtl8821as_config │ │ ├── rtl8821cs_config │ │ ├── rtl8822bs_config │ │ └── rtl8822cs_config │ │ ├── fw_info.txt │ │ ├── rtl8723b_config │ │ ├── rtl8723b_fw │ │ ├── rtl8723bs_VQ0_config │ │ ├── rtl8723bs_VQ0_fw │ │ ├── rtl8723bs_config │ │ ├── rtl8723bs_fw │ │ ├── rtl8723bu_config │ │ ├── rtl8723d_config │ │ ├── rtl8723d_fw │ │ ├── rtl8723ds_config │ │ ├── rtl8723ds_fw │ │ ├── rtl8761a_config │ │ ├── rtl8761a_fw │ │ ├── rtl8761at8192er_fw │ │ ├── rtl8761at_config │ │ ├── rtl8761at_fw │ │ ├── rtl8761au8192ee_fw │ │ ├── rtl8761au8812ae_fw │ │ ├── rtl8761au_fw │ │ ├── rtl8761aw8192eu_config │ │ ├── rtl8761aw8192eu_fw │ │ ├── rtl8761b_config │ │ ├── rtl8761b_fw │ │ ├── rtl8761bt_config │ │ ├── rtl8761bt_fw │ │ ├── rtl8821a_config │ │ ├── rtl8821a_fw │ │ ├── rtl8821as_config │ │ ├── rtl8821as_fw │ │ ├── rtl8821c_config │ │ ├── rtl8821c_fw │ │ ├── rtl8821cs_config │ │ ├── rtl8821cs_fw │ │ ├── rtl8822b_config │ │ ├── rtl8822b_fw │ │ ├── rtl8822bs_config │ │ ├── rtl8822bs_fw │ │ ├── rtl8822c_config │ │ ├── rtl8822c_fw │ │ ├── rtl8822cs_config │ │ └── rtl8822cs_fw │ ├── addon │ ├── Android.mk │ ├── audio_hal_bee_hidraw │ │ ├── Android.mk │ │ ├── addon.mk │ │ └── audio_hal │ │ │ ├── Android.mk │ │ │ ├── config.h │ │ │ └── voice_hidraw.h │ ├── audio_sco_hw │ │ ├── Android.mk │ │ ├── audio_sco_hw.c.bak │ │ └── audio_sco_hw.h │ ├── bee1 │ │ ├── Android.mk │ │ ├── addon.mk │ │ └── vendor │ │ │ ├── etc │ │ │ └── hidraw_setting │ │ │ └── usr │ │ │ └── keylayout │ │ │ └── Vendor_005d_Product_0001.kl │ ├── bee2 │ │ ├── Android.mk │ │ ├── addon.mk │ │ └── vendor │ │ │ ├── etc │ │ │ └── hidraw_setting │ │ │ └── usr │ │ │ └── keylayout │ │ │ └── Vendor_005d_Product_0002.kl │ └── vr_bee_hidraw_daemon │ │ ├── Android.mk │ │ ├── addon.mk │ │ └── hidraw │ │ ├── Android.mk │ │ ├── bee_settings.h │ │ ├── config.h │ │ ├── get_voice_app.h │ │ ├── hidraw.rc │ │ ├── sbc │ │ ├── sbc.h │ │ ├── sbc.pc.in │ │ ├── sbc.sym │ │ ├── sbc_math.h │ │ ├── sbc_primitives.h │ │ ├── sbc_primitives_armv6.h │ │ ├── sbc_primitives_iwmmxt.h │ │ ├── sbc_primitives_mmx.h │ │ ├── sbc_primitives_neon.h │ │ ├── sbc_private.h │ │ └── sbc_tables.h │ │ ├── voice_hidraw.h │ │ └── voice_uipc.h │ ├── bluetooth │ └── bdroid_buildcfg.h │ ├── code │ ├── Android.mk │ ├── libbt-vendor │ │ ├── Android.mk │ │ ├── codec │ │ │ ├── Android.mk │ │ │ └── sbc │ │ │ │ ├── formats.h │ │ │ │ ├── sbc.h │ │ │ │ ├── sbc_math.h │ │ │ │ ├── sbc_primitives.h │ │ │ │ ├── sbc_primitives_armv6.h │ │ │ │ ├── sbc_primitives_iwmmxt.h │ │ │ │ ├── sbc_primitives_mmx.h │ │ │ │ ├── sbc_primitives_neon.h │ │ │ │ ├── sbc_private.h │ │ │ │ └── sbc_tables.h │ │ ├── include │ │ │ ├── bt_list.h │ │ │ ├── bt_skbuff.h │ │ │ ├── bt_vendor_rtk.h │ │ │ ├── hardware.h │ │ │ ├── hci_h5_int.h │ │ │ ├── rtk_btservice.h │ │ │ ├── rtk_btsnoop_net.h │ │ │ ├── rtk_common.h │ │ │ ├── rtk_hcidefs.h │ │ │ ├── rtk_parse.h │ │ │ ├── rtk_poll.h │ │ │ ├── rtk_socket.h │ │ │ ├── unused.h │ │ │ ├── upio.h │ │ │ └── userial_vendor.h │ │ ├── libbt-vendor.so │ │ └── src │ │ │ └── Android.mk │ └── rtkcmd │ │ ├── Android.mk │ │ └── rtkcmd │ ├── rtkbt.mk │ ├── system │ └── etc │ │ └── permissions │ │ ├── android.hardware.bluetooth.xml │ │ └── android.hardware.bluetooth_le.xml │ └── vendor │ ├── etc │ ├── bluetooth │ │ ├── dummy_addr │ │ └── rtkbt.conf │ └── sco_audio_policy_configuration.xml │ └── usr │ ├── idc │ ├── Vendor_005d_Product_0002.idc │ └── Vendor_0416_Product_0300.idc │ └── keylayout │ ├── Vendor_005d_Product_0002.kl │ └── Vendor_0416_Product_0300.kl ├── camera3 ├── Android.mk ├── Base.h ├── CameraCap.h ├── CameraFactory.h ├── CameraHardware3Base.h ├── CameraHardware3v2.h ├── CameraUtilCommon.h ├── Common.h ├── Debug.h ├── Debug_old.h ├── MJPGFmt.h ├── ProviderPriv.h ├── RtkPrivBufDef.h ├── V4L2Common.h ├── V4L2Device2.h ├── V4L2Device2Callback.h ├── V4L2Device2Common.h ├── V4L2Device2DI.h ├── V4L2Device2DownFps.h ├── V4L2Device2MJPG.h ├── V4L2Device2MJPG_old.h ├── VOWBCallback.h ├── jpegexif │ └── libjpeg │ │ ├── config.h │ │ ├── exif-i18n.h │ │ ├── jpeg-data.h │ │ └── jpeg-marker.h ├── legacy │ ├── CamBufDef.h │ ├── CameraHardware3.h │ └── V4L2Device.h └── misc │ ├── AllocatorBufDef.h │ ├── Camera3BufferQueue.h │ ├── Camera3VoWritebackHelper.h │ ├── CameraMonitor.h │ ├── ExifHelper.h │ ├── FormatConvertHelper.h │ ├── MediaCodecDecodeHelper.h │ ├── NetlinkHandler.h │ ├── NetlinkManager.h │ ├── OMXComponentDecodeHelper.h │ ├── OMXDecodeHelper.h │ ├── OMXDecodeHelperCallback.h │ ├── YuvToJpegEncoder.h │ └── misc.h ├── dptx ├── Android.mk ├── dptx.hercules.so └── rtk_dptx.h ├── gatekeeper ├── Android.mk ├── gatekeeper.hercules.so ├── project.config └── rtk_gatekeeper.h ├── hdcp ├── Android.mk ├── hdcp.hercules.so └── rtk_hdcp.h ├── hdmitx ├── Android.mk ├── drm_crtc.h ├── hdmi.hercules.so ├── hdmi_common.h ├── rtk_hal.h └── rtk_hdmi.h ├── hwc ├── Android.mk ├── arbiter │ └── ResourceArbiter.h ├── callbacks │ └── Callbacks.h ├── display │ ├── Display.h │ ├── DisplayExternal.h │ ├── DisplayInfo.h │ ├── DisplayPrimary.h │ └── DisplayVirtual.h ├── displayoutputinfo │ └── DisplayOutputInfo.h ├── hwc_utils.h ├── hwcomposer.hercules.so ├── layer │ └── Layer.h ├── libmemtrack │ ├── Android.mk │ └── memtrack_msm.h ├── memtrack.hercules.so ├── power │ ├── Power.h │ └── Suspend.h ├── property │ └── HWCProperty.h ├── volayer │ ├── VOLayerBackround.h │ ├── VOLayerBase.h │ ├── VOLayerCursor.h │ ├── VOLayerFlip.h │ ├── VOLayerForce.h │ ├── VOLayerFramebuffer.h │ ├── VOLayerOsd2.h │ ├── VOLayerScale.h │ ├── VOLayerSideband.h │ └── hwlayer │ │ ├── cursor │ │ ├── ColorLookUpTable.h │ │ ├── CursorBuffer.h │ │ ├── CursorLayer.h │ │ └── CursorTexture.h │ │ ├── osd2 │ │ ├── Osd2Buffer.h │ │ └── Osd2Layer.h │ │ ├── utils │ │ ├── BufferBase.h │ │ ├── DebugMessage.h │ │ ├── GraphicBufferInfo.h │ │ ├── IonBuffer.h │ │ ├── LayerBase.h │ │ ├── PLockBase.h │ │ ├── RefClockBase.h │ │ ├── RingBufferBase.h │ │ ├── SWFence.h │ │ └── hwlayer_utils.h │ │ └── video │ │ ├── CombinedManager.h │ │ ├── VideoBuffer.h │ │ └── VideoLayer.h ├── vowindow │ ├── VOMixerServer.h │ ├── VOWindowBase.h │ ├── VOWindowCursor.h │ ├── VOWindowSideband.h │ └── VOWindowVoutUtil.h └── vsync │ ├── Vsync.h │ └── VsyncListener.h ├── keymaster ├── keymaster_parse.h └── ta_keymaster.h ├── libstagefrighthw ├── Android.mk ├── RTK_OMX_Plugin.h └── libstagefrighthw.so ├── power ├── Android.mk ├── Power.h ├── android.hardware.power@1.0-service.rtk ├── android.hardware.power@1.0-service.rtk.rc ├── core │ ├── power_base.h │ ├── power_core.h │ ├── power_cpu.h │ ├── power_gpu.h │ └── power_utils.h └── inc │ └── power.h ├── realtek_omx ├── Android.mk ├── component │ ├── audio │ │ └── dec │ │ │ ├── AAC_Utility.h │ │ │ ├── Android.mk │ │ │ ├── EType.h │ │ │ ├── Makefile.linaro │ │ │ ├── codec.h │ │ │ ├── codec_ms12_gbl_var.h │ │ │ ├── codec_rtk.h │ │ │ ├── codec_rtk_ms12.h │ │ │ ├── fw_misc.h │ │ │ ├── fw_misc_ms12.h │ │ │ ├── sideband_audio.h │ │ │ └── version.h │ └── video_hercules │ │ ├── dec │ │ ├── Android.mk │ │ ├── Makefile.linaro │ │ ├── Sideband_C.h │ │ ├── base │ │ │ ├── vbuffer.h │ │ │ └── vport.h │ │ ├── codec.h │ │ ├── codec_HEVCHdrParameterParser.h │ │ ├── codec_jdec.h │ │ ├── codec_ve1.h │ │ ├── codec_ve2.h │ │ ├── codec_video_common.h │ │ ├── codec_vpxparser.h │ │ ├── dolby │ │ │ ├── codec_metadata_parser.h │ │ │ └── include │ │ │ │ ├── dv_cdefs.h │ │ │ │ ├── dv_md_parser.h │ │ │ │ ├── rpu_api_common.h │ │ │ │ ├── rpu_api_decoder.h │ │ │ │ ├── rpu_api_encoder.h │ │ │ │ ├── rpu_common.h │ │ │ │ ├── rpu_debug.h │ │ │ │ ├── rpu_decoder.h │ │ │ │ ├── rpu_ext_config.h │ │ │ │ ├── rpu_parser.h │ │ │ │ ├── rpu_std.h │ │ │ │ └── rpu_writer.h │ │ ├── inc │ │ │ └── rtk_secure_handle.h │ │ ├── utils │ │ │ ├── BWControl.h │ │ │ ├── Feature.h │ │ │ ├── PWControl.h │ │ │ ├── SecureHandle.h │ │ │ ├── env.h │ │ │ └── list.h │ │ └── vo_writeback │ │ │ ├── codec_InBandAPI.h │ │ │ └── codec_VORPC.h │ │ ├── enc │ │ ├── Android.mk │ │ ├── codec.h │ │ ├── codec_jenc.h │ │ ├── codec_venc.h │ │ └── sei.h │ │ └── third_party │ │ └── libyuv │ │ ├── LICENSE │ │ ├── README.google │ │ ├── include │ │ ├── libyuv.h │ │ └── libyuv │ │ │ ├── basic_types.h │ │ │ ├── compare.h │ │ │ ├── compare_row.h │ │ │ ├── convert.h │ │ │ ├── convert_argb.h │ │ │ ├── convert_from.h │ │ │ ├── convert_from_argb.h │ │ │ ├── convert_wrapper.h │ │ │ ├── cpu_id.h │ │ │ ├── format_conversion.h │ │ │ ├── mjpeg_decoder.h │ │ │ ├── planar_functions.h │ │ │ ├── rotate.h │ │ │ ├── rotate_argb.h │ │ │ ├── rotate_row.h │ │ │ ├── row.h │ │ │ ├── row_KK.h │ │ │ ├── scale.h │ │ │ ├── scale_argb.h │ │ │ ├── scale_row.h │ │ │ ├── version.h │ │ │ └── video_common.h │ │ └── source │ │ ├── row_any.cc │ │ ├── row_common.cc │ │ └── row_neon.cc ├── core │ ├── Android.mk │ └── Makefile.linaro ├── include │ ├── imagination │ │ └── hal_public.h │ └── rtkext │ │ ├── OMX_AudioRTKExt.h │ │ ├── OMX_ComponentRTKExt.h │ │ ├── OMX_CoreRTKExt.h │ │ ├── OMX_IVCommonRTKExt.h │ │ ├── OMX_ImageRTKExt.h │ │ ├── OMX_IndexRTKExt.h │ │ └── OMX_VideoRTKExt.h ├── libOMX.realtek.audio.dec.so ├── libOMX.realtek.image.dec.so ├── libOMX.realtek.image.enc.so ├── libOMX.realtek.video.dec.avc.secure.so ├── libOMX.realtek.video.dec.dovi.so ├── libOMX.realtek.video.dec.so ├── libOMX.realtek.video.dec.vp9.so ├── libOMX.realtek.video.enc.so ├── libOMX.realtek.video.so ├── libOMX_Core.so ├── libRTKOMX_OSAL_RTK.so └── osal_rtk │ ├── Android.mk │ ├── Makefile.linaro │ ├── OSAL_RTK.h │ ├── android_ext.h │ ├── basecomp.h │ ├── dbgmacros.h │ ├── dbgtrace.h │ ├── linux_ion.h │ ├── msgque.h │ ├── port.h │ ├── system_mem.h │ └── util.h ├── thermal ├── Android.mk └── thermal.hercules.so ├── usb ├── Android.bp.bak ├── Android.mk ├── Usb.h ├── android.hardware.usb@1.1-service.rtk └── android.hardware.usb@1.1-service.rtk.rc └── wlan ├── Android.mk ├── config ├── Android.mk └── android_dhcpcd.conf ├── rtw_fwloader ├── Android.mk └── rtw_fwloader.rc ├── wifi_auto_insmod ├── Android.mk ├── wifi_auto_insmod ├── wifi_auto_insmod.a ├── wifi_mod_mapper.cfg ├── wifi_mod_mapper.h ├── wifi_module_list.cfg └── wifi_module_mapper.json ├── wifi_hal ├── Android.mk ├── common.cpp ├── common.h ├── cpp_bindings.cpp ├── cpp_bindings.h ├── rtw_wifi_gscan.cpp ├── rtw_wifi_hal.cpp ├── rtw_wifi_llstats.cpp ├── rtw_wifi_logger.cpp ├── rtw_wifi_offload.cpp ├── rtw_wifi_rtt.cpp ├── sync.h └── version.h └── wpa_supplicant_8_lib ├── Android.mk ├── MODULE_LICENSE_BSD ├── NOTICE ├── driver_cmd_wext.h ├── driver_nl80211.h ├── lib_driver_cmd_rtl.a └── rtw_version.h /CEC/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | include $(CLEAR_VARS) 18 | 19 | LOCAL_SRC_FILES := hdmi_cec.$(TARGET_BOARD_PLATFORM).so 20 | LOCAL_MODULE_TAGS:= optional eng 21 | LOCAL_MODULE_CLASS := VENDOR_SHARED_LIBRARIES 22 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) 23 | LOCAL_MODULE_SUFFIX := .so 24 | LOCAL_MODULE := hdmi_cec.$(TARGET_BOARD_PLATFORM) 25 | LOCAL_PROPRIETARY_MODULE := true 26 | LOCAL_MODULE_RELATIVE_PATH := hw 27 | 28 | include $(BUILD_PREBUILT) 29 | -------------------------------------------------------------------------------- /CEC/hdmi_cec.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/CEC/hdmi_cec.hercules.so -------------------------------------------------------------------------------- /StreamingEngine2/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | ################################################################################ 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_SRC_FILES := libhwse.$(TARGET_BOARD_PLATFORM).so 7 | LOCAL_MODULE_TAGS:= optional eng 8 | LOCAL_MODULE_CLASS := VENDOR_SHARED_LIBRARIES 9 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) 10 | LOCAL_MODULE_SUFFIX := .so 11 | LOCAL_MODULE := libhwse.$(TARGET_BOARD_PLATFORM) 12 | LOCAL_PROPRIETARY_MODULE := true 13 | 14 | include $(BUILD_PREBUILT) 15 | -------------------------------------------------------------------------------- /StreamingEngine2/MdAPI.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MdAPI.h 3 | * 4 | * Created on: June 25, 2015 5 | * Author: calvinkuo 6 | */ 7 | 8 | #ifndef MDAPI_H_ 9 | #define MDAPI_H_ 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | #include "OSAL.h" 16 | #include "hresult.h" 17 | #include "md.h" 18 | 19 | HRESULT 20 | MD_Memcpy_API( unsigned int dstPAddr, unsigned int srcPAddr, 21 | int size, 22 | HANDLE hQueue); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif 27 | 28 | #endif /* MDAPI_H_ */ 29 | -------------------------------------------------------------------------------- /StreamingEngine2/MdDrv.h: -------------------------------------------------------------------------------- 1 | #ifndef _MD_DRV_H_ 2 | #define _MD_DRV_H_ 3 | 4 | #include "md.h" 5 | #include 6 | #include "dcu_reg.h" 7 | #include "sb2_reg.h" 8 | 9 | #ifndef _MD_REG_H_ 10 | //#if !IS_CHIP(SATURN) && !defined(IS_DARWIN) && !defined(IS_MACARTHUR) 11 | //#include "SeReg.h" 12 | //#else 13 | #include "MdRegSaturn.h" 14 | //#endif 15 | #endif 16 | 17 | //================================================================================================= 18 | 19 | #define BIT0 0x01 20 | #define BIT1 0x02 21 | #define BIT2 0x04 22 | #define BIT3 0x08 23 | #define BIT4 0x10 24 | #define BIT5 0x20 25 | #define BIT6 0x40 26 | #define BIT7 0x80 27 | 28 | #define MD_COMMAND_ENTRIES 4096 29 | #define INST_CNT_MASK 0xFFFF 30 | 31 | #define MD_REG(r) (r) 32 | 33 | #define MD_CLR_WRITE_DATA 0 34 | //#define MD_SET_WRITE_DATA BIT0 35 | 36 | #define MdClearWriteData 0 37 | 38 | //md control bits 39 | typedef enum 40 | { 41 | MdWriteData = BIT0, 42 | MdGo = BIT1, 43 | MdEndianSwap = BIT2, 44 | MdIdle = BIT3 45 | } MD_CTRL_REG; 46 | 47 | //================================================================================================= 48 | 49 | #endif 50 | 51 | //================================================================================================= 52 | // End of File 53 | -------------------------------------------------------------------------------- /StreamingEngine2/MdReg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/StreamingEngine2/MdReg.h -------------------------------------------------------------------------------- /StreamingEngine2/MdRegSaturn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/StreamingEngine2/MdRegSaturn.h -------------------------------------------------------------------------------- /StreamingEngine2/SeReg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/StreamingEngine2/SeReg.h -------------------------------------------------------------------------------- /StreamingEngine2/SeRegSaturn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/StreamingEngine2/SeRegSaturn.h -------------------------------------------------------------------------------- /StreamingEngine2/SeStretchUtils.h: -------------------------------------------------------------------------------- 1 | #ifndef __SE_STRETCH_UTILS__ 2 | #define __SE_STRETCH_UTILS__ 3 | 4 | void SetVideoScalingCoeffs (unsigned short *coeff, int delta_phase, 5 | int init_phase, int taps, int swap); 6 | 7 | #endif -------------------------------------------------------------------------------- /StreamingEngine2/dbgmsg.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _DBGMSG_H_ 3 | #define _DBGMSG_H_ 4 | 5 | #ifdef __ANDROID__ 6 | 7 | #include 8 | #define MSGD(...) ALOGD(__VA_ARGS__) 9 | #define MSGV(...) ALOGV(__VA_ARGS__) 10 | 11 | #define DEBUG_INTERVAL 12 | #ifdef DEBUG_INTERVAL 13 | #define INTERVAL(cond, min, tprev) do{ \ 14 | nsecs_t t = systemTime(SYSTEM_TIME_MONOTONIC); \ 15 | nsecs_t interval = t - tprev; \ 16 | if((cond) && (interval > min)) ALOGD("%s:%d: %.3fms", __func__, __LINE__, interval/1000000.0); \ 17 | tprev = t; \ 18 | }while(0) 19 | #else 20 | #define INTERVAL(tprev) do{ }while(0) 21 | #endif 22 | 23 | #else 24 | #if defined(__LINARO_SDK__) 25 | #define MSGD(...) 26 | #define MSGV(...) 27 | #else 28 | #define MSGD(...) printf(__VA_ARGS__) 29 | #define MSGV(...) printf(__VA_ARGS__) 30 | #endif 31 | #endif 32 | 33 | #endif //_DBGMSG_H_ 34 | -------------------------------------------------------------------------------- /StreamingEngine2/dcu_reg.h: -------------------------------------------------------------------------------- 1 | #ifndef DCU_REG_H 2 | #define DCU_REG_H 3 | 4 | #include "dc_reg.h" 5 | 6 | #define DCU_REG(r) (r) 7 | /* 8 | #if IS_CHIP(MARS) || IS_CHIP(JUPITER)|| IS_CHIP(SATURN) || defined(IS_DARWIN) || defined(IS_MACARTHUR) 9 | */ 10 | #define PreparePictSetWriteData(index, pitch, addr) ((((index) & 0xFF) << 24) | \ 11 | ((((pitch) >> 8) & 0x3F) << 16) | \ 12 | (((addr) >> (11+((readl(DCU_REG(PLI_DC_SYS_MISC)) >> 16) & 0x3))) & 0x3FFF)) 13 | /* 14 | #else 15 | 16 | #define PreparePictSetWriteData(index, pitch, addr) ((((index) & 0x3F) << 18) | \ 17 | ((((pitch) >> 8) & 0x1F) << 13) | \ 18 | (((addr) >> (11+((readl(DCU_REG(PLI_DC_SYS_MISC)) >> 16) & 0x3))) & 0x1FFF)) 19 | 20 | #endif 21 | */ 22 | #endif 23 | 24 | 25 | -------------------------------------------------------------------------------- /StreamingEngine2/libhwse.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/StreamingEngine2/libhwse.hercules.so -------------------------------------------------------------------------------- /StreamingEngine2/md.h: -------------------------------------------------------------------------------- 1 | #ifndef _MD_DRIVER_H_ 2 | #define _MD_DRIVER_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "OSAL.h" 9 | #include "hresult.h" 10 | #include 11 | //#define USE_SEMAPHORE 12 | 13 | //typedef uint64_t MD_CMD_HANDLE; 14 | 15 | //#ifndef HANDLE 16 | //typedef void * HANDLE; 17 | //#endif 18 | 19 | /* 20 | * Prototypes for shared functions 21 | */ 22 | 23 | HRESULT 24 | md_open(void); 25 | 26 | HRESULT 27 | md_close(void); 28 | 29 | size_t 30 | md_write(uint32_t hQueue, uint8_t *pbyCommandBuffer, int dwCommandLength, int inst_count); 31 | 32 | bool 33 | md_checkfinish(uint32_t hQueue); 34 | 35 | bool 36 | md_poll(uint32_t hQueue); 37 | 38 | void 39 | md_go(uint32_t hQueue); 40 | 41 | uint32_t md_get_handle(void); 42 | void md_put_handle(uint32_t hQueue); 43 | void md_mutex_lock(uint32_t hQueue); 44 | void md_mutex_unlock(uint32_t hQueue); 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif 49 | 50 | #endif /* _MD_H_ */ 51 | -------------------------------------------------------------------------------- /StreamingEngine2/md_reg.h: -------------------------------------------------------------------------------- 1 | #ifndef SMQ_REG_H 2 | #define SMQ_REG_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #define BIT0 0x01 9 | #define BIT1 0x02 10 | #define BIT2 0x04 11 | #define BIT3 0x08 12 | #define BIT4 0x10 13 | #define BIT5 0x20 14 | #define BIT6 0x40 15 | #define BIT7 0x80 16 | 17 | #define SMQ_COMMAND_ENTRIES 4096 18 | #define INST_CNT_MASK 0xFFFF 19 | 20 | #define SMQ_REG_BASE 0xB800B000 //TBD 21 | #define IOA_SMQ_CNTL ((volatile unsigned int *)0xB800B000) 22 | #define IOA_SMQ_INT_STATUS ((volatile unsigned int *)0xB800B004) 23 | #define IOA_SMQ_INT_ENABLE ((volatile unsigned int *)0xB800B008) 24 | #define IOA_SMQ_CmdBase ((volatile unsigned int *)0xB800B00C) 25 | #define IOA_SMQ_CmdLimit ((volatile unsigned int *)0xB800B010) 26 | #define IOA_SMQ_CmdRdptr ((volatile unsigned int *)0xB800B014) 27 | #define IOA_SMQ_CmdWrptr ((volatile unsigned int *)0xB800B018) 28 | #define IOA_SMQ_CmdFifoState ((volatile unsigned int *)0xB800B01C) 29 | #define IOA_SMQ_INST_CNT ((volatile unsigned int *)0xB800B020) 30 | 31 | #define SMQ_REG(r) (r) 32 | 33 | #define SMQ_CLR_WRITE_DATA 0 34 | #define SMQ_SET_WRITE_DATA 1 35 | 36 | #define MOVE_DATA_SS 0x05 37 | #define MOVE_DATA_SB 0x15 38 | #define MOVE_DATA_BS 0x25 39 | #define MOVE_DATA_SS_PITCH 0x35 40 | 41 | #define SWAP_DATA_2B_SS 0x07 42 | #define SWAP_DATA_2B_SS_PITCH 0x37 43 | 44 | #define SWAP_DATA_4B_SS 0x0d 45 | #define SWAP_DATA_4B_SS_PITCH 0x3d 46 | 47 | //se control bits 48 | typedef enum { 49 | SMQ_GO=BIT1, 50 | SMQ_CMD_SWAP=BIT2, 51 | SMQ_IDLE=BIT3, 52 | } SE_CTRL; 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | #endif 58 | 59 | -------------------------------------------------------------------------------- /StreamingEngine2/rtk_uctrl.h: -------------------------------------------------------------------------------- 1 | #ifndef _RTK_UCTRL_H_ 2 | #define _RTK_UCTRL_H_ 3 | 4 | #include 5 | 6 | #define RTK_UCTRL_IOCTL_MAGIC 0xEB 7 | #define RTK_UCTRL_IOCTL_NONE _IO(RTK_UCTRL_IOCTL_MAGIC, 0x00) 8 | /* v1.0 */ 9 | #define RTK_UCTRL_IOCTL_CLK_EN_TP_SET _IO(RTK_UCTRL_IOCTL_MAGIC, 0x01) 10 | #define RTK_UCTRL_IOCTL_CLK_EN_TP_CLEAR _IO(RTK_UCTRL_IOCTL_MAGIC, 0x02) 11 | #define RTK_UCTRL_IOCTL_CLK_EN_TP_STATE _IOR(RTK_UCTRL_IOCTL_MAGIC, 0x03, unsigned int) 12 | #define RTK_UCTRL_IOCTL_RSTN_TP_SET _IO(RTK_UCTRL_IOCTL_MAGIC, 0x04) 13 | #define RTK_UCTRL_IOCTL_RSTN_TP_CLEAR _IO(RTK_UCTRL_IOCTL_MAGIC, 0x05) 14 | #define RTK_UCTRL_IOCTL_RSTN_TP_STATE _IOR(RTK_UCTRL_IOCTL_MAGIC, 0x06, unsigned int) 15 | /* v1.1 */ 16 | #define RTK_UCTRL_IOCTL_GET_VERSION _IOR(RTK_UCTRL_IOCTL_MAGIC, 0x10, unsigned int) 17 | #define RTK_UCTRL_IOCTL_SET _IOW(RTK_UCTRL_IOCTL_MAGIC, 0x11, unsigned int) 18 | #define RTK_UCTRL_IOCTL_CLEAR _IOW(RTK_UCTRL_IOCTL_MAGIC, 0x12, unsigned int) 19 | #define RTK_UCTRL_IOCTL_STATE _IOWR(RTK_UCTRL_IOCTL_MAGIC, 0x13, unsigned int) 20 | 21 | enum RTK_UCTRL_ITEM_ID { 22 | RTK_UCTRL_CLK_EN_TP, 23 | RTK_UCTRL_RSTN_TP, 24 | RTK_UCTRL_CLK_EN_SE, 25 | RTK_UCTRL_RSTN_SE, 26 | RTK_UCTRL_CLK_EN_MD, 27 | RTK_UCTRL_RSTN_MD, 28 | RTK_UCTRL_LIST_END 29 | }; 30 | 31 | #define __APPLY_VMASK(_v) ((_v) & 0xffff) 32 | #define RTK_UCTRL_MAKE_VERSION(_maj, _min) ((__APPLY_VMASK(_min) << 16) | __APPLY_VMASK(_maj)) 33 | #define RTK_UCTRL_GET_VERSION_MAJOR(_v) __APPLY_VMASK(_v) 34 | #define RTK_UCTRL_GET_VERSION_MINOR(_v) __APPLY_VMASK((_v) >> 16) 35 | 36 | #endif /* _RTK_UCTRL_H_ */ -------------------------------------------------------------------------------- /StreamingEngine2/sb2_reg.h: -------------------------------------------------------------------------------- 1 | #ifndef SB2_REG_H 2 | #define SB2_REG_H 3 | 4 | #include "sb2_reg.h" 5 | 6 | #define SB2_REG(r) (r) 7 | 8 | #define PrepareTileStartAddrWriteData(a) (((((a) >> 11) & 0xFFFF) << 11) | (1 << 27)) 9 | #define PreparePicWidthWriteData(w) ((((w) & 0x7) << 7) | (1 << 10)) 10 | #define PreparePicIndexWriteData(i) ((((i) & 0x3F) << 0) | (1 << 6)) 11 | 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/JPEG/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2009 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | include $(all-subdir-makefiles) 17 | 18 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/JPEG/config.h: -------------------------------------------------------------------------------- 1 | #ifndef __CONFIG_H__ 2 | #define __CONFIG_H__ 3 | 4 | 5 | #if defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(WIN32) || defined(__MINGW32__) 6 | # define PLATFORM_WIN32 7 | #elif defined(linux) || defined(__linux) || defined(ANDROID) 8 | # define PLATFORM_LINUX 9 | #else 10 | # define PLATFORM_NON_OS 11 | #endif 12 | 13 | #if defined(_MSC_VER) 14 | # include 15 | # include 16 | # define inline _inline 17 | # define VPU_DELAY_MS(X) Sleep(X) 18 | # define VPU_DELAY_US(X) Sleep(X) // should change to delay function which can be delay a microsecond unut. 19 | # define kbhit _kbhit 20 | # define getch _getch 21 | #elif defined(__GNUC__) 22 | #ifdef _KERNEL_ 23 | # define VPU_DELAY_MS(X) udelay(X*1000) 24 | # define VPU_DELAY_US(X) udelay(X) 25 | #else 26 | # define VPU_DELAY_MS(X) usleep(X*1000) 27 | # define VPU_DELAY_US(X) usleep(X) 28 | #endif 29 | #elif defined(__ARMCC__) 30 | #else 31 | # error "Unknown compiler." 32 | #endif 33 | #ifdef PLATFORM_WIN32 34 | #define PROJECT_ROOT "..\\..\\..\\" 35 | #else 36 | #define PROJECT_ROOT "../../.." 37 | #endif 38 | 39 | 40 | 41 | 42 | #define API_VERSION 13 43 | 44 | 45 | //#define MJPEG_ERROR_CONCEAL 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | #endif /* __CONFIG_H__ */ 54 | 55 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/JPEG/include/mixer.h: -------------------------------------------------------------------------------- 1 | #ifndef _MIXER_H_ 2 | #define _MIXER_H_ 3 | 4 | #include "jpuconfig.h" 5 | 6 | typedef struct { 7 | int Format; 8 | int Index; 9 | jpu_buffer_t vbY; 10 | jpu_buffer_t vbCb; 11 | jpu_buffer_t vbCr; 12 | int strideY; 13 | int strideC; 14 | } FRAME_BUF; 15 | 16 | 17 | 18 | #define MAX_DISPLAY_WIDTH 1920 19 | #define MAX_DISPLAY_HEIGHT 1088 20 | 21 | #if defined (__cplusplus) 22 | extern "C" { 23 | #endif 24 | 25 | int AllocateFrameBuffer(int instIdx, int format, int width, int height, int frameBufNum, int pack); 26 | void FreeFrameBuffer(int instIdx); 27 | FRAME_BUF *GetFrameBuffer(int instIdx, int index); 28 | int GetFrameBufBase(int instIdx); 29 | int GetFrameBufAllocSize(int instIdx); 30 | void ClearFrameBuffer(int instIdx, int index); 31 | FRAME_BUF* FindFrameBuffer(int instIdx, PhysicalAddress addrY); 32 | int sw_mixer_open(int instIdx, int width, int height); 33 | int sw_mixer_draw(int instIdx, int x, int y, int width, int height, int planar_format, int pack_format, int inteleave, unsigned char* pbImage); 34 | void sw_mixer_close(int instIdx); 35 | 36 | #if defined (__cplusplus) 37 | } 38 | #endif 39 | 40 | #endif //#ifndef _MIXER_H_ 41 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/JPEG/jpuapi/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | # Building the jpuapi 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_SRC_FILES := \ 7 | jpuapi.c \ 8 | jpuapifunc.c \ 9 | ../src/jpuhelper.c \ 10 | ../src/jpulog.c 11 | 12 | LOCAL_SRC_FILES += \ 13 | ../jdi/linux/jdi.c \ 14 | 15 | 16 | LOCAL_MODULE_TAGS := optional 17 | LOCAL_MODULE := libjpu 18 | 19 | ifneq ($(filter 8% 9%,$(PLATFORM_VERSION)),) 20 | LOCAL_PROPRIETARY_MODULE := true 21 | endif 22 | 23 | LOCAL_SHARED_LIBRARIES := \ 24 | libutils \ 25 | libcutils \ 26 | libdl \ 27 | liblog 28 | 29 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/src \ 30 | $(TOP)/hardware/realtek/VideoEngine2/hercules/JPEG \ 31 | $(TOP)/hardware/realtek/VideoEngine2/hercules/JPEG/include 32 | 33 | MJPG_CHECKSUM = false 34 | MJPG_CHECKSUM_LOG_TO_TMP = false 35 | ifeq ($(MJPG_CHECKSUM), true) 36 | LOCAL_SHARED_LIBRARIES += libMCPControl 37 | LOCAL_C_INCLUDES += device/realtek/proprietary/libs/libMCPControl/inc/ 38 | LOCAL_CFLAGS += -DMJPG_CHECKSUM 39 | ifeq ($(MJPG_CHECKSUM_LOG_TO_TMP), true) 40 | LOCAL_CFLAGS += -DMJPG_CHECKSUM_LOG_TO_TMP 41 | endif 42 | endif 43 | 44 | include $(BUILD_SHARED_LIBRARY) 45 | 46 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/JPEG/jpuapi/jpuconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef _JPU_CONFIG_H_ 2 | #define _JPU_CONFIG_H_ 3 | 4 | #include "../config.h" 5 | #include "jputypes.h" 6 | 7 | #define MAX_NUM_INSTANCE 8 8 | #define MAX_INST_HANDLE_SIZE (13*1024) 9 | 10 | #define JPU_FRAME_ENDIAN JDI_LITTLE_ENDIAN 11 | #define JPU_STREAM_ENDIAN JDI_LITTLE_ENDIAN 12 | #define JPU_CHROMA_INTERLEAVE 1 // 0 (chroma separate mode), 1 (cbcr interleave mode), 2 (crcb interleave mode) 13 | 14 | 15 | #define JPU_INTERRUPT_TIMEOUT_MS 5000 16 | 17 | #define JPU_STUFFING_BYTE_FF 0 // 0 : ON ("0xFF"), 1 : OFF ("0x00") for stuffing 18 | 19 | #define JPU_PARTIAL_DECODE 1 // 0 : OFF, 1 : ON 20 | 21 | #define MAX_MJPG_PIC_WIDTH 32768 22 | #define MAX_MJPG_PIC_HEIGHT 32768 23 | 24 | 25 | #define MAX_FRAME (19*MAX_NUM_INSTANCE) // For AVC decoder, 16(reference) + 2(current) + 1(rotator) 26 | 27 | #define STREAM_FILL_SIZE 0x10000 28 | #define STREAM_END_SIZE 0 29 | 30 | #define JPU_GBU_SIZE 512 31 | 32 | #define STREAM_BUF_SIZE 0x200000 33 | 34 | #define JPU_DEC_CHECK_WRITE_RESPONSE_BVALID_SIGNAL 1 35 | 36 | 37 | #endif /* _JPU_CONFIG_H_ */ 38 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/JPEG/jpuapi/jputypes.h: -------------------------------------------------------------------------------- 1 | #ifndef _JPU_TYPES_H_ 2 | #define _JPU_TYPES_H_ 3 | 4 | #if defined(__LP64__) 5 | #include 6 | typedef uint32_t Uint32; 7 | typedef unsigned char Uint8; 8 | typedef unsigned short Uint16; 9 | #ifndef RVSD_USE_JPU_API 10 | typedef char Int8; 11 | #endif 12 | typedef int Int32; 13 | typedef short Int16; 14 | typedef uint64_t Uint64; 15 | typedef int64_t Int64; 16 | #else 17 | typedef unsigned char Uint8; 18 | typedef unsigned char uint8_t; 19 | typedef unsigned int Uint32; 20 | typedef unsigned int uint32_t; 21 | typedef unsigned short Uint16; 22 | #ifndef RVSD_USE_JPU_API 23 | typedef char Int8; 24 | #endif 25 | typedef int Int32; 26 | typedef short Int16; 27 | #if defined(_MSC_VER) 28 | typedef unsigned _int64 Uint64; 29 | typedef _int64 Int64; 30 | #else 31 | typedef unsigned long long Uint64; 32 | typedef unsigned long long uint64_t; 33 | typedef long long Int64; 34 | #endif 35 | 36 | #endif //end if __LP64__ 37 | 38 | #ifndef PhysicalAddress 39 | typedef Uint32 PhysicalAddress; 40 | #endif 41 | #ifndef BYTE 42 | typedef unsigned char BYTE; 43 | #endif 44 | #ifndef BOOL 45 | typedef int BOOL; 46 | #endif 47 | 48 | #ifndef FALSE 49 | #define FALSE 0 50 | #endif /* FALSE */ 51 | #ifndef TRUE 52 | #define TRUE 1 53 | #endif /* TRUE */ 54 | #ifndef NULL 55 | #define NULL 0 56 | #endif 57 | 58 | 59 | #ifndef UNREFERENCED_PARAMETER 60 | #define UNREFERENCED_PARAMETER(P) { (P) = (P); } 61 | #endif 62 | 63 | #endif /* _JPU_TYPES_H_ */ 64 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/JPEG/src/Android.mk: -------------------------------------------------------------------------------- 1 | 2 | LOCAL_PATH := $(call my-dir) 3 | 4 | #Building jpurun binary which will be placed in the /system/bin folder 5 | include $(CLEAR_VARS) 6 | 7 | LOCAL_SRC_FILES := \ 8 | main.c \ 9 | jpurun.c \ 10 | mixer.c 11 | 12 | LOCAL_MODULE_TAGS := optional 13 | LOCAL_MODULE := jpurun 14 | 15 | LOCAL_C_INCLUDES := $(LOCAL_PATH) \ 16 | $(TOP)/hardware/realtek/VideoEngine2/hercules/JPEG/include \ 17 | $(TOP)/hardware/realtek/VideoEngine2/hercules/JPEG/jpuapi 18 | 19 | 20 | 21 | LOCAL_SHARED_LIBRARIES := \ 22 | libjpu \ 23 | libutils 24 | 25 | ifneq ($(filter 8% 9%,$(PLATFORM_VERSION)),) 26 | LOCAL_PROPRIETARY_MODULE := true 27 | endif 28 | 29 | LOCAL_POST_INSTALL_CMD := cp -f $(TARGET_OUT_VENDOR)/bin/$(LOCAL_MODULE) device/realtek/$(TARGET_BOARD_PLATFORM)/common/prebuilt/proprietary/bin 30 | include $(BUILD_EXECUTABLE) 31 | 32 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2009 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | include $(all-subdir-makefiles) 17 | 18 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/aes/aes.h: -------------------------------------------------------------------------------- 1 | #ifndef _AES_H_ 2 | #define _AES_H_ 3 | 4 | #include 5 | 6 | 7 | // #define the macros below to 1/0 to enable/disable the mode of operation. 8 | // 9 | // CBC enables AES128 encryption in CBC-mode of operation and handles 0-padding. 10 | // ECB enables the basic ECB 16-byte block algorithm. Both can be enabled simultaneously. 11 | 12 | // The #ifndef-guard allows it to be configured before #include'ing or at compile time. 13 | #if 0 //disable CBC 14 | #ifndef CBC 15 | #define CBC 1 16 | #endif 17 | #endif 18 | 19 | #ifndef ECB 20 | #define ECB 1 21 | #endif 22 | 23 | 24 | 25 | #if defined(ECB) && ECB 26 | 27 | void AES128_ECB_encrypt(const uint8_t* input, const uint8_t* key, uint8_t *output); 28 | void AES128_ECB_decrypt(const uint8_t* input, const uint8_t* key, uint8_t *output); 29 | 30 | #endif // #if defined(ECB) && ECB 31 | 32 | 33 | #if defined(CBC) && CBC 34 | 35 | void AES128_CBC_encrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv); 36 | void AES128_CBC_decrypt_buffer(uint8_t* output, uint8_t* input, uint32_t length, const uint8_t* key, const uint8_t* iv); 37 | 38 | #endif // #if defined(CBC) && CBC 39 | 40 | void uint8_2_long(uint8_t *in, long *info); 41 | void long_2_uint8(uint8_t *in, long *info); 42 | 43 | #endif //_AES_H_ 44 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/sample/helper/bitstream/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/VE/sample/helper/bitstream/.gitignore -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/sample/helper/comparator/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/VE/sample/helper/comparator/.gitignore -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/sample/helper/display/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/VE/sample/helper/display/.gitignore -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/sample/helper/misc/getopt.h: -------------------------------------------------------------------------------- 1 | #ifndef __GETOPT_H__ 2 | #define __GETOPT_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | extern int opterr; /* if error message should be printed */ 9 | extern int optind; /* index into parent argv vector */ 10 | extern int optopt; /* character checked for validity */ 11 | extern int optreset; /* reset getopt */ 12 | extern char *optarg; /* argument associated with option */ 13 | 14 | struct option 15 | { 16 | const char *name; 17 | int has_arg; 18 | int *flag; 19 | int val; 20 | }; 21 | 22 | #define no_argument 0 23 | #define required_argument 1 24 | #define optional_argument 2 25 | 26 | int getopt(int, char**, char*); 27 | #if defined(PLATFORM_QNX) 28 | #else 29 | int getopt_long(int, char**, char*, struct option*, int*); 30 | #endif 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | #endif /* __GETOPT_H__ */ 37 | 38 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/sample/helper/yuv/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/VE/sample/helper/yuv/.gitignore -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/sample/main_multi_instance_test.h: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // File: main_multi_instance_test.h 3 | // 4 | // Copyright (c) 2006, Chips & Media. All rights reserved. 5 | //------------------------------------------------------------------------------ 6 | #ifndef MAIN_MULTI_INSTANCE_TEST 7 | #define MAIN_MULTI_INSTANCE_TEST 8 | extern Uint32 sizeInWord; 9 | extern Uint16* pusBitCode; 10 | 11 | void WaitForNextStep( 12 | BOOL enableSync, 13 | BOOL* isRunning, 14 | Int32 instIdx, 15 | Int32 curStepName 16 | ); 17 | 18 | enum waitStatus { 19 | WAIT_AFTER_INIT = 0, 20 | 21 | WAIT_AFTER_DEC_OPEN = 1, 22 | WAIT_AFTER_SEQ_INIT = 2, 23 | WAIT_AFTER_REG_BUF = 3, 24 | WAIT_BEFORE_DEC_START = 4, 25 | WAIT_BEFORE_DEC_CLOSE = 5, 26 | 27 | WAIT_AFTER_ENC_OPEN = 6, 28 | WAIT_AFTER_INIT_SEQ = 7, 29 | WAIT_AFTER_REG_FRAME = 8, 30 | WAIT_BEFORE_ENC_START = 9, 31 | WAIT_BEFORE_ENC_CLOSE = 10, 32 | WAIT_NOT_DEFINED = 11 33 | }; 34 | #endif /* MAIN_MULTI_INSTANCE_TEST */ 35 | 36 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/VE/vpuapi/.RTKRevision.426f204.c: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /VideoEngine2/hercules/coda980_dec_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/coda980_dec_test -------------------------------------------------------------------------------- /VideoEngine2/hercules/coda980_enc_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/coda980_enc_test -------------------------------------------------------------------------------- /VideoEngine2/hercules/jpurun: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/jpurun -------------------------------------------------------------------------------- /VideoEngine2/hercules/libjpu.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/libjpu.so -------------------------------------------------------------------------------- /VideoEngine2/hercules/libvpu.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules/libvpu.so -------------------------------------------------------------------------------- /VideoEngine2/hercules32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/VideoEngine2/hercules32 -------------------------------------------------------------------------------- /audio/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := audio.primary.$(TARGET_BOARD_PLATFORM).so 6 | LOCAL_MODULE_TAGS:= optional eng 7 | LOCAL_MODULE_CLASS := VENDOR_SHARED_LIBRARIES 8 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES)/hw 9 | LOCAL_MODULE_SUFFIX := .so 10 | LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM) 11 | 12 | LOCAL_PROPRIETARY_MODULE := true 13 | 14 | include $(BUILD_PREBUILT) 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /audio/audio.primary.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/audio/audio.primary.hercules.so -------------------------------------------------------------------------------- /bootctrl/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := bootctrl.$(TARGET_BOARD_PLATFORM).so 6 | LOCAL_MODULE_TAGS:= optional eng 7 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 8 | LOCAL_MODULE_SUFFIX := .so 9 | LOCAL_MODULE := bootctrl.$(TARGET_BOARD_PLATFORM) 10 | LOCAL_PROPRIETARY_MODULE := true 11 | 12 | LOCAL_MODULE_RELATIVE_PATH := hw 13 | 14 | include $(BUILD_PREBUILT) 15 | 16 | -------------------------------------------------------------------------------- /bootctrl/bootctrl.h: -------------------------------------------------------------------------------- 1 | #ifndef __BOOT_CONTROL_H__ 2 | #define __BOOT_CONTROL_H__ 3 | 4 | 5 | 6 | #include 7 | #include //inner include bootloader message.h 8 | 9 | /* struct boot_ctrl occupies the slot_suffix field of 10 | * struct bootloader_message_ab */ 11 | #define OFFSETOF_SLOT_SUFFIX offsetof(struct bootloader_message_ab, slot_suffix) 12 | 13 | #define BOOTCTRL_MAGIC 0x42424100 //BAA\0 14 | #define BOOTCTRL_SUFFIX_A "_a" 15 | #define BOOTCTRL_SUFFIX_B "_b" 16 | #define BOOT_CONTROL_VERSION 1 17 | 18 | 19 | 20 | typedef struct slot_metadata_rtk{ 21 | 22 | uint8_t priority:4; 23 | uint8_t tries_remaining:3; 24 | uint8_t successful_boot:1; 25 | }slot_metadata_rtk_t; 26 | 27 | 28 | typedef struct boot_ctrl{ 29 | 30 | //usually "\0ABB" 31 | uint32_t magic; 32 | 33 | //no use now 34 | uint8_t version; 35 | 36 | //definition above 37 | slot_metadata_rtk_t slot_info[2]; 38 | 39 | //no use now 40 | uint8_t recovery_tries_remaining; 41 | 42 | }boot_ctrl_t; 43 | 44 | 45 | 46 | 47 | 48 | 49 | #endif 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /bootctrl/bootctrl.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bootctrl/bootctrl.hercules.so -------------------------------------------------------------------------------- /bt/rtkbt/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(BOARD_HAVE_BLUETOOTH_RTK),true) 2 | LOCAL_PATH := $(call my-dir) 3 | include $(call all-subdir-makefiles) 4 | endif 5 | -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8703as_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8703as_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8703bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8703bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8703cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8703cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8723as_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8723as_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8723bs_VQ0_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8723bs_VQ0_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8723bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8723bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8723cs_cg_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8723cs_cg_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8723cs_vf_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8723cs_vf_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8723cs_xx_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8723cs_xx_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8723ds_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8723ds_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8761at_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8761at_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8761bt_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8761bt_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8821as_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8821as_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8821cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8821cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8822bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8822bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/UART_2M/rtl8822cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/UART_2M/rtl8822cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/fw_info.txt: -------------------------------------------------------------------------------- 1 | FW CUT SVN Coex 2 | rtl8761au8192ee_fw D 20411 0007 3 | rtl8761au_fw D 20411 0007 4 | rtl8723c_fw B 16592 0700 5 | rtl8703cs_fw C 17903 0a0a 6 | rtl8761aw8192eu_fw D 20411 0007 7 | rtl8761at8812ae_fw D 19653 0006 8 | rtl8723ds_fw C 21291 2d2d 9 | rtl8761bt_fw B 21127 0606 10 | rtl8703bs_fw B 20010 1c00 11 | rtl8822b_fw C 21253 6c6c 12 | rtl8821cs_fw B 21209 3939 13 | rtl8761at_fw D 20411 0007 14 | rtl8822c_fw D 21363 0606 15 | rtl8761b_fw B 21127 0606 16 | rtl8761au8812ae_fw D 19653 0006 17 | rtl8821as_fw B 19132 635d 18 | rtl8821a_fw B 19132 635d 19 | rtl8723bs_fw B 19897 6d50 20 | rtl8723b_fw B 19897 6d50 21 | rtl8723cs_vf_fw B 15854 5844 22 | rtl8703as_fw B 12234 473d 23 | rtl8822cs_fw D 21363 0606 24 | rtl8723cs_xx_fw B 19927 1c00 25 | rtl8821c_fw B 21209 3939 26 | rtl8822bs_fw C 21253 6c6c 27 | rtl8723d_fw C 21291 2d2d 28 | rtl8723cs_cg_fw B 15854 5844 29 | rtl8761at8192ee_fw D 20411 0007 30 | rtl8723bs_VQ0_fw B 16527 6549 31 | -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8703as_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8703as_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8703as_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8703as_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8703bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8703bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8703bs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8703bs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8703cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8703cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8703cs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8703cs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723a_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723a_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723a_config_addr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723a_config_addr -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723a_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723a_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723as_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723as_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723as_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723as_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723b_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723b_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723b_config_2Ant_S0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723b_config_2Ant_S0 -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723b_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723b_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723bs_VQ0_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723bs_VQ0_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723bs_VQ0_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723bs_VQ0_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723bs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723bs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723bu_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723bu_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723c_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723c_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723cs_cg_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723cs_cg_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723cs_cg_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723cs_cg_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723cs_vf_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723cs_vf_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723cs_vf_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723cs_vf_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723cs_xx_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723cs_xx_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723cs_xx_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723cs_xx_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723d_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723d_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723d_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723d_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723ds_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723ds_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8723ds_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8723ds_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761a_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761a_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761at8192ee_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761at8192ee_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761at8812ae_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761at8812ae_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761at_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761at_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761at_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761at_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761au8192ee_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761au8192ee_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761au8812ae_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761au8812ae_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761au_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761au_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761aw8192eu_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761aw8192eu_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761aw8192eu_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761aw8192eu_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761b_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761b_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761b_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761b_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761bt_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761bt_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8761bt_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761bt_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8821a_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8821a_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8821a_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8821a_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8821as_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8821as_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8821as_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8821as_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8821c_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8821c_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8821c_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8821c_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8821cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8821cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8821cs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8821cs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8822b_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8822b_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8822b_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8822b_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8822bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8822bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8822bs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8822bs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8822c_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8822c_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8822c_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8822c_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8822cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8822cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/BT/rtl8822cs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8822cs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8723bs_VQ0_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8723bs_VQ0_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8723bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8723bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8723ds_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8723ds_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8761at_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8761at_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8761bt_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8761bt_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8821as_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8821as_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8821cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8821cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8822bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8822bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/UART_2M/rtl8822cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/UART_2M/rtl8822cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/fw_info.txt: -------------------------------------------------------------------------------- 1 | FW CUT SVN Coex 2 | rtl8761au8192ee_fw D 13328 3736 3 | rtl8761a_fw D 13328 3736 4 | rtl8761au_fw D 20340 0007 5 | rtl8761aw8192eu_fw D 20340 0007 6 | rtl8723ds_fw C 21291 2d2d 7 | rtl8761bt_fw B 21127 0606 8 | rtl8822b_fw C 21253 6c6c 9 | rtl8821cs_fw B 21209 3939 10 | rtl8761at_fw D 20340 0007 11 | rtl8822c_fw D 21363 0606 12 | rtl8761b_fw B 21127 0606 13 | rtl8761au8812ae_fw D 19648 0006 14 | rtl8821as_fw B 19884 635d 15 | rtl8821a_fw B 19884 635d 16 | rtl8723bs_fw B 19897 6d50 17 | rtl8723b_fw B 19897 6d50 18 | rtl8822cs_fw D 21363 0606 19 | rtl8821c_fw B 21209 3939 20 | rtl8822bs_fw C 21253 6c6c 21 | rtl8723d_fw C 21291 2d2d 22 | rtl8761at8192er_fw D 20340 0007 23 | rtl8723bs_VQ0_fw B 14422 5844 24 | -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723b_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723b_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723b_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723b_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723bs_VQ0_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723bs_VQ0_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723bs_VQ0_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723bs_VQ0_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723bs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723bs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723bu_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723bu_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723d_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723d_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723d_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723d_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723ds_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723ds_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8723ds_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8723ds_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761a_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761a_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761a_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761a_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761at8192er_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761at8192er_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761at_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761at_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761at_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761at_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761au8192ee_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761au8192ee_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761au8812ae_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761au8812ae_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761au_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761au_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761aw8192eu_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761aw8192eu_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761aw8192eu_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761aw8192eu_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761b_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761b_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761b_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761b_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761bt_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761bt_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8761bt_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8761bt_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8821a_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8821a_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8821a_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8821a_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8821as_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8821as_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8821as_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8821as_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8821c_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8821c_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8821c_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8821c_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8821cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8821cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8821cs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8821cs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8822b_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8822b_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8822b_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8822b_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8822bs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8822bs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8822bs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8822bs_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8822c_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8822c_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8822c_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8822c_fw -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8822cs_config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8822cs_config -------------------------------------------------------------------------------- /bt/rtkbt/Firmware/TV/rtl8822cs_fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/TV/rtl8822cs_fw -------------------------------------------------------------------------------- /bt/rtkbt/addon/Android.mk: -------------------------------------------------------------------------------- 1 | ifneq ($(BOARD_HAVE_BLUETOOTH_RTK_ADDON),) 2 | LOCAL_PATH := $(call my-dir) 3 | include $(foreach item,$(BOARD_HAVE_BLUETOOTH_RTK_ADDON),$(LOCAL_PATH)/$(item)/Android.mk) 4 | endif 5 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/audio_hal_bee_hidraw/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(call all-subdir-makefiles) 4 | 5 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/audio_hal_bee_hidraw/addon.mk: -------------------------------------------------------------------------------- 1 | PRODUCT_PACKAGES += \ 2 | audio.vx_bee_hidraw.default \ 3 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/audio_hal_bee_hidraw/audio_hal/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | include $(call all-subdir-makefiles) 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | 18 | include $(CLEAR_VARS) 19 | LOCAL_MODULE := audio.vx_bee_hidraw.default 20 | 21 | LOCAL_MODULE_RELATIVE_PATH := hw 22 | 23 | LOCAL_SRC_FILES := \ 24 | audio_hw.c \ 25 | config.c 26 | 27 | LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libutils libhardware 28 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-label 29 | LOCAL_MODULE_TAGS := optional 30 | LOCAL_PROPRIETARY_MODULE := true 31 | LOCAL_MULTILIB := 32 32 | include $(BUILD_SHARED_LIBRARY) 33 | 34 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/audio_hal_bee_hidraw/audio_hal/config.h: -------------------------------------------------------------------------------- 1 | #ifndef CONFIG_H 2 | #define CONFIG_H 3 | 4 | typedef struct tVoice_Hidraw_Settings 5 | { 6 | struct tVoice_Hidraw_Settings * next; 7 | char * group; 8 | char * item; 9 | char * val; 10 | } tVoice_Hidraw_Settings; 11 | 12 | int voice_loadconfig(const char * path); 13 | int voice_get_int_config(const char *group, const char *item); 14 | int voice_get_byte_array_config(const char *group, const char *item, char* arr, int len); 15 | int voice_conf_exit(); 16 | 17 | 18 | #define CONFIG_GROUP_RCU "Rcu" 19 | #define CONFIG_ITEM_RCU_VID "Vid" 20 | #define CONFIG_ITEM_RCU_PID "Pid" 21 | #define CONFIG_ITEM_RCU_VER "Ver" 22 | 23 | #define CONFIG_GROUP_REPORTID "ReportID" 24 | #define CONFIG_ITEM_REPORTID_KEY "Key" 25 | #define CONFIG_ITEM_REPORTID_DATA "Data" 26 | #define CONFIG_ITEM_REPORTID_CMD "Cmd" 27 | 28 | #define CONFIG_GROUP_REPORTVALUE "ReportValue" 29 | #define CONFIG_ITEM_REPORTVALUE_KEYDOWNLEN "KeyDownLen" 30 | #define CONFIG_ITEM_REPORTVALUE_KEYDOWN "KeyDown" 31 | #define CONFIG_ITEM_REPORTVALUE_KEYUPLEN "KeyUpLen" 32 | #define CONFIG_ITEM_REPORTVALUE_KEYUP "KeyUp" 33 | 34 | #define CONFIG_GROUP_SETTINGS "Settings" 35 | #define CONFIG_ITEM_SETTINGS_DECODETYPE "DecodeType" 36 | #define CONFIG_ITEM_SETTINGS_DATAMASK "DataMask" 37 | #define CONFIG_ITEM_SETTINGS_AUTOCMD "AutoCmd" 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/audio_sco_hw/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | include $(call all-subdir-makefiles) 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | include $(CLEAR_VARS) 18 | LOCAL_MODULE := audio.sco.default 19 | 20 | #LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 21 | LOCAL_MODULE_RELATIVE_PATH := hw 22 | 23 | LOCAL_SRC_FILES := \ 24 | audio_sco_hw.c 25 | 26 | LOCAL_CFLAGS += -Wno-error=unused-parameter 27 | #LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libandroid_runtime libutils libaudioutils 28 | LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libutils libaudioutils libhardware 29 | 30 | LOCAL_MODULE_TAGS := optional 31 | LOCAL_PROPRIETARY_MODULE := true 32 | 33 | LOCAL_MULTILIB := 32 34 | include $(BUILD_SHARED_LIBRARY) 35 | 36 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/bee1/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(call all-subdir-makefiles) 4 | 5 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/bee1/addon.mk: -------------------------------------------------------------------------------- 1 | PRODUCT_COPY_FILES += \ 2 | $(LOCAL_PATH)/vendor/etc/hidraw_setting:vendor/etc/hidraw_setting \ 3 | $(LOCAL_PATH)/vendor/usr/keylayout/Vendor_005d_Product_0001.kl:vendor/usr/keylayout/Vendor_005d_Product_0001.kl \ 4 | 5 | 6 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/bee1/vendor/etc/hidraw_setting: -------------------------------------------------------------------------------- 1 | [Rcu] 2 | Vid=005d 3 | Pid=0001 4 | Ver=0000 5 | 6 | [ReportID] 7 | Key=1 8 | Data=5a 9 | Cmd=5a 10 | 11 | [ReportValue] 12 | KeyDownLen=8 13 | KeyDown=0,0,3e,0,0,0,0,0; 14 | KeyUpLen=8 15 | KeyUp=0,64,0,0,0,0,0,0; 16 | 17 | [Settings] 18 | DecodeType=1 19 | DataMask=1 20 | AutoCmd=1 21 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/bee1/vendor/usr/keylayout/Vendor_005d_Product_0001.kl: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # 16 | # Generic key layout file for full alphabetic US English PC style external keyboards. 17 | # 18 | # This file is intentionally very generic and is intended to support a broad rang of keyboards. 19 | # Do not edit the generic key layout to support a specific keyboard; instead, create 20 | # a new key layout file with the required keyboard configuration. 21 | # 22 | key 1 BACK 23 | key 2 1 24 | key 3 2 25 | key 4 3 26 | key 5 4 27 | key 6 5 28 | key 7 6 29 | key 8 7 30 | key 9 8 31 | key 10 9 32 | key 11 0 33 | key 28 DPAD_CENTER 34 | key 59 HOME 35 | key 61 HOME 36 | key 62 INFO 37 | key 63 F5 38 | key 103 DPAD_UP 39 | key 104 MEDIA_PREVIOUS 40 | key 105 DPAD_LEFT 41 | key 106 DPAD_RIGHT 42 | key 108 DPAD_DOWN 43 | key 109 MEDIA_NEXT 44 | key 113 VOLUME_MUTE 45 | key 114 VOLUME_DOWN 46 | key 115 VOLUME_UP 47 | key 116 POWER 48 | key 130 MENU 49 | #key 240 ESCAPE 50 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/bee2/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(call all-subdir-makefiles) 4 | 5 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/bee2/addon.mk: -------------------------------------------------------------------------------- 1 | PRODUCT_COPY_FILES += \ 2 | $(LOCAL_PATH)/vendor/etc/hidraw_setting:vendor/etc/hidraw_setting \ 3 | $(LOCAL_PATH)/vendor/usr/keylayout/Vendor_005d_Product_0002.kl:vendor/usr/keylayout/Vendor_005d_Product_0002.kl \ 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/bee2/vendor/etc/hidraw_setting: -------------------------------------------------------------------------------- 1 | [Rcu] 2 | Vid=005d 3 | Pid=0002 4 | Ver=0000 5 | 6 | [ReportID] 7 | Key=1 8 | Data=5a 9 | Cmd=5a 10 | 11 | [ReportValue] 12 | KeyDownLen=8 13 | KeyDown=0,0,3e,0,0,0,0,0; 14 | KeyUpLen=8 15 | KeyUp=0,0,3f,0,0,0,0,0; 16 | 17 | [Settings] 18 | DecodeType=1 19 | DataMask=1 20 | AutoCmd=2 21 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/bee2/vendor/usr/keylayout/Vendor_005d_Product_0002.kl: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # 16 | # Generic key layout file for full alphabetic US English PC style external keyboards. 17 | # 18 | # This file is intentionally very generic and is intended to support a broad rang of keyboards. 19 | # Do not edit the generic key layout to support a specific keyboard; instead, create 20 | # a new key layout file with the required keyboard configuration. 21 | # 22 | key 1 BACK 23 | key 2 1 24 | key 3 2 25 | key 4 3 26 | key 5 4 27 | key 6 5 28 | key 7 6 29 | key 8 7 30 | key 9 8 31 | key 10 9 32 | key 11 0 33 | key 28 DPAD_CENTER 34 | key 59 HOME 35 | key 61 HOME 36 | key 62 INFO 37 | key 63 ASSIST 38 | key 103 DPAD_UP 39 | key 104 MEDIA_PREVIOUS 40 | key 105 DPAD_LEFT 41 | key 106 DPAD_RIGHT 42 | key 108 DPAD_DOWN 43 | key 109 MEDIA_NEXT 44 | key 113 VOLUME_MUTE 45 | key 114 VOLUME_DOWN 46 | key 115 VOLUME_UP 47 | key 116 POWER 48 | key 130 MENU 49 | #key 240 ESCAPE 50 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(call all-subdir-makefiles) 4 | 5 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/addon.mk: -------------------------------------------------------------------------------- 1 | PRODUCT_PACKAGES += \ 2 | vr_bee_hidraw_daemon \ 3 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES += \ 6 | voice_hidraw.c \ 7 | voice_uipc.c \ 8 | get_voice_app.c \ 9 | ./sbc/sbc.c \ 10 | ./sbc/sbc_primitives.c \ 11 | ./sbc/sbc_primitives_armv6.c \ 12 | ./sbc/sbc_primitives_iwmmxt.c \ 13 | ./sbc/sbc_primitives_mmx.c \ 14 | ./sbc/sbc_primitives_neon.c \ 15 | config.c 16 | 17 | LOCAL_C_INCLUDES += \ 18 | $(LOCAL_PATH)/sbc \ 19 | 20 | 21 | LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-label 22 | 23 | LOCAL_MODULE_TAGS := optional 24 | LOCAL_SHARED_LIBRARIES := libcutils libc liblog libtinyalsa libutils 25 | LOCAL_INIT_RC := hidraw.rc 26 | LOCAL_MODULE := vr_bee_hidraw_daemon 27 | LOCAL_PROPRIETARY_MODULE := true 28 | LOCAL_MULTILIB := 32 29 | 30 | include $(BUILD_EXECUTABLE) 31 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/bee_settings.h: -------------------------------------------------------------------------------- 1 | #ifndef BEE_SETTINGS_H 2 | #define BEE_SETTINGS_H 3 | 4 | #define BEE_RCU_VID (0x005D) 5 | #define BEE_RCU_PID (0x0001) 6 | #define BEE_RCU_VERSION (0x0000) 7 | 8 | #define BEE_VOICEKEY_LEN 8 9 | 10 | #define BEE_VOICEKEY_REPORTID (0x01) 11 | 12 | unsigned char BEE_VOICE_KEYDOWN_DATA[BEE_VOICEKEY_LEN] = {0x00, 0x00, 0x3E, 0x00, 0x00, 0x00, 0x00, 0x00}; 13 | unsigned char BEE_VOICE_KEYUP_DATA[BEE_VOICEKEY_LEN] = {0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; 14 | 15 | //msbc 16 | #define BEE_MSBC_VOICEDATA_REPORTID (0x5A) 17 | #define BEE_MSBC_VOICECMD_REPORTID (0x5A) 18 | 19 | 20 | #define BEE_MSBC_ATT_FRAME_SIZE 120 21 | #define BEE_MSBC_FRAME_SIZE 60 22 | #define BEE_MSBC_DECODE_INPUT_SIZE 58 23 | #define BEE_MSBC_DECODE_OUTPUT_SIZE 240 24 | 25 | //sbc 26 | #define BEE_SBC_VOICEDATA_REPORTID (0x5B) 27 | #define BEE_SBC_VOICECMD_REPORTID (0x5B) 28 | 29 | #define BEE_SBC_ATT_FRAME_SIZE 72 30 | #define BEE_SBC_FRAME_SIZE 36 31 | 32 | #define BEE_SBC_DECODE_INPUT_SIZE 36 33 | #define BEE_SBC_DECODE_OUTPUT_SIZE 256 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/config.h: -------------------------------------------------------------------------------- 1 | #ifndef CONFIG_H 2 | #define CONFIG_H 3 | 4 | typedef struct tVoice_Hidraw_Settings 5 | { 6 | struct tVoice_Hidraw_Settings * next; 7 | char * group; 8 | char * item; 9 | char * val; 10 | } tVoice_Hidraw_Settings; 11 | 12 | int voice_loadconfig(const char * path); 13 | int voice_get_int_config(const char *group, const char *item); 14 | int voice_get_byte_array_config(const char *group, const char *item, char* arr, int len); 15 | int voice_conf_exit(); 16 | 17 | 18 | #define CONFIG_GROUP_RCU "Rcu" 19 | #define CONFIG_ITEM_RCU_VID "Vid" 20 | #define CONFIG_ITEM_RCU_PID "Pid" 21 | #define CONFIG_ITEM_RCU_VER "Ver" 22 | 23 | #define CONFIG_GROUP_REPORTID "ReportID" 24 | #define CONFIG_ITEM_REPORTID_KEY "Key" 25 | #define CONFIG_ITEM_REPORTID_DATA "Data" 26 | #define CONFIG_ITEM_REPORTID_CMD "Cmd" 27 | 28 | #define CONFIG_GROUP_REPORTVALUE "ReportValue" 29 | #define CONFIG_ITEM_REPORTVALUE_KEYDOWNLEN "KeyDownLen" 30 | #define CONFIG_ITEM_REPORTVALUE_KEYDOWN "KeyDown" 31 | #define CONFIG_ITEM_REPORTVALUE_KEYUPLEN "KeyUpLen" 32 | #define CONFIG_ITEM_REPORTVALUE_KEYUP "KeyUp" 33 | 34 | #define CONFIG_GROUP_SETTINGS "Settings" 35 | #define CONFIG_ITEM_SETTINGS_DECODETYPE "DecodeType" 36 | #define CONFIG_ITEM_SETTINGS_DATAMASK "DataMask" 37 | #define CONFIG_ITEM_SETTINGS_AUTOCMD "AutoCmd" 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/get_voice_app.h: -------------------------------------------------------------------------------- 1 | 2 | //#define MSBC_SUPPORT 3 | #define VOICE_KEY_DOWN 0x3e 4 | #define VOICE_BUFFER_REPORT_ID 0x5a 5 | #define ADD_FOR_VOICE_CONTROL 6 | #define VOICE_FILE_WITH_MSBC "/tmp/voice_msbc" 7 | #define VOICE_FILE_WITH_NO_MSBC "/tmp/voice_no_msbc" 8 | 9 | typedef unsigned char uint8; 10 | typedef unsigned short uint16; 11 | typedef unsigned int uint32; 12 | typedef signed char int8; 13 | typedef signed short int16; 14 | typedef signed int int32; 15 | 16 | void RS_voice_app_create_origin_output(); 17 | 18 | int RS_deal_msbc_voice_stream_data(const uint8* input, size_t voice_buf_size, unsigned char* output, size_t output_buf_size, int* frame_len); 19 | 20 | int RS_deal_sbc_voice_stream_data(const uint8* input, size_t voice_buf_size, unsigned char* output, size_t output_buf_size, int* frame_len); 21 | 22 | int RS_stop_voice_stream_data (void); 23 | 24 | void RS_voice_app_create_output(); 25 | 26 | int RS_write_origin_buf(uint8* in_decode, ssize_t len); 27 | 28 | int RS_write_decode_buf(uint8* pu_decode, ssize_t len); 29 | 30 | void RS_init_sbc(int decode_type); -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/hidraw.rc: -------------------------------------------------------------------------------- 1 | service hidraw /vendor/bin/vr_bee_hidraw_daemon 2 | class main 3 | user root 4 | group root 5 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/sbc/sbc.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: SBC 7 | Description: SBC library 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lsbc 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/sbc/sbc.sym: -------------------------------------------------------------------------------- 1 | SBC_1.0 { 2 | global: 3 | sbc_init; 4 | sbc_reinit; 5 | sbc_finish; 6 | 7 | sbc_parse; 8 | sbc_decode; 9 | sbc_encode; 10 | 11 | sbc_get_frame_length; 12 | sbc_get_frame_duration; 13 | sbc_get_codesize; 14 | sbc_get_implementation_info; 15 | local: 16 | *; 17 | }; 18 | SBC_1.1 { 19 | global: 20 | sbc_init_msbc; 21 | } SBC_1.0; 22 | SBC_1.2 { 23 | global: 24 | sbc_init_a2dp; 25 | sbc_reinit_a2dp; 26 | } SBC_1.1; 27 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/sbc/sbc_primitives_iwmmxt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Bluetooth low-complexity, subband codec (SBC) library 4 | * 5 | * Copyright (C) 2010 Keith Mok 6 | * Copyright (C) 2008-2010 Nokia Corporation 7 | * Copyright (C) 2004-2010 Marcel Holtmann 8 | * Copyright (C) 2004-2005 Henryk Ploetz 9 | * Copyright (C) 2005-2006 Brad Midgley 10 | * 11 | * 12 | * This library is free software; you can redistribute it and/or 13 | * modify it under the terms of the GNU Lesser General Public 14 | * License as published by the Free Software Foundation; either 15 | * version 2.1 of the License, or (at your option) any later version. 16 | * 17 | * This library is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 | * Lesser General Public License for more details. 21 | * 22 | * You should have received a copy of the GNU Lesser General Public 23 | * License along with this library; if not, write to the Free Software 24 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 | * 26 | */ 27 | 28 | #ifndef __SBC_PRIMITIVES_IWMMXT_H 29 | #define __SBC_PRIMITIVES_IWMMXT_H 30 | 31 | #include "sbc_primitives.h" 32 | 33 | #if defined(__GNUC__) && defined(__IWMMXT__) && \ 34 | !defined(SBC_HIGH_PRECISION) && (SCALE_OUT_BITS == 15) 35 | 36 | #define SBC_BUILD_WITH_IWMMXT_SUPPORT 37 | 38 | void sbc_init_primitives_iwmmxt(struct sbc_encoder_state *encoder_state); 39 | 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/sbc/sbc_primitives_mmx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Bluetooth low-complexity, subband codec (SBC) library 4 | * 5 | * Copyright (C) 2008-2010 Nokia Corporation 6 | * Copyright (C) 2004-2010 Marcel Holtmann 7 | * Copyright (C) 2004-2005 Henryk Ploetz 8 | * Copyright (C) 2005-2006 Brad Midgley 9 | * 10 | * 11 | * This library is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU Lesser General Public 13 | * License as published by the Free Software Foundation; either 14 | * version 2.1 of the License, or (at your option) any later version. 15 | * 16 | * This library is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 | * Lesser General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU Lesser General Public 22 | * License along with this library; if not, write to the Free Software 23 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24 | * 25 | */ 26 | 27 | #ifndef __SBC_PRIMITIVES_MMX_H 28 | #define __SBC_PRIMITIVES_MMX_H 29 | 30 | #include "sbc_primitives.h" 31 | 32 | #if defined(__GNUC__) && (defined(__i386__) || defined(__amd64__)) && \ 33 | !defined(SBC_HIGH_PRECISION) && (SCALE_OUT_BITS == 15) 34 | 35 | #define SBC_BUILD_WITH_MMX_SUPPORT 36 | 37 | void sbc_init_primitives_mmx(struct sbc_encoder_state *encoder_state); 38 | 39 | #endif 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/sbc/sbc_primitives_neon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Bluetooth low-complexity, subband codec (SBC) library 4 | * 5 | * Copyright (C) 2008-2010 Nokia Corporation 6 | * Copyright (C) 2004-2010 Marcel Holtmann 7 | * Copyright (C) 2004-2005 Henryk Ploetz 8 | * Copyright (C) 2005-2006 Brad Midgley 9 | * 10 | * 11 | * This library is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU Lesser General Public 13 | * License as published by the Free Software Foundation; either 14 | * version 2.1 of the License, or (at your option) any later version. 15 | * 16 | * This library is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 | * Lesser General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU Lesser General Public 22 | * License along with this library; if not, write to the Free Software 23 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24 | * 25 | */ 26 | 27 | #ifndef __SBC_PRIMITIVES_NEON_H 28 | #define __SBC_PRIMITIVES_NEON_H 29 | 30 | #include "sbc_primitives.h" 31 | 32 | #if defined(__GNUC__) && defined(__ARM_NEON__) && \ 33 | !defined(SBC_HIGH_PRECISION) && (SCALE_OUT_BITS == 15) 34 | 35 | #define SBC_BUILD_WITH_NEON_SUPPORT 36 | 37 | void sbc_init_primitives_neon(struct sbc_encoder_state *encoder_state); 38 | 39 | #endif 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /bt/rtkbt/addon/vr_bee_hidraw_daemon/hidraw/sbc/sbc_private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Bluetooth low-complexity, subband codec (SBC) library 4 | * 5 | * Copyright (C) 2008-2010 Nokia Corporation 6 | * Copyright (C) 2004-2010 Marcel Holtmann 7 | * 8 | * 9 | * This library is free software; you can redistribute it and/or 10 | * modify it under the terms of the GNU Lesser General Public 11 | * License as published by the Free Software Foundation; either 12 | * version 2.1 of the License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | * Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public 20 | * License along with this library; if not, write to the Free Software 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | * 23 | */ 24 | 25 | #define SBC_EXPORT __attribute__ ((visibility("default"))) 26 | -------------------------------------------------------------------------------- /bt/rtkbt/code/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(BOARD_HAVE_BLUETOOTH_RTK),true) 2 | LOCAL_PATH := $(call my-dir) 3 | include $(call all-subdir-makefiles) 4 | endif 5 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := libbt-vendor.so 6 | LOCAL_MODULE_TAGS:= optional eng 7 | LOCAL_MODULE_CLASS := VENDOR_SHARED_LIBRARIES 8 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) 9 | LOCAL_MODULE_SUFFIX := .so 10 | LOCAL_MODULE := libbt-vendor 11 | LOCAL_PROPRIETARY_MODULE := true 12 | 13 | include $(BUILD_PREBUILT) 14 | 15 | 16 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/codec/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | # libbt-codec.a 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_SRC_FILES := \ 7 | ./sbc/sbc.c \ 8 | ./sbc/sbc_primitives.c \ 9 | ./sbc/sbc_primitives_mmx.c \ 10 | ./sbc/sbc_primitives_neon.c 11 | 12 | LOCAL_C_INCLUDES := 13 | LOCAL_CFLAGS := \ 14 | -Wno-error=unused-parameter \ 15 | -Wno-ignored-attributes 16 | 17 | LOCAL_MODULE_TAGS := optional 18 | LOCAL_PROPRIETARY_MODULE := true 19 | LOCAL_SHARED_LIBRARIES := libcutils libc 20 | LOCAL_MODULE := libbt-codec 21 | #LOCAL_MULTILIB := 32 22 | 23 | include $(BUILD_STATIC_LIBRARY) 24 | 25 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/codec/sbc/sbc_primitives_iwmmxt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Bluetooth low-complexity, subband codec (SBC) library 4 | * 5 | * Copyright (C) 2010 Keith Mok 6 | * Copyright (C) 2008-2010 Nokia Corporation 7 | * Copyright (C) 2004-2010 Marcel Holtmann 8 | * Copyright (C) 2004-2005 Henryk Ploetz 9 | * Copyright (C) 2005-2006 Brad Midgley 10 | * 11 | * 12 | * This library is free software; you can redistribute it and/or 13 | * modify it under the terms of the GNU Lesser General Public 14 | * License as published by the Free Software Foundation; either 15 | * version 2.1 of the License, or (at your option) any later version. 16 | * 17 | * This library is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 | * Lesser General Public License for more details. 21 | * 22 | * You should have received a copy of the GNU Lesser General Public 23 | * License along with this library; if not, write to the Free Software 24 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 | * 26 | */ 27 | 28 | #ifndef __SBC_PRIMITIVES_IWMMXT_H 29 | #define __SBC_PRIMITIVES_IWMMXT_H 30 | 31 | #include "sbc_primitives.h" 32 | 33 | #if defined(__GNUC__) && defined(__IWMMXT__) && \ 34 | !defined(SBC_HIGH_PRECISION) && (SCALE_OUT_BITS == 15) 35 | 36 | #define SBC_BUILD_WITH_IWMMXT_SUPPORT 37 | 38 | void sbc_init_primitives_iwmmxt(struct sbc_encoder_state *encoder_state); 39 | 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/codec/sbc/sbc_primitives_mmx.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Bluetooth low-complexity, subband codec (SBC) library 4 | * 5 | * Copyright (C) 2008-2010 Nokia Corporation 6 | * Copyright (C) 2004-2010 Marcel Holtmann 7 | * Copyright (C) 2004-2005 Henryk Ploetz 8 | * Copyright (C) 2005-2006 Brad Midgley 9 | * 10 | * 11 | * This library is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU Lesser General Public 13 | * License as published by the Free Software Foundation; either 14 | * version 2.1 of the License, or (at your option) any later version. 15 | * 16 | * This library is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 | * Lesser General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU Lesser General Public 22 | * License along with this library; if not, write to the Free Software 23 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24 | * 25 | */ 26 | 27 | #ifndef __SBC_PRIMITIVES_MMX_H 28 | #define __SBC_PRIMITIVES_MMX_H 29 | 30 | #include "sbc_primitives.h" 31 | 32 | #if defined(__GNUC__) && (defined(__i386__) || defined(__amd64__)) && \ 33 | !defined(SBC_HIGH_PRECISION) && (SCALE_OUT_BITS == 15) 34 | 35 | #define SBC_BUILD_WITH_MMX_SUPPORT 36 | 37 | void sbc_init_primitives_mmx(struct sbc_encoder_state *encoder_state); 38 | 39 | #endif 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/codec/sbc/sbc_primitives_neon.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Bluetooth low-complexity, subband codec (SBC) library 4 | * 5 | * Copyright (C) 2008-2010 Nokia Corporation 6 | * Copyright (C) 2004-2010 Marcel Holtmann 7 | * Copyright (C) 2004-2005 Henryk Ploetz 8 | * Copyright (C) 2005-2006 Brad Midgley 9 | * 10 | * 11 | * This library is free software; you can redistribute it and/or 12 | * modify it under the terms of the GNU Lesser General Public 13 | * License as published by the Free Software Foundation; either 14 | * version 2.1 of the License, or (at your option) any later version. 15 | * 16 | * This library is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 | * Lesser General Public License for more details. 20 | * 21 | * You should have received a copy of the GNU Lesser General Public 22 | * License along with this library; if not, write to the Free Software 23 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24 | * 25 | */ 26 | 27 | #ifndef __SBC_PRIMITIVES_NEON_H 28 | #define __SBC_PRIMITIVES_NEON_H 29 | 30 | #include "sbc_primitives.h" 31 | 32 | #if defined(__GNUC__) && defined(__ARM_NEON__) && \ 33 | !defined(SBC_HIGH_PRECISION) && (SCALE_OUT_BITS == 15) 34 | 35 | #define SBC_BUILD_WITH_NEON_SUPPORT 36 | 37 | void sbc_init_primitives_neon(struct sbc_encoder_state *encoder_state); 38 | 39 | #endif 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/codec/sbc/sbc_private.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Bluetooth low-complexity, subband codec (SBC) library 4 | * 5 | * Copyright (C) 2008-2010 Nokia Corporation 6 | * Copyright (C) 2004-2010 Marcel Holtmann 7 | * 8 | * 9 | * This library is free software; you can redistribute it and/or 10 | * modify it under the terms of the GNU Lesser General Public 11 | * License as published by the Free Software Foundation; either 12 | * version 2.1 of the License, or (at your option) any later version. 13 | * 14 | * This library is distributed in the hope that it will be useful, 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 | * Lesser General Public License for more details. 18 | * 19 | * You should have received a copy of the GNU Lesser General Public 20 | * License along with this library; if not, write to the Free Software 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | * 23 | */ 24 | 25 | #define SBC_EXPORT __attribute__ ((visibility("default"))) 26 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/include/rtk_btservice.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (C) 2009-2018 Realtek Corporation. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at: 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | ******************************************************************************/ 18 | #ifndef RTK_BTSERVICE_H 19 | #define RTK_BTSERVICE_H 20 | 21 | #include 22 | #include 23 | 24 | #define HCI_RTKBT_AUTOPAIR_EVT 0x30 25 | 26 | #endif 27 | 28 | 29 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/include/rtk_poll.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (C) 2009-2018 Realtek Corporation. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at: 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | ******************************************************************************/ 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include "bt_vendor_lib.h" 23 | 24 | typedef void (*timed_out)(union sigval arg); 25 | 26 | 27 | void poll_init(timed_out ptr_timeout,uint32_t timeout); 28 | 29 | void poll_cleanup(void); 30 | 31 | void poll_enable(uint8_t turn_on); 32 | 33 | void poll_timer_flush(void); 34 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/include/unused.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (C) 2009-2018 Realtek Corporation. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at: 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | * 17 | ******************************************************************************/ 18 | #ifndef BT_UNUSED_H 19 | #define BT_UNUSED_H 20 | #ifdef __GNUC__ 21 | # define UNUSED(x) UNUSED_ ## x __attribute__((__unused__)) 22 | #else 23 | # define UNUSED(x) UNUSED_ ## x 24 | #endif 25 | #endif /*BT_UNUSED_H*/ 26 | -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/libbt-vendor.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/code/libbt-vendor/libbt-vendor.so -------------------------------------------------------------------------------- /bt/rtkbt/code/libbt-vendor/src/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | BDROID_DIR := $(TOP_DIR)system/bt 6 | 7 | LOCAL_SRC_FILES := \ 8 | rtk_socket.c \ 9 | bt_vendor_rtk.c \ 10 | hardware.c \ 11 | userial_vendor.c \ 12 | upio.c \ 13 | bt_list.c \ 14 | bt_skbuff.c \ 15 | hci_h5.c \ 16 | rtk_parse.c \ 17 | rtk_btservice.c \ 18 | hardware_uart.c \ 19 | hardware_usb.c \ 20 | rtk_heartbeat.c \ 21 | rtk_poll.c \ 22 | rtk_btsnoop_net.c 23 | 24 | LOCAL_C_INCLUDES += \ 25 | $(LOCAL_PATH)/../include \ 26 | $(LOCAL_PATH)/../codec/sbc \ 27 | $(BDROID_DIR)/hci/include 28 | 29 | LOCAL_SHARED_LIBRARIES := \ 30 | libcutils \ 31 | libutils \ 32 | liblog 33 | 34 | LOCAL_WHOLE_STATIC_LIBRARIES := \ 35 | libbt-codec 36 | 37 | LOCAL_MODULE := libbt-vendor 38 | LOCAL_MODULE_TAGS := optional 39 | LOCAL_PROPRIETARY_MODULE := true 40 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 41 | 42 | ifneq ($(TARGET_2ND_ARCH),) 43 | LOCAL_POST_INSTALL_CMD := cp -f $(TARGET_OUT_VENDOR)/lib64/$(LOCAL_MODULE).so device/realtek/$(TARGET_BOARD_PLATFORM)/common/prebuilt/proprietary/lib64 44 | else 45 | LOCAL_POST_INSTALL_CMD := cp -f $(TARGET_OUT_VENDOR)/lib/$(LOCAL_MODULE).so device/realtek/$(TARGET_BOARD_PLATFORM)/common/prebuilt/proprietary/lib 46 | endif 47 | 48 | include $(BUILD_SHARED_LIBRARY) 49 | -------------------------------------------------------------------------------- /bt/rtkbt/code/rtkcmd/Android.mk: -------------------------------------------------------------------------------- 1 | ################################################ 2 | 3 | LOCAL_PATH:= $(call my-dir) 4 | 5 | include $(CLEAR_VARS) 6 | 7 | LOCAL_SRC_FILES := rtkcmd 8 | LOCAL_MODULE_CLASS := EXECUTABLES 9 | LOCAL_MODULE_TAGS := optional eng 10 | LOCAL_MODULE := rtkcmd 11 | LOCAL_PROPRIETARY_MODULE := true 12 | 13 | include $(BUILD_PREBUILT) 14 | 15 | -------------------------------------------------------------------------------- /bt/rtkbt/code/rtkcmd/rtkcmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/code/rtkcmd/rtkcmd -------------------------------------------------------------------------------- /bt/rtkbt/system/etc/permissions/android.hardware.bluetooth.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /bt/rtkbt/system/etc/permissions/android.hardware.bluetooth_le.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /bt/rtkbt/vendor/etc/bluetooth/dummy_addr: -------------------------------------------------------------------------------- 1 | 22:22:67:c6:69:73 2 | -------------------------------------------------------------------------------- /bt/rtkbt/vendor/etc/bluetooth/rtkbt.conf: -------------------------------------------------------------------------------- 1 | # RELEASE NAME: 20180517_BT_ANDROID_9.0 2 | # Bluetooth Device Name; NULL or comment means "ro.product.model" 3 | #Name=Realtek Bluetooth 4 | 5 | # Device Class 6 | DevClassServiceClass=0x1A 7 | DevClassMajorClass=0x01 8 | DevClassMinorClass=0x1C 9 | 10 | #Indicate USB or UART driver bluetooth 11 | BtDeviceNode=?/dev/ttyS1:H5 12 | 13 | # Enable BtSnoop logging function 14 | # valid value : true, false 15 | RtkBtsnoopDump=false 16 | 17 | # BtSnoop log output file 18 | BtSnoopFileName=/data/misc/bluedroid/btsnoop_hci.cfa 19 | 20 | # Preserve existing BtSnoop log before overwriting 21 | BtSnoopSaveLog=true 22 | 23 | #bit0 = 1,don't show heartbeat packet in btsnoop 24 | RtkbtLogFilter=1 25 | 26 | # configuration for uart card to save HCI log for slave 27 | H5LogOutput=0 28 | 29 | # Enable Coex log 30 | BtCoexLogOutput=0 31 | 32 | # Enable net btsnoop Dump 33 | RtkBtsnoopNetDump=false 34 | 35 | 36 | # Enable auto restart bt 37 | RtkBtAutoRestart=true 38 | -------------------------------------------------------------------------------- /bt/rtkbt/vendor/usr/idc/Vendor_005d_Product_0002.idc: -------------------------------------------------------------------------------- 1 | audio.mic = 1 2 | -------------------------------------------------------------------------------- /bt/rtkbt/vendor/usr/idc/Vendor_0416_Product_0300.idc: -------------------------------------------------------------------------------- 1 | audio.mic = 1 2 | -------------------------------------------------------------------------------- /bt/rtkbt/vendor/usr/keylayout/Vendor_005d_Product_0002.kl: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # 16 | # Generic key layout file for full alphabetic US English PC style external keyboards. 17 | # 18 | # This file is intentionally very generic and is intended to support a broad rang of keyboards. 19 | # Do not edit the generic key layout to support a specific keyboard; instead, create 20 | # a new key layout file with the required keyboard configuration. 21 | # 22 | key 1 BACK 23 | key 2 1 24 | key 3 2 25 | key 4 3 26 | key 5 4 27 | key 6 5 28 | key 7 6 29 | key 8 7 30 | key 9 8 31 | key 10 9 32 | key 11 0 33 | key 28 DPAD_CENTER 34 | key 59 HOME 35 | key 62 INFO 36 | key 103 DPAD_UP 37 | key 104 MEDIA_PREVIOUS 38 | key 105 DPAD_LEFT 39 | key 106 DPAD_RIGHT 40 | key 108 DPAD_DOWN 41 | key 109 MEDIA_NEXT 42 | key 113 VOLUME_MUTE 43 | key 114 VOLUME_DOWN 44 | key 115 VOLUME_UP 45 | key 116 POWER 46 | key 130 MENU 47 | key 217 ASSIST 48 | -------------------------------------------------------------------------------- /bt/rtkbt/vendor/usr/keylayout/Vendor_0416_Product_0300.kl: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # 16 | # Generic key layout file for full alphabetic US English PC style external keyboards. 17 | # 18 | # This file is intentionally very generic and is intended to support a broad rang of keyboards. 19 | # Do not edit the generic key layout to support a specific keyboard; instead, create 20 | # a new key layout file with the required keyboard configuration. 21 | # 22 | key 158 BACK 23 | key 2 1 24 | key 3 2 25 | key 4 3 26 | key 5 4 27 | key 6 5 28 | key 7 6 29 | key 8 7 30 | key 9 8 31 | key 10 9 32 | key 11 0 33 | key 28 DPAD_CENTER 34 | key 61 HOME 35 | key 62 INFO 36 | key 103 DPAD_UP 37 | key 104 MEDIA_PREVIOUS 38 | key 105 DPAD_LEFT 39 | key 106 DPAD_RIGHT 40 | key 108 DPAD_DOWN 41 | key 109 MEDIA_NEXT 42 | key 113 VOLUME_MUTE 43 | key 114 VOLUME_DOWN 44 | key 115 VOLUME_UP 45 | key 116 POWER 46 | key 139 MENU 47 | key 172 HOME 48 | key 217 ASSIST 49 | #key 240 ESCAPE 50 | -------------------------------------------------------------------------------- /camera3/CameraFactory.h: -------------------------------------------------------------------------------- 1 | #ifndef _CAMERA_HAL3_FACTORY_ 2 | #define _CAMERA_HAL3_FACTORY_ 3 | 4 | //#include "CameraHardware3.h" 5 | #include "CameraHardware3v2.h" 6 | 7 | using namespace android; 8 | using namespace androidcamera3; 9 | 10 | namespace androidcamera3{ 11 | 12 | CameraHardware3Base *createCamera( 13 | int id, 14 | int v4l2Id, 15 | int facing); 16 | 17 | }; 18 | 19 | #endif //_CAMERA_HAL3_FACTORY_ 20 | 21 | 22 | -------------------------------------------------------------------------------- /camera3/CameraUtilCommon.h: -------------------------------------------------------------------------------- 1 | #ifndef _CAMERA_UTIL_COMMON_H_ 2 | #define _CAMERA_UTIL_COMMON_H_ 3 | 4 | #define HDMIRX_STATE "/sys/devices/virtual/switch/rx_video/state" 5 | #define HDMITX_STATE "/sys/devices/virtual/switch/hdmi/state" 6 | 7 | #define HDCP_STATE_PATH "/sys/devices/platform/98037000.hdmirx/hdcp_status" 8 | #define HDCP_1X_PATH "/sys/devices/platform/98037000.hdmirx/hdcp1x_en" 9 | #define HDCP_22_PATH "/sys/devices/platform/98037000.hdmirx/hdcp2p2_en" 10 | 11 | #define HDMIRX_SWITCH "devices/virtual/switch/rx_video" 12 | 13 | static inline bool _readLine( 14 | const char *path, 15 | char *line, 16 | ssize_t len) 17 | { 18 | FILE *fd = fopen(path, "r"); 19 | 20 | if(fd != NULL) { 21 | memset(line,0x0,len); 22 | fread(line,1,len,fd); 23 | fclose(fd); 24 | return true; 25 | }else{ 26 | return false; 27 | } 28 | } 29 | 30 | static inline int32_t _readState(const char *path) 31 | { 32 | char line[128]; 33 | memset(line,0x0,128); 34 | if(_readLine(path,line,128)) { 35 | return atoi(line); 36 | } else { 37 | return 0; 38 | } 39 | } 40 | 41 | static inline bool _isUsbCamConnected(int32_t id) 42 | { 43 | char path[128]; 44 | memset(&(path[0]),0,128); 45 | sprintf(path,"/dev/video%d",id); 46 | if(access(path,R_OK) != 0) { 47 | return false; 48 | } else { 49 | return true; 50 | } 51 | } 52 | 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /camera3/Debug.h: -------------------------------------------------------------------------------- 1 | #ifndef CAMERA3_DEBUG_H 2 | #define CAMERA3_DEBUG_H 3 | 4 | #include 5 | 6 | #define LITERAL_TO_STRING_INTERNAL(x) #x 7 | #define LITERAL_TO_STRING(x) LITERAL_TO_STRING_INTERNAL(x) 8 | 9 | #define CHECK(condition) \ 10 | LOG_ALWAYS_FATAL_IF( \ 11 | !(condition), \ 12 | "%s", \ 13 | __FILE__ ":" LITERAL_TO_STRING(__LINE__) \ 14 | " CHECK(" #condition ") failed.") 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /camera3/Debug_old.h: -------------------------------------------------------------------------------- 1 | #ifndef CAM_HAL3_DEBUG_H 2 | #define CAM_HAL3_DEBUG_H 3 | 4 | #include 5 | #include 6 | 7 | //#include 8 | 9 | #define CHECK(condition) \ 10 | LOG_ALWAYS_FATAL_IF( \ 11 | !(condition), \ 12 | "%s", \ 13 | __FILE__ ":" LITERAL_TO_STRING(__LINE__) \ 14 | " CHECK(" #condition ") failed.") 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /camera3/MJPGFmt.h: -------------------------------------------------------------------------------- 1 | #ifndef MJPG_FMT_H 2 | #define MJPG_FMT_H 3 | 4 | #define FMT_NV21 (0) 5 | 6 | #if (FMT_NV21) 7 | 8 | #define MJPG_HAL_FMT HAL_PIXEL_FORMAT_RTK_W16_H16_YCrCb_420_SP 9 | #define JPEG_ENCODER_FMT HAL_PIXEL_FORMAT_YCrCb_420_SP 10 | 11 | #else 12 | 13 | #define MJPG_HAL_FMT HAL_PIXEL_FORMAT_RTK_W16_H16_YCbCr_420_SP 14 | #define JPEG_ENCODER_FMT HAL_PIXEL_FORMAT_RTK_16_YCbCr_420_SP 15 | 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /camera3/ProviderPriv.h: -------------------------------------------------------------------------------- 1 | #ifndef _PROVIDER_PRIV_H_ 2 | #define _PROVIDER_PRIV_H_ 3 | 4 | class Camera3ProviderPrivInfo { 5 | 6 | public: 7 | Camera3ProviderPrivInfo(); 8 | ~Camera3ProviderPrivInfo(); 9 | 10 | const char *mProviderName; 11 | static Camera3ProviderPrivInfo *sInstance; 12 | 13 | }; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /camera3/V4L2Common.h: -------------------------------------------------------------------------------- 1 | #ifndef _V4L2_COMMON_H_ 2 | #define _V4L2_COMMON_H_ 3 | 4 | #include 5 | 6 | #define VIDIOC_SET_PHY_ADDR_MODE _IOWR('V', BASE_VIDIOC_PRIVATE+6, int) 7 | 8 | /** 9 | * VideoIn info 10 | */ 11 | struct vdIn { 12 | struct v4l2_capability cap; 13 | struct v4l2_format format; 14 | struct v4l2_buffer buf; 15 | struct v4l2_requestbuffers rb; 16 | bool isStreaming; 17 | bool isInited; 18 | int fps; 19 | int width; 20 | int height; 21 | int formatIn; 22 | int framesizeIn; 23 | char devName[32]; 24 | }; 25 | 26 | #endif // _V4L2_COMMON_H_ 27 | -------------------------------------------------------------------------------- /camera3/V4L2Device2Callback.h: -------------------------------------------------------------------------------- 1 | #ifndef _V4L2DEVICE2_CALLBACK_ 2 | #define _V4L2DEVICE2_CALLBACK_ 3 | 4 | #include "Base.h" 5 | 6 | using namespace android; 7 | 8 | namespace android { 9 | 10 | class V4L2Device2Callback { 11 | 12 | public: 13 | virtual ~V4L2Device2Callback(); 14 | 15 | virtual void returnRequest(Request *r) = 0; 16 | 17 | #if 0 18 | virtual void submitRequest(Request *r) = 0; 19 | virtual void submitErrorRequest(Request *r) = 0; 20 | virtual void onReturnAllRequests() = 0; 21 | virtual void onUpdateDeviceState() = 0; 22 | #endif 23 | }; 24 | 25 | }; // namespace android 26 | 27 | 28 | #endif // _V4L2DEVICE2_CALLBACK_ 29 | -------------------------------------------------------------------------------- /camera3/VOWBCallback.h: -------------------------------------------------------------------------------- 1 | #ifndef VOWB_CALLBACK_H 2 | #define VOWB_CALLBACK_H 3 | 4 | #include "CamBufDef.h" 5 | 6 | using namespace android; 7 | 8 | namespace android { 9 | 10 | /** 11 | * This is a simple interface that defines which 12 | * functions a VOWBHelper callback should support. 13 | */ 14 | class VOWBCallback { 15 | public: 16 | virtual ~VOWBCallback(); 17 | virtual void returnSrcBuffer(allocator_info_t *pBuf) = 0; 18 | virtual void signalBufferAvailable() = 0; 19 | }; 20 | 21 | }; // namespace android 22 | 23 | #endif // VOWB_CALLBACK_H 24 | -------------------------------------------------------------------------------- /camera3/jpegexif/libjpeg/exif-i18n.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/camera3/jpegexif/libjpeg/exif-i18n.h -------------------------------------------------------------------------------- /camera3/jpegexif/libjpeg/jpeg-data.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/camera3/jpegexif/libjpeg/jpeg-data.h -------------------------------------------------------------------------------- /camera3/jpegexif/libjpeg/jpeg-marker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/camera3/jpegexif/libjpeg/jpeg-marker.h -------------------------------------------------------------------------------- /camera3/legacy/CamBufDef.h: -------------------------------------------------------------------------------- 1 | #ifndef CAM_BUF_DEF_H 2 | #define CAM_BUF_DEF_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include "RtkPrivBufDef.h" 8 | 9 | namespace android { 10 | 11 | typedef enum { 12 | BUF_STATE_UNDEF, 13 | BUF_STATE_OK, 14 | BUF_STATE_NA 15 | } BUF_STATE; 16 | 17 | /** 18 | * Memory info passed from Hal 19 | */ 20 | typedef struct gralloc_buf_info { 21 | uint32_t phyAddr; 22 | void *vAddr; 23 | void *cb; 24 | void *cr; 25 | int size; 26 | int format; 27 | int w; 28 | int h; 29 | GraphicBufferInfo::private_rtk_data rtkData; 30 | GraphicBufferInfo::private_rtk_data rtkDataReturn; 31 | buffer_handle_t *pHandle; 32 | BUF_STATE bufState; 33 | //bool hasRtkPrivData; 34 | } gralloc_buf_info_t; 35 | 36 | /** 37 | * Memory info of ION buffers allocated inside V4L2Device 38 | */ 39 | typedef struct allocator_info { 40 | int index; 41 | AllocatorDef *allocator; 42 | void *vAddr; 43 | void *phyAddr; 44 | int size; 45 | int width_aligned; // 16 byte aligned if necessary 46 | int height_aligned; // 16 byte aligned 47 | nsecs_t timeStamp; 48 | int width; 49 | int height; 50 | bool is16Aligned; 51 | uint32_t bytesused; 52 | int32_t mShareFd; // for DMA buffer mode 53 | 54 | // Following are the extension for VOWB 55 | uint32_t pLockAddr; // used in VOWB, only valid to a YUV buffer that is using VOWB deinterlace 56 | int64_t yAddr; 57 | int64_t uAddr; 58 | 59 | int8_t *pLockVAddr; 60 | int8_t *pRecvVAddr; 61 | } allocator_info_t; 62 | 63 | }; // namespace android 64 | 65 | 66 | #endif 67 | -------------------------------------------------------------------------------- /camera3/misc/AllocatorBufDef.h: -------------------------------------------------------------------------------- 1 | #ifndef __ALLOCATOR_BUF_DEF__ 2 | #define __ALLOCATOR_BUF_DEF__ 3 | 4 | #include 5 | #include 6 | 7 | using namespace android; 8 | 9 | namespace androidcamera3 { 10 | 11 | typedef struct _AllocatorBuf { 12 | int32_t mIndex; 13 | AllocatorDef* pAllocator; 14 | int32_t mWidth; 15 | int32_t mHeight; 16 | int32_t mSize; 17 | void* vAddr; 18 | uint32_t phyAddr; 19 | nsecs_t mPts; 20 | bool mEnqueued; 21 | uint32_t mBytesUsed; 22 | 23 | // basic constructor 24 | _AllocatorBuf() { 25 | pAllocator = NULL; 26 | mWidth = 0; 27 | mHeight = 0; 28 | mSize = 0; 29 | vAddr = NULL; 30 | phyAddr = 0; 31 | mIndex = 0; 32 | mPts = 0; 33 | mEnqueued = false; 34 | } 35 | 36 | } AllocatorBuf; 37 | 38 | }; 39 | 40 | #endif // __ALLOCATOR_BUF_DEF__ 41 | -------------------------------------------------------------------------------- /camera3/misc/ExifHelper.h: -------------------------------------------------------------------------------- 1 | #ifndef _CAMERA3_EXIF_HELPER_ 2 | #define _CAMERA3_EXIF_HELPER_ 3 | 4 | #include "libjpeg/jpeg-data.h" 5 | #include "Base.h" 6 | #include "Common.h" 7 | 8 | using namespace android; 9 | 10 | namespace android_camera_hal3 { 11 | 12 | ExifEntry* my_exif_create_value ( 13 | ExifData *ed, 14 | ExifTag tag, 15 | ExifIfd ifd); 16 | 17 | void convert_to_entry ( 18 | const char *set_value, 19 | double gdvalue, 20 | ExifEntry *e, 21 | ExifByteOrder o); 22 | 23 | bool add_exif(JPEG_RST_INFO *pInfo, 24 | uint8_t *metaBuf, 25 | /* , uint32_t bufSize */ 26 | MISC_FIELD_INFO *pMiscInfo); 27 | }; 28 | 29 | #endif // _CAMERA3_EXIF_HELPER_ 30 | -------------------------------------------------------------------------------- /camera3/misc/NetlinkHandler.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _NETLINKHANDLER_H 18 | #define _NETLINKHANDLER_H 19 | 20 | #include 21 | 22 | namespace android_camera_hal3 { 23 | 24 | class NetlinkHandler: public NetlinkListener { 25 | 26 | public: 27 | NetlinkHandler(int listenerSocket); 28 | virtual ~NetlinkHandler(); 29 | 30 | int start(void); 31 | int stop(void); 32 | 33 | protected: 34 | virtual void onEvent(NetlinkEvent *evt); 35 | }; 36 | 37 | }; 38 | #endif 39 | -------------------------------------------------------------------------------- /camera3/misc/NetlinkManager.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _NETLINKMANAGER_H 18 | #define _NETLINKMANAGER_H 19 | 20 | #include 21 | #include 22 | 23 | namespace android_camera_hal3 { 24 | 25 | class NetlinkHandler; 26 | 27 | class NetlinkManager { 28 | private: 29 | static NetlinkManager *sInstance; 30 | 31 | private: 32 | NetlinkHandler *mHandler; 33 | int mSock; 34 | 35 | public: 36 | virtual ~NetlinkManager(); 37 | 38 | int start(); 39 | int stop(); 40 | 41 | static NetlinkManager *Instance(); 42 | 43 | private: 44 | NetlinkManager(); 45 | }; 46 | 47 | }; 48 | #endif 49 | -------------------------------------------------------------------------------- /camera3/misc/OMXDecodeHelper.h: -------------------------------------------------------------------------------- 1 | #ifndef __CAMERA3_OMX_DECODE_HELPER__ 2 | #define __CAMERA3_OMX_DECODE_HELPER__ 3 | 4 | #include 5 | #include "OMXDecodeHelperCallback.h" 6 | 7 | using namespace android; 8 | 9 | namespace androidcamera3 { 10 | 11 | /** 12 | * A simple class to wrap decode mode 13 | * - via MediaCodec 14 | * - via OMX component directly 15 | */ 16 | class OMXDecodeHelper { 17 | 18 | public: 19 | virtual ~OMXDecodeHelper(); 20 | 21 | bool mDeviceRunning; 22 | 23 | virtual status_t init() = 0; 24 | virtual status_t start() = 0; 25 | virtual status_t stop() = 0; 26 | virtual status_t release() = 0; 27 | 28 | protected: 29 | OMXDecodeHelperCallback * mCallback; 30 | int32_t mFormat; 31 | int32_t mWidth; 32 | int32_t mHeight; 33 | 34 | }; // OMXDecodeHelper 35 | 36 | }; // namespace androidcamera3 37 | 38 | #endif // __CAMERA3_OMX_DECODE_HELPER__ 39 | -------------------------------------------------------------------------------- /camera3/misc/OMXDecodeHelperCallback.h: -------------------------------------------------------------------------------- 1 | #ifndef __CAMERA3_OMX_DECODE_HELPER_CALLBACK__ 2 | #define __CAMERA3_OMX_DECODE_HELPER_CALLBACK__ 3 | 4 | #include 5 | #include 6 | 7 | using namespace android; 8 | 9 | namespace androidcamera3 { 10 | 11 | class OMXDecodeHelperCallback { 12 | 13 | public: 14 | virtual ~OMXDecodeHelperCallback(); 15 | 16 | /** 17 | * Callback to fill this Buffer, blocking mode 18 | * - vAddr : virtual address 19 | * - phyAddr : physical address 20 | * - capacity : buffer size 21 | * - pts : frame pts, set by callback 22 | * - range : actual data range, set by Callback 23 | * 24 | * Return value : OK or ERROR 25 | */ 26 | virtual status_t onInputBufferAvailable( 27 | uint8_t *vAddr, 28 | int32_t phyAddr, 29 | size_t capacity, 30 | nsecs_t *pts, 31 | size_t *range) = 0; 32 | 33 | /** 34 | * Callback to consume output buffer, blocking mode 35 | * - vAddr : virtual address 36 | * - phyAddr : physical address 37 | * - range : data range 38 | * - pts : buffer pts 39 | */ 40 | virtual status_t onOutputBufferAvailable( 41 | uint8_t *vAddr, 42 | int32_t phyAddr, 43 | size_t range, 44 | nsecs_t pts) = 0; 45 | 46 | }; 47 | 48 | }; 49 | 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /camera3/misc/misc.h: -------------------------------------------------------------------------------- 1 | #ifndef _CAMERA_MISC_H 2 | #define _CAMERA_MISC_H 3 | 4 | #include "Common.h" 5 | 6 | #define ROUNDUP(x, base) ((x + base - 1) & ~(base - 1)) 7 | #define ROUNDUP16(x) ROUNDUP(x, 16) 8 | #define FCC2ASCII(fmt) ((char *)(&fmt))[0], ((char *)(&fmt))[1], ((char *)(&fmt))[2], ((char *)(&fmt))[3] 9 | 10 | namespace android { 11 | 12 | int getHDMIRxStatus(HDMIRX_STATUS *pStatus); 13 | int getHDMITxStatus(HDMITX_STATUS *pStatus); 14 | //int CameraFmtToV4L2(const char *fmt); 15 | const char *V4L2FmtToStr(int fmt); 16 | int V4L2FmtToBpp(int fmt); 17 | int V4L2ToHalPixel(int fmt); 18 | int isCompressedFmt(int fmt); 19 | 20 | }; // namespace android 21 | 22 | #endif //_CAMERA_MISC_H 23 | -------------------------------------------------------------------------------- /dptx/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := dptx.$(TARGET_BOARD_PLATFORM).so 6 | LOCAL_MODULE_TAGS:= optional eng 7 | LOCAL_MODULE_CLASS := VENDOR_SHARED_LIBRARIES 8 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) 9 | LOCAL_MODULE_SUFFIX := .so 10 | LOCAL_MODULE := dptx.$(TARGET_BOARD_PLATFORM) 11 | LOCAL_PROPRIETARY_MODULE := true 12 | 13 | LOCAL_MODULE_RELATIVE_PATH := hw 14 | 15 | include $(BUILD_PREBUILT) 16 | 17 | -------------------------------------------------------------------------------- /dptx/dptx.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/dptx/dptx.hercules.so -------------------------------------------------------------------------------- /gatekeeper/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := gatekeeper.$(TARGET_BOARD_PLATFORM).so 6 | LOCAL_MODULE_TAGS:= optional eng 7 | LOCAL_MODULE_CLASS := VENDOR_SHARED_LIBRARIES 8 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) 9 | LOCAL_MODULE_SUFFIX := .so 10 | LOCAL_MODULE := gatekeeper.$(TARGET_BOARD_PLATFORM) 11 | LOCAL_PROPRIETARY_MODULE := true 12 | LOCAL_MODULE_RELATIVE_PATH := hw 13 | 14 | include $(BUILD_PREBUILT) 15 | 16 | 17 | -------------------------------------------------------------------------------- /gatekeeper/gatekeeper.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/gatekeeper/gatekeeper.hercules.so -------------------------------------------------------------------------------- /gatekeeper/project.config: -------------------------------------------------------------------------------- 1 | [access] 2 | inheritFrom = mirror-project-permission-base 3 | -------------------------------------------------------------------------------- /hdcp/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | include $(CLEAR_VARS) 18 | 19 | LOCAL_SRC_FILES := hdcp.$(TARGET_BOARD_PLATFORM).so 20 | LOCAL_MODULE_TAGS:= optional eng 21 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 22 | LOCAL_MODULE_SUFFIX := .so 23 | LOCAL_MODULE := hdcp.$(TARGET_BOARD_PLATFORM) 24 | LOCAL_PROPRIETARY_MODULE := true 25 | 26 | LOCAL_MODULE_RELATIVE_PATH := hw 27 | LOCAL_MULTILIB := both 28 | 29 | 30 | include $(BUILD_PREBUILT) 31 | 32 | -------------------------------------------------------------------------------- /hdcp/hdcp.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/hdcp/hdcp.hercules.so -------------------------------------------------------------------------------- /hdmitx/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | 16 | LOCAL_PATH := $(call my-dir) 17 | 18 | include $(CLEAR_VARS) 19 | 20 | LOCAL_SRC_FILES := hdmi.$(TARGET_BOARD_PLATFORM).so 21 | LOCAL_MODULE_TAGS:= optional eng 22 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 23 | LOCAL_MODULE_SUFFIX := .so 24 | LOCAL_MODULE := hdmi.$(TARGET_BOARD_PLATFORM) 25 | 26 | LOCAL_MODULE_RELATIVE_PATH := hw 27 | LOCAL_PROPRIETARY_MODULE := true 28 | 29 | include $(BUILD_PREBUILT) 30 | 31 | -------------------------------------------------------------------------------- /hdmitx/hdmi.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/hdmitx/hdmi.hercules.so -------------------------------------------------------------------------------- /hdmitx/rtk_hal.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HAL_H__ 2 | #define __RTK_HAL_H__ 3 | 4 | #include "hdmi_common.h" 5 | 6 | #define HDMI_IOCTL_MAGIC 0xf1 7 | #define HDMI_CHECK_LINK_STATUS _IOR(HDMI_IOCTL_MAGIC,2, int) 8 | #define HDMI_CHECK_Rx_Sense _IOR(HDMI_IOCTL_MAGIC,11, int) 9 | #define HDMI_SEND_VOUT_EDID_DATA _IOWR(HDMI_IOCTL_MAGIC,15, struct VIDEO_RPC_VOUT_EDID_DATA) 10 | // new added API from kernel 4.9 11 | #define HDMI_GET_EDID_SUPPORT_LIST _IOWR(HDMI_IOCTL_MAGIC, 16, struct hdmi_support_list) 12 | #define HDMI_SET_OUTPUT_FORMAT _IOWR(HDMI_IOCTL_MAGIC, 17, struct hdmi_format_setting) 13 | #define HDMI_GET_OUTPUT_FORMAT _IOWR(HDMI_IOCTL_MAGIC, 18, struct hdmi_format_setting) 14 | #define HDMI_SET_VO_INTERFACE_TYPE _IOW(HDMI_IOCTL_MAGIC, 19, int) 15 | #define HDMI_GET_CONFIG_TV_SYSTEM _IOR(HDMI_IOCTL_MAGIC, 20, struct VIDEO_RPC_VOUT_CONFIG_TV_SYSTEM) 16 | 17 | /* HDMI ioctl */ 18 | enum { 19 | HDMI_GET_SINK_CAPABILITY, 20 | HDMI_GET_RAW_EDID, 21 | HDMI_GET_LINK_STATUS, 22 | HDMI_GET_VIDEO_CONFIG, 23 | HDMI_SEND_AVMUTE, 24 | HDMI_CONFIG_TV_SYSTEM, 25 | HDMI_CONFIG_AVI_INFO, 26 | HDMI_SET_FREQUNCY, 27 | HDMI_SEND_AUDIO_MUTE, 28 | HDMI_SEND_AUDIO_VSDB_DATA, 29 | HDMI_SEND_AUDIO_EDID2, 30 | HDMI_CHECK_TMDS_SRC, 31 | }; 32 | 33 | enum HDMI_AVMUTE{ 34 | HDMI_CLRAVM =0, 35 | HDMI_SETAVM 36 | }; 37 | 38 | //synchronize with linux hdmitx driver. 39 | //Reference of sink_capabilities_t.hdmi_mode 40 | enum HDMI_MODE { 41 | HDMI_MODE_UNDEF= 0, 42 | HDMI_MODE_HDMI= 1, 43 | HDMI_MODE_DVI= 2, 44 | HDMI_MODE_MHL= 3, 45 | HDMI_MODE_MAX 46 | }; 47 | 48 | 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /hwc/callbacks/Callbacks.h: -------------------------------------------------------------------------------- 1 | #ifndef __HWC_CALLBACKS_H__ 2 | #define __HWC_CALLBACKS_H__ 3 | 4 | #define HWC2_INCLUDE_STRINGIFICATION 5 | #define HWC2_USE_CPP11 6 | #include 7 | #undef HWC2_INCLUDE_STRINGIFICATION 8 | #undef HWC2_USE_CPP11 9 | 10 | class HWCCallbacks { 11 | public: 12 | void hotplug(hwc2_display_t display, HWC2::Connection state); 13 | void refresh(hwc2_display_t display); 14 | void vsync(hwc2_display_t display, int64_t timestamp); 15 | HWC2::Error registerCallbacks(HWC2::Callback, hwc2_callback_data_t callback_data, 16 | hwc2_function_pointer_t pointer); 17 | private: 18 | hwc2_callback_data_t mHotplugData = nullptr; 19 | hwc2_callback_data_t mRefreshData = nullptr; 20 | hwc2_callback_data_t mVsyncData = nullptr; 21 | 22 | HWC2_PFN_HOTPLUG mHotplug = nullptr; 23 | HWC2_PFN_REFRESH mRefresh = nullptr; 24 | HWC2_PFN_VSYNC mVsync = nullptr; 25 | }; 26 | 27 | #endif // __HWC_CALLBACKS_H__ 28 | -------------------------------------------------------------------------------- /hwc/display/DisplayExternal.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_DISPLAY_EXTERNAL_H_ 2 | #define __RTK_HWC_DISPLAY_EXTERNAL_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include "DisplayInfo.h" 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include "Display.h" 18 | 19 | class VOWindowBase; 20 | class Layer; 21 | 22 | class DisplayExternal : public Display, 23 | virtual public Vsync::Client, 24 | virtual public Power::Client, 25 | virtual public HWCProperty 26 | { 27 | public: 28 | DisplayExternal(Vsync * vsync, HWCCallbacks * callbacks); 29 | virtual ~DisplayExternal(); 30 | virtual void VsyncEvent(); 31 | private: 32 | VOWindowBase * mDisplayWindow; //framebuffer target 33 | pthread_mutex_t mLayerLock; 34 | android::Vector layerList; 35 | }; 36 | 37 | #endif /* End of __RTK_HWC_DISPLAY_EXTERNAL_H_ */ 38 | -------------------------------------------------------------------------------- /hwc/display/DisplayPrimary.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_DISPLAY_PRIMARY_H_ 2 | #define __RTK_HWC_DISPLAY_PRIMARY_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include "DisplayInfo.h" 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include "Display.h" 18 | 19 | class VOWindowBase; 20 | class Layer; 21 | 22 | class DisplayPrimary : public Display, 23 | virtual public Vsync::Client, 24 | virtual public Power::Client, 25 | virtual public HWCProperty 26 | { 27 | public: 28 | DisplayPrimary(Vsync * vsync, HWCCallbacks * callbacks); 29 | virtual ~DisplayPrimary(); 30 | virtual void VsyncEvent(); 31 | private: 32 | VOWindowBase * mDisplayWindow; //framebuffer target 33 | pthread_mutex_t mLayerLock; 34 | android::Vector layerList; 35 | 36 | }; 37 | 38 | #endif /* End of __RTK_HWC_DISPLAY_PRIMARY_H_ */ 39 | -------------------------------------------------------------------------------- /hwc/display/DisplayVirtual.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_DISPLAY_VIRTUAL_H_ 2 | #define __RTK_HWC_DISPLAY_VIRTUAL_H_ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include "DisplayInfo.h" 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include "Display.h" 18 | 19 | class VOWindowBase; 20 | class Layer; 21 | 22 | class DisplayVirtual : public Display, 23 | virtual public Vsync::Client, 24 | virtual public Power::Client, 25 | virtual public HWCProperty 26 | { 27 | public: 28 | 29 | DisplayVirtual(Vsync * vsync, HWCCallbacks * callbacks); 30 | virtual ~DisplayVirtual(); 31 | 32 | private: 33 | pthread_mutex_t mLayerLock; 34 | 35 | }; 36 | 37 | #endif /* End of __RTK_HWC_DISPLAY_VIRTUAL_H_ */ 38 | -------------------------------------------------------------------------------- /hwc/hwcomposer.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/hwc/hwcomposer.hercules.so -------------------------------------------------------------------------------- /hwc/libmemtrack/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | # HAL module implemenation stored in 18 | # hw/..so 19 | include $(CLEAR_VARS) 20 | 21 | LOCAL_MODULE_RELATIVE_PATH := hw 22 | LOCAL_PROPRIETARY_MODULE := true 23 | LOCAL_C_INCLUDES += system/core/include 24 | LOCAL_C_INCLUDES += hardware/libhardware/include 25 | LOCAL_SHARED_LIBRARIES := liblog 26 | LOCAL_SRC_FILES := memtrack_msm.c memtrack.c 27 | LOCAL_MODULE := memtrack.$(TARGET_BOARD_PLATFORM) 28 | 29 | ifneq ($(TARGET_2ND_ARCH),) 30 | LOCAL_POST_INSTALL_CMD := cp -f $(TARGET_OUT_VENDOR)/lib64/hw/$(LOCAL_MODULE).so device/realtek/$(TARGET_BOARD_PLATFORM)/common/prebuilt/proprietary/lib64/hw 31 | else 32 | LOCAL_POST_INSTALL_CMD := cp -f $(TARGET_OUT_VENDOR)/lib/hw/$(LOCAL_MODULE).so device/realtek/$(TARGET_BOARD_PLATFORM)/common/prebuilt/proprietary/lib/hw 33 | endif 34 | 35 | include $(BUILD_SHARED_LIBRARY) 36 | -------------------------------------------------------------------------------- /hwc/libmemtrack/memtrack_msm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _MEMTRACK_MSM_H_ 18 | #define _MEMTRACK_MSM_H_ 19 | 20 | int memtrack_get_memory(pid_t pid, enum memtrack_type type, 21 | struct memtrack_record *records, 22 | size_t *num_records); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /hwc/memtrack.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/hwc/memtrack.hercules.so -------------------------------------------------------------------------------- /hwc/power/Suspend.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_POWER_SUSPEND_H_ 2 | #define __RTK_HWC_POWER_SUSPEND_H_ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | class Suspend : public Power::Client, 11 | virtual public Vsync::Client, 12 | virtual public HWCProperty 13 | { 14 | public: 15 | Suspend(); 16 | virtual ~Suspend(); 17 | 18 | /* PowerListener API */ 19 | virtual void PowerEvent(int cmd, int ext); 20 | 21 | /* VsyncListener API */ 22 | virtual void VsyncEvent(void); 23 | 24 | virtual void dump(android::String8& buf, const char* prefix); 25 | private: 26 | void setupTimestamp(bool assert); 27 | void setupCoolboot(void); 28 | void setupWFI(void); 29 | int getWakLock(bool debug); 30 | bool WakeLock(void); 31 | void Process(void); 32 | void WatchdogTask(void); 33 | int getContext(void); 34 | void WakeupTask(void); 35 | 36 | enum { 37 | GOTO_SUSPEND = 0x1U << 0, 38 | BLANK = 0x1U << 1, 39 | }; 40 | int64_t mMaxWaitByWakeLockUs; 41 | int64_t mSuspendTimestampUs; 42 | uint32_t mFlags; 43 | int mContext; 44 | int mSuspendModeFd; 45 | int mPowerStateFd; 46 | int mWatchdogSecFd; 47 | int mWatchdogEnFd; 48 | int mContexFd; 49 | FILE * mWakeLockFptr; 50 | int mSuspendCtl; 51 | 52 | }; 53 | #endif /* End of __RTK_HWC_POWER_SUSPEND_H_ */ 54 | -------------------------------------------------------------------------------- /hwc/volayer/VOLayerBackround.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_LAYER_BACKROUND_H_ 2 | #define __RTK_HWC_LAYER_BACKROUND_H_ 3 | #include "VOLayerBase.h" 4 | class VOLayerBackround : public VOLayerBase { 5 | public: 6 | VOLayerBackround(); 7 | virtual ~VOLayerBackround(); 8 | 9 | virtual void prepare(); 10 | virtual void set(); 11 | virtual void dump(android::String8& buf, const char* prefix); 12 | }; 13 | 14 | #endif /* End of __RTK_HWC_LAYER_BACKROUND_H_ */ 15 | -------------------------------------------------------------------------------- /hwc/volayer/VOLayerCursor.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_LAYER_CURSOR_H_ 2 | #define __RTK_HWC_LAYER_CURSOR_H_ 3 | #include "VOLayerBase.h" 4 | #include 5 | #include 6 | #include 7 | 8 | class VOLayerCursor : public VOLayerBase, 9 | virtual public VOWindowCursor, 10 | virtual HWCProperty 11 | { 12 | public: 13 | VOLayerCursor(); 14 | virtual ~VOLayerCursor(); 15 | virtual bool supportHwcLayer(hwc_layer_1_t * hwc_layer, int layer); 16 | virtual void prepare(void); 17 | virtual void set(void); 18 | virtual void dump(android::String8& buf, const char* prefix); 19 | 20 | virtual void setDisplayInfo(DisplayInfo * info) {VOWindowCursor::setDisplayInfo(info);}; 21 | 22 | virtual void DisplayInfoEvent(int cmd, int ext); 23 | private: 24 | void openLayer(void); 25 | void closeLayer(void); 26 | CursorLayer * mCursor; 27 | int mState; 28 | }; 29 | 30 | #endif /* End of __RTK_HWC_LAYER_CURSOR_H_ */ 31 | -------------------------------------------------------------------------------- /hwc/volayer/VOLayerForce.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_LAYER_FORCE_H_ 2 | #define __RTK_HWC_LAYER_FORCE_H_ 3 | #include "VOLayerBase.h" 4 | #include 5 | #include 6 | #include 7 | 8 | 9 | class VOLayerForce : public VOLayerBase, 10 | virtual public VOWindowVoutUtil, 11 | virtual public ResourceArbiter::Client, 12 | virtual public HWCProperty 13 | { 14 | public: 15 | VOLayerForce(); 16 | virtual ~VOLayerForce(); 17 | virtual bool supportHwcLayer(hwc_layer_1_t * hwc_layer, int layer); 18 | virtual void prepare(void); 19 | virtual void set(void); 20 | 21 | virtual void VsyncEvent(void); 22 | 23 | virtual void setDisplayInfo(DisplayInfo * info) {VOWindowVoutUtil::setDisplayInfo(info);}; 24 | virtual void setResourceArbiter(ResourceArbiter * service) { 25 | ResourceArbiter::Client::setResourceArbiter(service); 26 | }; 27 | virtual int ResourceEvent(int notify); 28 | virtual void dump(android::String8& buf, const char* prefix); 29 | private: 30 | bool needToReguest(void); 31 | bool needToUpdateState(void); 32 | void updateState(void); 33 | 34 | bool mResourceGet; 35 | int mCheckCount; 36 | int mCheckRecount; 37 | }; 38 | 39 | #endif /* End of __RTK_HWC_LAYER_FORCE_H_ */ 40 | -------------------------------------------------------------------------------- /hwc/volayer/VOLayerFramebuffer.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_LAYER_FRAMEBUFFER_H_ 2 | #define __RTK_HWC_LAYER_FRAMEBUFFER_H_ 3 | #include "VOLayerBase.h" 4 | #include 5 | 6 | class VOLayerFramebuffer : public VOLayerBase, virtual public VOWindowVoutUtil { 7 | public: 8 | VOLayerFramebuffer(); 9 | virtual ~VOLayerFramebuffer(); 10 | 11 | virtual void prepare(); 12 | virtual void set(); 13 | virtual void dump(android::String8& buf, const char* prefix); 14 | virtual void setDisplayInfo(DisplayInfo * info) {VOWindowVoutUtil::setDisplayInfo(info);}; 15 | //virtual void waitAcquireFence(void) {}; 16 | private: 17 | static const int MaxAcquireFenceFdCount = 3; 18 | hw_module_t const* mGrallocModule; 19 | framebuffer_device_t* mFbDev; 20 | int mAcquireFenceFd[MaxAcquireFenceFdCount]; 21 | int mAcquireFenceFdStep; 22 | #ifdef SKIP_FIRST_FRAME_FOR_AFBC_WORKAROUND 23 | int mSkipCount; 24 | #endif /* End of SKIP_FIRST_FRAME_FOR_AFBC_WORKAROUND */ 25 | }; 26 | 27 | #endif /* End of __RTK_HWC_LAYER_FRAMEBUFFER_H_ */ 28 | -------------------------------------------------------------------------------- /hwc/volayer/VOLayerOsd2.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_LAYER_OSD2_H_ 2 | #define __RTK_HWC_LAYER_OSD2_H_ 3 | #include "VOLayerBase.h" 4 | #include 5 | #include "hwlayer/osd2/Osd2Layer.h" 6 | #include 7 | #include 8 | 9 | class VOLayerOSD2 : public VOLayerBase, 10 | virtual public VOWindowVoutUtil, 11 | virtual public ResourceArbiter::Client, 12 | virtual public HWCProperty 13 | { 14 | public: 15 | VOLayerOSD2(); 16 | virtual ~VOLayerOSD2(); 17 | //virtual bool supportHwcLayer(hwc_layer_1_t * hwc_layer); 18 | virtual void prepare(void); 19 | virtual void set(void); 20 | virtual void dump(android::String8& buf, const char* prefix); 21 | virtual void setDisplayInfo(DisplayInfo * info) {VOWindowVoutUtil::setDisplayInfo(info);}; 22 | virtual void setResourceArbiter(ResourceArbiter * service) { 23 | ResourceArbiter::Client::setResourceArbiter(service); 24 | }; 25 | virtual int ResourceEvent(int notify); 26 | virtual void VsyncEvent(void); 27 | private: 28 | void openLayer(void); 29 | void closeLayer(void); 30 | Osd2Layer * mHWLayer; 31 | bool mState; 32 | pthread_mutex_t mLock; 33 | unsigned int mTransform; 34 | }; 35 | 36 | #endif /* End of __RTK_HWC_LAYER_OSD2_H_ */ 37 | -------------------------------------------------------------------------------- /hwc/volayer/VOLayerScale.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_LAYER_SCALE_H_ 2 | #define __RTK_HWC_LAYER_SCALE_H_ 3 | #include "VOLayerBase.h" 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | class VOLayerScale : public VOLayerBase, 10 | virtual public VOWindowVoutUtil, 11 | virtual public ResourceArbiter::Client, 12 | virtual public HWCProperty 13 | { 14 | public: 15 | enum TargetPlane { 16 | SCALE_NONE, 17 | SCALE_V1, 18 | SCALE_V2, 19 | }; 20 | VOLayerScale(enum TargetPlane plane = SCALE_V1); 21 | virtual ~VOLayerScale(); 22 | virtual bool supportHwcLayer(hwc_layer_1_t * hwc_layer, int layer); 23 | virtual void prepare(); 24 | virtual void set(); 25 | virtual void dump(android::String8& buf, const char* prefix); 26 | virtual void setDisplayInfo(DisplayInfo * info) {VOWindowVoutUtil::setDisplayInfo(info);}; 27 | virtual void setTargetPlane(enum TargetPlane plane); 28 | virtual void setVOMixerServer(VOMixerServer * service); 29 | virtual void setResourceArbiter(ResourceArbiter * service); 30 | 31 | virtual int ResourceEvent(int /*notify*/) {return 0;}; 32 | virtual void VsyncEvent(void); 33 | private: 34 | class VOLayerScaleSub; 35 | class VOLayerScaleSub * mSUB1Order; 36 | class VOLayerScaleSub * mSUB2Order; 37 | int getTargetPlaneByProperty(); 38 | bool mState; 39 | pthread_mutex_t mLock; 40 | int mTargetPlane; 41 | }; 42 | 43 | #endif /* End of __RTK_HWC_LAYER_SCALE_H_ */ 44 | -------------------------------------------------------------------------------- /hwc/volayer/VOLayerSideband.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_LAYER_SIDEBAND_H_ 2 | #define __RTK_HWC_LAYER_SIDEBAND_H_ 3 | #include "VOLayerBase.h" 4 | #include 5 | #include 6 | #include 7 | 8 | class VOLayerSideband : public VOLayerBase, 9 | virtual public VOWindowSideband, 10 | virtual ResourceArbiter::Client, 11 | virtual HWCProperty 12 | { 13 | public: 14 | enum TargetPlane { 15 | FLIP_V1, 16 | FLIP_V2, 17 | FLIP_V3, 18 | }; 19 | 20 | VOLayerSideband(enum TargetPlane plane = FLIP_V1); 21 | virtual ~VOLayerSideband(); 22 | virtual bool supportHwcLayer(hwc_layer_1_t * hwc_layer, int layer); 23 | virtual void prepare(); 24 | virtual void set(); 25 | virtual void dump(android::String8& buf, const char* prefix); 26 | virtual void setDisplayInfo(DisplayInfo * info) {VOWindowSideband::setDisplayInfo(info);}; 27 | virtual void setResourceArbiter(ResourceArbiter * service) { 28 | ResourceArbiter::Client::setResourceArbiter(service); 29 | }; 30 | 31 | virtual int ResourceEvent(int /*notify*/) {return 0;}; 32 | 33 | virtual void VsyncEvent(void); 34 | private: 35 | int mTargetPlane; 36 | const native_handle_t * mSidebandStream; 37 | int64_t mKey; //To decide if layer was changed. if layer was changed, we need to reset window. 38 | }; 39 | #endif /* End of __RTK_HWC_LAYER_SIDEBAND_H_ */ 40 | -------------------------------------------------------------------------------- /hwc/volayer/hwlayer/osd2/Osd2Layer.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_HWLAYER_OSD2_LAYER_H_ 2 | #define __RTK_HWC_HWLAYER_OSD2_LAYER_H_ 3 | #include 4 | #include "Osd2Buffer.h" 5 | 6 | class Osd2Layer : 7 | public LayerBase, 8 | virtual GraphicBufferInfo::Client 9 | { 10 | public: 11 | using LayerBase::connect; 12 | Osd2Layer(); 13 | virtual ~Osd2Layer(); 14 | 15 | virtual int connect(enum VO_VIDEO_PLANE plane, int BufferCnt); 16 | virtual int disconnect(); 17 | virtual BufferBase * createBuffer(); 18 | virtual void removeBuffer(BufferBase * buffer); 19 | virtual enum VO_VIDEO_PLANE getPlane() {return mPlane;}; 20 | virtual int validate(buffer_handle_t /*handle*/) {/* do nothing*/ return true;}; 21 | virtual int getMaxBufferCount() {return mBufferCount;}; 22 | virtual void dump(android::String8& buf, const char* prefix) {return LayerBase::dump(buf, prefix);}; 23 | 24 | private: 25 | GraphicBufferInfo * mGBInfo; 26 | int mBufferCount; 27 | enum VO_VIDEO_PLANE mPlane; 28 | }; 29 | #endif /* End of __RTK_HWC_HWLAYER_OSD2_LAYER_H_ */ 30 | -------------------------------------------------------------------------------- /hwc/volayer/hwlayer/utils/hwlayer_utils.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_HWLAYER_UTILS_H_ 2 | #define __RTK_HWC_HWLAYER_UTILS_H_ 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include "../realtek_omx/osal_rtk/OSAL_RTK.h" 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | #define GRALLOC_ALIGN( value, base ) (((value) + ((base) - 1)) & ~((base) - 1)) 22 | 23 | #endif /* End of __RTK_HWC_HWLAYER_UTILS_H_ */ 24 | -------------------------------------------------------------------------------- /hwc/volayer/hwlayer/video/VideoLayer.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_HWLAYER_VIDEO_LAYER_H_ 2 | #define __RTK_HWC_HWLAYER_VIDEO_LAYER_H_ 3 | #include 4 | #include 5 | #include "VideoBuffer.h" 6 | #include "CombinedManager.h" 7 | #include 8 | 9 | class VideoLayer : 10 | public LayerBase, 11 | virtual GraphicBufferInfo::Client 12 | { 13 | public: 14 | using LayerBase::connect; 15 | VideoLayer(); 16 | virtual ~VideoLayer(); 17 | 18 | virtual int connect(enum VO_VIDEO_PLANE plane, int BufferCnt); 19 | virtual int disconnect(); 20 | virtual BufferBase * createBuffer(); 21 | virtual void removeBuffer(BufferBase * buffer); 22 | virtual enum VO_VIDEO_PLANE getPlane() {return mPlane;}; 23 | virtual int validate(buffer_handle_t handle); 24 | virtual int getMaxBufferCount() {return mBufferCount;}; 25 | virtual void dump(android::String8& buf, const char* prefix) {return LayerBase::dump(buf, prefix);}; 26 | virtual int getBufferWidth() {return mBufferWidth;}; 27 | virtual int getBufferHeight() {return mBufferHeight;}; 28 | 29 | private: 30 | PLockBase * mPLock; 31 | DebugMessage * mDebugMessage; 32 | CombinedManager * mCombinedManager; 33 | GraphicBufferInfo * mGBInfo; 34 | int mBufferCount; 35 | enum VO_VIDEO_PLANE mPlane; 36 | int mBufferWidth; 37 | int mBufferHeight; 38 | }; 39 | #endif /* End of __RTK_HWC_HWLAYER_VIDEO_LAYER_H_ */ 40 | -------------------------------------------------------------------------------- /hwc/vowindow/VOWindowCursor.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_VO_WINDOW_API_CURSOR_H_ 2 | #define __RTK_HWC_VO_WINDOW_API_CURSOR_H_ 3 | #include "VOWindowBase.h" 4 | #include 5 | class VOWindowCursor : public VOWindowBase 6 | { 7 | public: 8 | VOWindowCursor(); 9 | virtual ~VOWindowCursor(); 10 | virtual int updateWindow(); 11 | 12 | virtual void setCursor(CursorLayer * layer = NULL) { 13 | mLayer = layer; 14 | if (mLayer != NULL) 15 | mLayer->setDisplayInfo(this); 16 | }; 17 | private: 18 | pthread_mutex_t mLock; 19 | CursorLayer * mLayer; 20 | }; 21 | 22 | #endif /* End of __RTK_HWC_VO_WINDOW_API_CURSOR_H_ */ 23 | -------------------------------------------------------------------------------- /hwc/vsync/VsyncListener.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_HWC_VSYNC_LISTENER_H_ 2 | #define __RTK_HWC_VSYNC_LISTENER_H_ 3 | #include 4 | class VsyncListener { 5 | public: 6 | VsyncListener() {}; 7 | virtual ~VsyncListener() {}; 8 | 9 | virtual void VsyncEvent(void) = 0; 10 | }; 11 | #endif /* End of __RTK_HWC_VSYNC_LISTENER_H_ */ 12 | -------------------------------------------------------------------------------- /libstagefrighthw/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | ################################################################################ 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_SRC_FILES := libstagefrighthw.so 7 | LOCAL_MODULE_TAGS:= optional eng 8 | LOCAL_MODULE_CLASS := VENDOR_SHARED_LIBRARIES 9 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) 10 | LOCAL_MODULE_SUFFIX := .so 11 | LOCAL_MODULE := libstagefrighthw 12 | LOCAL_PROPRIETARY_MODULE := true 13 | 14 | include $(BUILD_PREBUILT) 15 | -------------------------------------------------------------------------------- /libstagefrighthw/libstagefrighthw.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/libstagefrighthw/libstagefrighthw.so -------------------------------------------------------------------------------- /power/Android.mk: -------------------------------------------------------------------------------- 1 | 2 | LOCAL_PATH:= $(call my-dir) 3 | 4 | include $(CLEAR_VARS) 5 | 6 | LOCAL_SRC_FILES := android.hardware.power@1.0-service.rtk 7 | LOCAL_MODULE_CLASS := EXECUTABLES 8 | LOCAL_MODULE_TAGS := optional eng 9 | LOCAL_MODULE := android.hardware.power@1.0-service.rtk 10 | LOCAL_PROPRIETARY_MODULE := true 11 | LOCAL_MODULE_RELATIVE_PATH := hw 12 | LOCAL_INIT_RC := android.hardware.power@1.0-service.rtk.rc 13 | 14 | include $(BUILD_PREBUILT) 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /power/Power.h: -------------------------------------------------------------------------------- 1 | #ifndef ANDROID_HARDWARE_POWER_V1_0_POWER_H 2 | #define ANDROID_HARDWARE_POWER_V1_0_POWER_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | namespace android { 10 | namespace hardware { 11 | namespace power { 12 | namespace V1_0 { 13 | namespace implementation { 14 | 15 | using ::android::hardware::power::V1_0::Feature; 16 | using ::android::hardware::power::V1_0::PowerHint; 17 | using ::android::hardware::power::V1_0::IPower; 18 | using ::android::hardware::Return; 19 | using ::android::hardware::Void; 20 | 21 | struct Power : public IPower { 22 | Power(); 23 | Return setInteractive (bool interactive) override; 24 | Return powerHint (PowerHint hint, int32_t data) override; 25 | Return setFeature (Feature feature, bool activate) override; 26 | Return getPlatformLowPowerStats (getPlatformLowPowerStats_cb _hidl_cb) override; 27 | }; 28 | 29 | } // namespace implementation 30 | } // namespace V1_1 31 | } // namespace power 32 | } // namespace hardware 33 | } // namespace android 34 | #endif /* End of ANDROID_HARDWARE_POWER_V1_0_POWER_H */ 35 | -------------------------------------------------------------------------------- /power/android.hardware.power@1.0-service.rtk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/power/android.hardware.power@1.0-service.rtk -------------------------------------------------------------------------------- /power/android.hardware.power@1.0-service.rtk.rc: -------------------------------------------------------------------------------- 1 | service power-hal-1-0 /vendor/bin/hw/android.hardware.power@1.0-service.rtk 2 | class hal 3 | user system 4 | group system 5 | -------------------------------------------------------------------------------- /power/core/power_base.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_POWER_HAL_POWER_BASE_H__ 2 | #define __RTK_POWER_HAL_POWER_BASE_H__ 3 | 4 | #include "power.h" 5 | 6 | class PowerBase { 7 | public: 8 | PowerBase(enum POWER_DEVICE_ID id); 9 | virtual ~PowerBase(); 10 | virtual enum POWER_DEVICE_ID getDeviceId(void) {return mDeviceId;}; 11 | virtual int setPerformance(bool enable); 12 | virtual int setPerformanceTimeout(int64_t timeout_ms); 13 | virtual int operate(enum POWER_DEVICE_CMD /*cmd*/, int /* ppData */) {return -1;}; 14 | 15 | private: 16 | virtual int Performance_cb(bool enable) = 0; 17 | 18 | int updateState(); 19 | static void * Loop (void * data); 20 | enum POWER_DEVICE_ID mDeviceId; 21 | bool mPerformanceForce; 22 | bool mPerformanceStore; 23 | int64_t mPerformanceTimeout; 24 | bool mEOS; 25 | pthread_t mThread; 26 | pthread_mutex_t mLock; 27 | pthread_cond_t mCond; 28 | }; 29 | 30 | #endif /* End of __RTK_POWER_HAL_POWER_BASE_H__ */ 31 | -------------------------------------------------------------------------------- /power/core/power_core.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_POWER_HAL_POWER_CORE_H__ 2 | #define __RTK_POWER_HAL_POWER_CORE_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class PowerCore { 9 | public: 10 | PowerCore(); 11 | virtual ~PowerCore(); 12 | virtual void setInteractive (bool interactive); 13 | virtual void powerHint (power_hint_t hint, int32_t data); 14 | virtual void setFeature (feature_t feature, bool activate); 15 | private: 16 | void power_performance (bool enable); 17 | void power_performance_timeout_ms (int64_t timeout_ms); 18 | void power_device_operate (int data); 19 | bool mPerformance; 20 | pthread_mutex_t mLock; 21 | android::Vector mModeleList; 22 | }; 23 | 24 | #endif /* End of __RTK_POWER_HAL_POWER_CORE_H__ */ 25 | -------------------------------------------------------------------------------- /power/core/power_cpu.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_POWER_HAL_POWER_CPU_H__ 2 | #define __RTK_POWER_HAL_POWER_CPU_H__ 3 | 4 | #include "power_base.h" 5 | 6 | class PowerCPU : public PowerBase { 7 | public: 8 | PowerCPU(); 9 | virtual ~PowerCPU(); 10 | private: 11 | virtual int Performance_cb(bool enable); 12 | int Performance_freq(bool enable); 13 | int Performance_spif(bool enable); 14 | enum { 15 | VERSION_FREQ, 16 | VERSION_SPIF, 17 | } mVersion; 18 | }; 19 | 20 | #endif /* End of __RTK_POWER_HAL_POWER_CPU_H__ */ 21 | -------------------------------------------------------------------------------- /power/core/power_gpu.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_POWER_HAL_POWER_GPU_H__ 2 | #define __RTK_POWER_HAL_POWER_GPU_H__ 3 | 4 | #include "power_base.h" 5 | 6 | class PowerGPU : public PowerBase { 7 | public: 8 | PowerGPU(); 9 | virtual ~PowerGPU(); 10 | virtual int operate(enum POWER_DEVICE_CMD cmd, int data); 11 | private: 12 | virtual int Performance_cb(bool enable); 13 | }; 14 | 15 | #endif /* End of __RTK_POWER_HAL_POWER_GPU_H__ */ 16 | -------------------------------------------------------------------------------- /power/core/power_utils.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_POWER_HAL_UTILS_H__ 2 | #define __RTK_POWER_HAL_UTILS_H__ 3 | 4 | ssize_t sysfs_write(const char *path, char *s); 5 | ssize_t sysfs_read(const char *path, char *s, int num_bytes); 6 | 7 | int RegWrite(unsigned long phyOffset, unsigned int mask, unsigned data); 8 | 9 | #endif /* End of __RTK_POWER_HAL_UTILS_H__ */ 10 | -------------------------------------------------------------------------------- /realtek_omx/component/audio/dec/AAC_Utility.h: -------------------------------------------------------------------------------- 1 | #ifndef OMX_AAC_UTILITY_H__ 2 | #define OMX_AAC_UTILITY_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | int detect_aac_sbr_present_flag(unsigned char *buffer, 8 | unsigned short bufferLength, 9 | unsigned char *channelsConfiguration, 10 | unsigned int *samplingFrequencyIndex, 11 | int *privateData1, 12 | int *privateData2) ; 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /realtek_omx/component/audio/dec/fw_misc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/component/audio/dec/fw_misc.h -------------------------------------------------------------------------------- /realtek_omx/component/audio/dec/fw_misc_ms12.h: -------------------------------------------------------------------------------- 1 | #ifndef FW_MISC_MS12_H 2 | #define FW_MISC_MS12_H 3 | 4 | //#include 5 | //#include "AudioRPC_System.h" 6 | #include "hresult.h" 7 | //#include "AudioInbandAPI.h" 8 | //#include "audio_common.h" 9 | 10 | 11 | //////////////////// 12 | // Data Structure // 13 | //////////////////// 14 | 15 | //////////////////////// 16 | // Function Prototype // 17 | //////////////////////// 18 | HRESULT* OMX_FW_RPC_MS12_Init_Cfg(AUDIO_RPC_MS_INIT_CFG *arg); 19 | HRESULT* OMX_FW_RPC_MS12_Runtime_Cfg(AUDIO_RPC_MS_RUNTIME_CFG *arg); 20 | HRESULT* OMX_FW_RPC_MS12_Update_Params(AUDIO_RPC_MS_PARAM_UPDATE *arg); 21 | HRESULT* OMX_FW_RPC_MS12_Clear_Update_Params(AUDIO_RPC_MS_CLEAR_PARAM_UPDATE *arg); 22 | HRESULT* OMX_FW_RPC_MS12_Runtime_Update_Params(AUDIO_RPC_MS_PARAM_UPDATE *arg); 23 | 24 | #endif -------------------------------------------------------------------------------- /realtek_omx/component/audio/dec/sideband_audio.h: -------------------------------------------------------------------------------- 1 | #ifndef SIDEBAND_OMX_AUDIO_H 2 | #define SIDEBAND_OMX_AUDIO_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | int getSharedFd(int resource, int* shareFd); 8 | int destroySharedFd(int resource); 9 | #ifdef __cplusplus 10 | } 11 | #endif 12 | #endif /* End of SIDEBAND_OMX_AUDIO_H */ 13 | -------------------------------------------------------------------------------- /realtek_omx/component/audio/dec/version.h: -------------------------------------------------------------------------------- 1 | #ifndef RTK_DECODER_VERSION_H 2 | #define RTK_DECODER_VERSION_H 3 | 4 | #define COMPONENT_VERSION_MAJOR 1 5 | #define COMPONENT_VERSION_MINOR 1 6 | #define COMPONENT_VERSION_REVISION 2 7 | #define COMPONENT_VERSION_STEP 0 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/codec_jdec.h: -------------------------------------------------------------------------------- 1 | #ifndef CODEC_JPEG_H 2 | #define CODEC_JPEG_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" 6 | { 7 | #endif 8 | 9 | #include "codec.h" 10 | 11 | // create codec instance 12 | CODEC_PROTOTYPE *RTKHwDecOmx_decoder_create_jpeg(OMX_BOOL motion_jpeg, PRIVATE_STRUCT pRtkInfo); 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif 17 | #endif // CODEC_JPEG_H 18 | 19 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/codec_ve1.h: -------------------------------------------------------------------------------- 1 | #ifndef CODEC_VE1_H 2 | #define CODEC_VE1_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" 6 | { 7 | #endif 8 | 9 | #include "codec.h" 10 | #include "ion/ion.h" 11 | #ifdef ENABLE_TEE_DRM_FLOW 12 | #include "tee_client_api.h" 13 | #include "tee_api.h" 14 | #endif 15 | 16 | // create codec instance 17 | CODEC_PROTOTYPE *RTKHwDecOmx_decoder_create_ve1(OMX_VIDEO_CODINGTYPE eCompressionFormat, PRIVATE_STRUCT pRtkInfo); 18 | 19 | 20 | typedef enum AVC_FORMAT /* avcExtension at vpuapi.h */ 21 | { 22 | AVCFORMAT_AVC = 0, 23 | AVCFORMAT_MVC = 1 24 | } 25 | AVC_FORMAT; 26 | 27 | typedef enum MPEG4_FORMAT /* mp4Class at vpuapi.h */ 28 | { 29 | MPEG4FORMAT_MPEG4 = 0, 30 | MPEG4FORMAT_DIVX5 = 1, 31 | MPEG4FORMAT_XVID = 2, 32 | MPEG4FORMAT_DIVX4 = 5, 33 | MPEG4FORMAT_SORENSON = 256 34 | } MPEG4_FORMAT; 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | #endif // CODEC_VE1_H 40 | 41 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/codec_ve2.h: -------------------------------------------------------------------------------- 1 | #ifndef CODEC_VE2_H 2 | #define CODEC_VE2_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" 6 | { 7 | #endif 8 | 9 | #include "codec.h" 10 | #include "ion/ion.h" 11 | #ifdef ENABLE_TEE_DRM_FLOW 12 | #include "tee_client_api.h" 13 | #include "tee_api.h" 14 | #endif 15 | 16 | // create codec instance 17 | CODEC_PROTOTYPE *RTKHwDecOmx_decoder_create_ve2(OMX_VIDEO_CODINGTYPE eCompressionFormat, PRIVATE_STRUCT pRtkInfo); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | #endif // CODEC_VE2_H 23 | 24 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/codec_vpxparser.h: -------------------------------------------------------------------------------- 1 | #ifndef CODEC_VPXPARSER_H 2 | #define CODEC_VPXPARSER_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" 6 | { 7 | #endif 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | struct Vp9FrameTag 15 | { 16 | OMX_U32 key_frame; 17 | OMX_U32 show_frame; 18 | }; 19 | 20 | void ParseSuperframeIndex(const OMX_U8* data, OMX_U32 data_sz, 21 | const OMX_U8* buf, OMX_U32 buf_sz, 22 | OMX_U32 sizes[8], OMX_S32* count); 23 | 24 | void ParseSuperframeIndexProtect(void *sess, OMX_U32 data, OMX_U32 data_sz, 25 | OMX_U32 buf_sz, 26 | OMX_U32 sizes[8], OMX_S32* count); 27 | 28 | OMX_U32 Vp9DecodeFrameTag(const OMX_U8 *strm, OMX_U32 data_len, OMX_U32 buf_len, 29 | struct Vp9FrameTag *frame_tag); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | #endif // CODEC_VPXPARSER_H 35 | 36 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/dolby/codec_metadata_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef CODEC_METADATA_PARSER_H 2 | #define CODEC_METADATA_PARSER_H 3 | #include 4 | #include 5 | #include "OMX_Core.h" 6 | #include "OMX_Types.h" 7 | #include "rpu_ext_config.h" 8 | #include "RtkControlPath.h" 9 | 10 | void release_rpu_parser_engine(); 11 | OMX_ERRORTYPE init_rpu_parser_engine(); 12 | OMX_ERRORTYPE process_metadata(RpuItem data); 13 | OMX_ERRORTYPE get_rpu_data(DolbyMetadataItem *data); 14 | void invalid_rpu_data_queue(); 15 | #endif 16 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/dolby/include/rpu_std.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This product contains one or more programs protected under international 3 | * and U.S. copyright laws as unpublished works. They are confidential and 4 | * proprietary to Dolby Laboratories. Their reproduction or disclosure, in 5 | * whole or in part, or the production of derivative works therefrom without 6 | * the express permission of Dolby Laboratories is prohibited. 7 | * Copyright 2011 - 2017 by Dolby Laboratories. 8 | * All rights reserved. 9 | * 10 | * @brief RPU standard header file. 11 | * @file rpu_std.h 12 | * 13 | * $Id$ 14 | */ 15 | 16 | #ifndef _RPU_STD_H_ 17 | #define _RPU_STD_H_ 18 | 19 | #include 20 | #include 21 | 22 | #endif /* _RPU_STD_H_ */ 23 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/inc/rtk_secure_handle.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_SECURE_HANDLE_DEFINE_H_ 2 | #define __RTK_SECURE_HANDLE_DEFINE_H_ 3 | 4 | #include 5 | 6 | typedef struct secure_handle 7 | { 8 | struct native_handle nativeHandle; 9 | int sFd; 10 | unsigned int uAllocSize; 11 | unsigned int uPhyAddr; 12 | unsigned int uMagic; 13 | } secure_handle_t ; 14 | 15 | #endif /* End of __RTK_SECURE_HANDLE_DEFINE_H_ */ 16 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/utils/BWControl.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_BANDWIDTH_CONTROL_H_ 2 | #define __RTK_BANDWIDTH_CONTROL_H_ 3 | 4 | #include 5 | 6 | typedef enum BW_DEVICE{ 7 | BW_GPU, 8 | } BW_DEVICE; 9 | 10 | #ifdef __cplusplus 11 | class BWControl { 12 | public: 13 | BWControl() {}; 14 | virtual ~BWControl(void) {}; 15 | virtual void LowPriority(void) {}; 16 | virtual void HighPriority(void) {}; 17 | }; 18 | #else 19 | typedef struct BWControl BWControl; 20 | #endif 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | BWControl * BWControl_create (BW_DEVICE device); 27 | void BWControl_destroy (BWControl * instance); 28 | 29 | void BWControl_LowPriority (BWControl * instance); 30 | void BWControl_HighPriority (BWControl * instance); 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | #endif /* End of __RTK_BANDWIDTH_CONTROL_H_ */ 36 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/utils/Feature.h: -------------------------------------------------------------------------------- 1 | #ifndef RTK_FEATURE_H_ 2 | #define RTK_FEATURE_H_ 3 | 4 | #include "list.h" 5 | 6 | typedef enum Features { 7 | FEATURE_VIDEO_FULLRANGE, 8 | FEATURE_HEVC_PERFORMANCE, 9 | FEATURE_IS_SURFACE_VIEW, 10 | FEATURE_OUTPUT_BE_DECODED, 11 | FEATURE_DELAY_DISPLAY_ORDER, 12 | FEATURE_REASONABLE_BUFFER_COUNT, 13 | FEATURE_COMBINED_BUFFER, 14 | } Features; 15 | 16 | typedef enum FeatureOpt { 17 | FEATURE_FALSE, 18 | FEATURE_TRUE, 19 | FEATURE_ENABLE = FEATURE_TRUE, 20 | FEATURE_DISABLE = FEATURE_FALSE, 21 | } FeatureOpt; 22 | 23 | typedef struct FeatureSet { 24 | pthread_mutex_t mLock; 25 | struct list mList; 26 | } FeatureSet; 27 | 28 | typedef struct FeatureSlot { 29 | Features feature; 30 | FeatureOpt operate; 31 | } FeatureSlot; 32 | 33 | FeatureSet * createFeatureSetByComm (char * comm); 34 | void deleteFeatureSet (FeatureSet * set); 35 | 36 | int FeatureSet_set(FeatureSet * set, Features item, FeatureOpt opt); 37 | int FeatureSet_get(FeatureSet * set, Features item, FeatureOpt default_opt); 38 | 39 | #endif /* end of RTK_FEATURE_H_ */ 40 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/utils/PWControl.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_POWER_CONTROL_H_ 2 | #define __RTK_POWER_CONTROL_H_ 3 | 4 | typedef enum PW_DEVICE{ 5 | PW_CPU, 6 | PW_GPU, 7 | } PW_DEVICE; 8 | 9 | #ifdef __cplusplus 10 | class PWControl { 11 | public: 12 | PWControl() {}; 13 | virtual ~PWControl(void) {}; 14 | virtual void SetPerformance(bool enable) {enable = false;}; 15 | virtual void SetPerformanceWDT(void) {}; 16 | }; 17 | #else 18 | typedef struct PWControl PWControl; 19 | #endif 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | PWControl * PWControl_create (PW_DEVICE device); 26 | void PWControl_destroy (PWControl * instance); 27 | 28 | void PWControl_SetPerformance (PWControl * instance, bool enable); 29 | void PWControl_SetPerformanceWDT (PWControl * instance); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | #endif /* End of __RTK_POWER_CONTROL_H_ */ 35 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/dec/utils/SecureHandle.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTK_SECURE_HANDLE_H_ 2 | #define __RTK_SECURE_HANDLE_H_ 3 | 4 | #include 5 | 6 | secure_handle_t * secure_handle_create (int fd, unsigned int allocSize, unsigned int phyAddr); 7 | void secure_handle_delete (secure_handle_t * handle); 8 | 9 | #endif /* End of __RTK_SECURE_HANDLE_H_ */ 10 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/enc/codec_jenc.h: -------------------------------------------------------------------------------- 1 | #ifndef ENCODER_JPEG_H_ 2 | #define ENCODER_JPEG_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "codec.h" 9 | 10 | typedef struct JPEG_CONFIG { 11 | // ----------config----------- 12 | 13 | OMX_U32 qLevel; // The quantization level. [0..9] 14 | OMX_U32 sliceHeight; 15 | 16 | // ---------- APP0 header related config ----------- 17 | OMX_BOOL bAddHeaders; 18 | OMX_U32 xDensity; // Horizontal pixel density to APP0 header. 19 | OMX_U32 yDensity; // Vertical pixel density to APP0 header. 20 | 21 | //OMX_U32 comLength; // length of comment header data 22 | //OMX_U8 *pCom; // Pointer to comment header data of size comLength. 23 | //OMX_U32 thumbnail; // Indicates if thumbnail is added to stream. 24 | 25 | // ---------- encoder options ----------- 26 | OMX_U32 codingWidth; 27 | OMX_U32 codingHeight; 28 | OMX_U32 yuvFormat; // output picture YUV format 29 | PRE_PROCESSOR_CONFIG pp_config; 30 | } JPEG_CONFIG; 31 | 32 | // create codec instance 33 | ENCODER_PROTOTYPE* RTKHwEncOmx_encoder_create_jpeg(const JPEG_CONFIG* config); 34 | 35 | #ifdef __cplusplus 36 | } 37 | #endif 38 | 39 | #endif /*CODEC_JPEG_H_*/ 40 | 41 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/third_party/libyuv/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011, Google Inc. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are 5 | met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in 12 | the documentation and/or other materials provided with the 13 | distribution. 14 | 15 | * Neither the name of Google nor the names of its contributors may 16 | be used to endorse or promote products derived from this software 17 | without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/third_party/libyuv/README.google: -------------------------------------------------------------------------------- 1 | URL: http://libyuv.googlecode.com/svn-history/r397/trunk/ 2 | Version: r397 3 | License: BSD 4 | License File: LICENSE 5 | 6 | Description: 7 | libyuv is an open-source library for yuv scaling, conversion, comparison 8 | and rendering. 9 | Specifically libyuv is optimized for SSE2/SSSE3 and Neon and has demonstrated 10 | speed up to 10x to 16x compared to C code. 11 | 12 | Local Modifications: 13 | None 14 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/third_party/libyuv/include/libyuv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 The LibYuv Project Authors. All rights reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef INCLUDE_LIBYUV_H_ // NOLINT 12 | #define INCLUDE_LIBYUV_H_ 13 | 14 | #include "libyuv/basic_types.h" 15 | #include "libyuv/compare.h" 16 | #include "libyuv/convert.h" 17 | #include "libyuv/convert_argb.h" 18 | #include "libyuv/convert_from.h" 19 | #include "libyuv/convert_from_argb.h" 20 | #include "libyuv/cpu_id.h" 21 | #include "libyuv/mjpeg_decoder.h" 22 | #include "libyuv/planar_functions.h" 23 | #include "libyuv/rotate.h" 24 | #include "libyuv/rotate_argb.h" 25 | #include "libyuv/row.h" 26 | #include "libyuv/scale.h" 27 | #include "libyuv/scale_argb.h" 28 | #include "libyuv/scale_row.h" 29 | #include "libyuv/version.h" 30 | #include "libyuv/video_common.h" 31 | 32 | #endif // INCLUDE_LIBYUV_H_ NOLINT 33 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/third_party/libyuv/include/libyuv/convert_wrapper.h: -------------------------------------------------------------------------------- 1 | #ifndef _CONVERT_WRAPPER_H_ 2 | #define _CONVERT_WRAPPER_H_ 3 | 4 | #include 5 | 6 | #ifdef HAS_NV12TORGB565ROW_NEON 7 | int _NV12ToRGB565(const uint8* src_y, int src_stride_y, 8 | const uint8* src_uv, int src_stride_uv, 9 | uint8* dst_rgb565, int dst_stride_rgb565, 10 | int width, int height); 11 | #endif 12 | #ifdef HAS_I422TOARGBROW_NEON 13 | int _I420ToRGB565(const uint8* src_y, int src_stride_y, 14 | const uint8* src_u, int src_stride_u, 15 | const uint8* src_v, int src_stride_v, 16 | uint8* dst_rgb565, int dst_stride_rgb565, 17 | int width, int height); 18 | #endif 19 | int _RGBAToNV12(const uint8* src_rgba, int src_stride_rgba, 20 | uint8* dst_y, int dst_stride_y, 21 | uint8* dst_uv, int dst_stride_uv, 22 | int width, int height); 23 | int _RGBAToNV21(const uint8* src_rgba, int src_stride_rgba, 24 | uint8* dst_y, int dst_stride_y, 25 | uint8* dst_vu, int dst_stride_vu, 26 | int width, int height); 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/third_party/libyuv/include/libyuv/rotate_argb.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The LibYuv Project Authors. All rights reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef INCLUDE_LIBYUV_ROTATE_ARGB_H_ // NOLINT 12 | #define INCLUDE_LIBYUV_ROTATE_ARGB_H_ 13 | 14 | #include "libyuv/basic_types.h" 15 | #include "libyuv/rotate.h" // For RotationMode. 16 | 17 | #ifdef __cplusplus 18 | namespace libyuv { 19 | extern "C" { 20 | #endif 21 | 22 | // Rotate ARGB frame 23 | LIBYUV_API 24 | int ARGBRotate(const uint8* src_argb, int src_stride_argb, 25 | uint8* dst_argb, int dst_stride_argb, 26 | int src_width, int src_height, enum RotationMode mode); 27 | 28 | #ifdef __cplusplus 29 | } // extern "C" 30 | } // namespace libyuv 31 | #endif 32 | 33 | #endif // INCLUDE_LIBYUV_ROTATE_ARGB_H_ NOLINT 34 | -------------------------------------------------------------------------------- /realtek_omx/component/video_hercules/third_party/libyuv/include/libyuv/version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The LibYuv Project Authors. All rights reserved. 3 | * 4 | * Use of this source code is governed by a BSD-style license 5 | * that can be found in the LICENSE file in the root of the source 6 | * tree. An additional intellectual property rights grant can be found 7 | * in the file PATENTS. All contributing project authors may 8 | * be found in the AUTHORS file in the root of the source tree. 9 | */ 10 | 11 | #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT 12 | #define INCLUDE_LIBYUV_VERSION_H_ 13 | 14 | #define LIBYUV_VERSION 1561 15 | 16 | #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT 17 | -------------------------------------------------------------------------------- /realtek_omx/include/rtkext/OMX_ComponentRTKExt.h: -------------------------------------------------------------------------------- 1 | #ifndef OMX_ComponentRTKExt_h 2 | #define OMX_ComponentRTKExt_h 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | /* Each OMX header must include all required header files to allow the 9 | * header to compile without errors. The includes below are required 10 | * for this header file to compile successfully 11 | */ 12 | #include 13 | 14 | /** Set/query the commit mode */ 15 | typedef struct OMX_CONFIG_COMMITMODETYPE { 16 | OMX_U32 nSize; 17 | OMX_VERSIONTYPE nVersion; 18 | OMX_BOOL bDeferred; 19 | } OMX_CONFIG_COMMITMODETYPE; 20 | 21 | /** Explicit commit */ 22 | typedef struct OMX_CONFIG_COMMITTYPE { 23 | OMX_U32 nSize; 24 | OMX_VERSIONTYPE nVersion; 25 | } OMX_CONFIG_COMMITTYPE; 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif /* __cplusplus */ 30 | 31 | #endif /* OMX_ComponentRTKExt_h */ 32 | -------------------------------------------------------------------------------- /realtek_omx/include/rtkext/OMX_IVCommonRTKExt.h: -------------------------------------------------------------------------------- 1 | #ifndef OMX_IVCommonRTKExt_h 2 | #define OMX_IVCommonRTKExt_h 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | #include 9 | 10 | /** 11 | * * nCount : Count the FILLDONE time, 100 per life cycle 12 | * * nInputBufferAtTop : Count if current input buffer count = total number - 1 13 | * * nOutputBufferAtTop : Count if current output buffer count = total number - undequeue buffer number 14 | * */ 15 | typedef struct OMX_VIDEO_PERFORMANCE_CHECK { 16 | OMX_U32 nCount; 17 | OMX_U32 nInputBufferAtTop; 18 | OMX_U32 nOutputBufferAtTop; 19 | } OMX_VIDEO_PERFORMANCE_CHECK; 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif /* __cplusplus */ 24 | 25 | #endif 26 | /* File EOF */ 27 | -------------------------------------------------------------------------------- /realtek_omx/include/rtkext/OMX_ImageRTKExt.h: -------------------------------------------------------------------------------- 1 | #ifndef OMX_ImageRTKExt_h 2 | #define OMX_ImageRTKExt_h 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | /* Each OMX header shall include all required header files to allow the 9 | * header to compile without errors. The includes below are required 10 | * for this header file to compile successfully 11 | */ 12 | #include 13 | 14 | /** Enum for standard image codingtype extensions */ 15 | typedef enum OMX_IMAGE_CODINGTYPE_RTKEXT { 16 | OMX_IMAGE_CodingVendorRTKStartUnused = OMX_IMAGE_CodingVendorStartUnused, 17 | OMX_IMAGE_CodingWEBP, /**< WebP image format */ 18 | } OMX_IMAGE_CODINGTYPE_RTKEXT; 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif /* __cplusplus */ 23 | 24 | #endif /* OMX_ImageRTKExt_h */ 25 | /* File EOF */ 26 | -------------------------------------------------------------------------------- /realtek_omx/include/rtkext/OMX_IndexRTKExt.h: -------------------------------------------------------------------------------- 1 | #ifndef OMX_IndexRTKExt_h 2 | #define OMX_IndexRTKExt_h 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | /* Each OMX header shall include all required header files to allow the 9 | * header to compile without errors. The includes below are required 10 | * for this header file to compile successfully 11 | */ 12 | #include 13 | 14 | 15 | typedef enum OMX_INDEXEXTTYPE_RTKEXT { 16 | 17 | OMX_IndexParamVideoInputPhysical = 0x06600000, /**< RTK Used for DRM */ 18 | 19 | //OMX_IndexVendorStartUnused = 0x7F000000, 20 | OMX_IndexVendorRTKStartUnused = OMX_IndexVendorStartUnused, 21 | OMX_IndexParamAudioDts, /**< reference: OMX_AUDIO_PARAM_DTSTYPE */ 22 | OMX_IndexParamAudioMlp, /**< reference: OMX_AUDIO_PARAM_MLPTYPE */ 23 | OMX_IndexParamAudioWmaPro, /**< reference: OMX_AUDIO_PARAM_WMAPROTYPE */ 24 | OMX_IndexParamAudioAlac, /**< reference: OMX_AUDIO_PARAM_ALACTYPE */ 25 | OMX_IndexParamAudioMS12, /**< reference: OMX_AUDIO_PARAM_MS12CFG */ 26 | OMX_IndexParamAudioDSD, /**< reference: OMX_AUDIO_PARAM_DSDTYPE */ 27 | OMX_IndexParamAudioDtsHd, /**< reference: OMX_AUDIO_PARAM_DTSHDTYPE */ 28 | OMX_IndexParamAudioApe, /**< reference: OMX_AUDIO_PARAM_APETYPE */ 29 | OMX_IndexParamAudioMpegH, /**< reference: OMX_AUDIO_PARAM_MPEGHTYPE */ 30 | 31 | } OMX_INDEXEXTTYPE_RTKEXT; 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif /* __cplusplus */ 36 | 37 | #endif /* OMX_IndexRTKExt_h */ 38 | /* File EOF */ 39 | -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.audio.dec.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libOMX.realtek.audio.dec.so -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.image.dec.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libOMX.realtek.image.dec.so -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.image.enc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libOMX.realtek.image.enc.so -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.video.dec.avc.secure.so: -------------------------------------------------------------------------------- 1 | libOMX.realtek.video.dec.so -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.video.dec.dovi.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libOMX.realtek.video.dec.dovi.so -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.video.dec.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libOMX.realtek.video.dec.so -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.video.dec.vp9.so: -------------------------------------------------------------------------------- 1 | libOMX.realtek.video.so -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.video.enc.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libOMX.realtek.video.enc.so -------------------------------------------------------------------------------- /realtek_omx/libOMX.realtek.video.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libOMX.realtek.video.so -------------------------------------------------------------------------------- /realtek_omx/libOMX_Core.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libOMX_Core.so -------------------------------------------------------------------------------- /realtek_omx/libRTKOMX_OSAL_RTK.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/realtek_omx/libRTKOMX_OSAL_RTK.so -------------------------------------------------------------------------------- /realtek_omx/osal_rtk/msgque.h: -------------------------------------------------------------------------------- 1 | #ifndef RTK_MSGQUE_H 2 | #define RTK_MSGQUE_H 3 | 4 | #if defined(__LINARO_SDK__) 5 | #include "OMX_Types.h" 6 | #include "OMX_Core.h" 7 | #else 8 | #include 9 | #include 10 | #endif 11 | 12 | #include "OSAL_RTK.h" 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | 18 | typedef struct msg_node msg_node; 19 | 20 | struct msg_node 21 | { 22 | msg_node* next; 23 | msg_node* prev; 24 | OMX_PTR data; 25 | }; 26 | 27 | typedef struct msgque 28 | { 29 | msg_node* head; 30 | msg_node* tail; 31 | OMX_U32 size; 32 | OMX_HANDLETYPE mutex; 33 | OMX_HANDLETYPE event; 34 | } msgque; 35 | 36 | // Initialize a new message queue instance 37 | OMX_ERRORTYPE RTKOmx_msgque_init(OMX_IN msgque* q); 38 | 39 | // Destroy the message queue instance, free allocated resources 40 | void RTKOmx_msgque_destroy(OMX_IN msgque* q); 41 | 42 | // Push a new message at the end of the queue. 43 | // Function provides commit/rollback semantics. 44 | OMX_ERRORTYPE RTKOmx_msgque_push_back(OMX_IN msgque* q, OMX_IN OMX_PTR ptr); 45 | 46 | // Get a message from the front, returns always immediately but 47 | // ptr will point to NULL if the queue is empty. 48 | // Function provides commit/rollback semantics. 49 | OMX_ERRORTYPE RTKOmx_msgque_get_front(OMX_IN msgque* q, OMX_OUT OMX_PTR* ptr); 50 | 51 | // Get current queue size 52 | OMX_ERRORTYPE RTKOmx_msgque_get_size(OMX_IN msgque* q, OMX_OUT OMX_U32* size); 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | #endif // RTK_MSGQUE_H 58 | -------------------------------------------------------------------------------- /realtek_omx/osal_rtk/system_mem.h: -------------------------------------------------------------------------------- 1 | #ifndef SYSTEM_MEM_H 2 | #define SYSTEM_MEM_H 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | SystemMemory *SystemMemory_Malloc(int dMallocSize); 9 | SystemMemory *SystemMemory_ION_alloc(int dIONallocSize, int dIONHeapMask, int dIONHeapFlag); 10 | void SystemMemory_free(SystemMemory **mem); 11 | #endif 12 | -------------------------------------------------------------------------------- /realtek_omx/osal_rtk/util.h: -------------------------------------------------------------------------------- 1 | #ifndef RTK_UTIL_H 2 | #define RTK_UTIL_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include "OMX_CoreRTKExt.h" 8 | #include "OMX_IndexRTKExt.h" 9 | 10 | // Qm.n conversion macros 11 | #define Q16_FLOAT(a) ((float)(a) / 65536.0) 12 | #define FLOAT_Q16(a) ((OMX_U32) ((float)(a) * 65536.0)) 13 | 14 | #define UNUSED_PARAMETER(p) (void)(p) 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | const char* RTKOmx_str_omx_state(OMX_STATETYPE s); 21 | const char* RTKOmx_str_omx_err(OMX_ERRORTYPE e); 22 | const char* RTKOmx_str_omx_cmd(OMX_COMMANDTYPE c); 23 | const char* RTKOmx_str_omx_event(OMX_EVENTTYPE e); 24 | const char* RTKOmx_str_omx_index(OMX_INDEXTYPE i); 25 | const char* RTKOmx_str_omx_color(OMX_COLOR_FORMATTYPE f); 26 | const char* RTKOmx_str_omx_supplier(OMX_BUFFERSUPPLIERTYPE bst); 27 | 28 | //audio 29 | const char* AudioOmx_str_omx_index(OMX_INDEXTYPE i); 30 | 31 | OMX_U32 RTKOmx_make_int_ver(OMX_U8 major, OMX_U8 minor); 32 | 33 | #ifdef __cplusplus 34 | } 35 | #endif 36 | #endif // RTK_UTIL_H 37 | -------------------------------------------------------------------------------- /thermal/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := thermal.$(TARGET_BOARD_PLATFORM).so 6 | LOCAL_MODULE_TAGS:= optional eng 7 | LOCAL_MODULE_CLASS := VENDOR_SHARED_LIBRARIES 8 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_SHARED_LIBRARIES) 9 | LOCAL_MODULE_SUFFIX := .so 10 | LOCAL_MODULE := thermal.$(TARGET_BOARD_PLATFORM) 11 | LOCAL_PROPRIETARY_MODULE := true 12 | 13 | LOCAL_MODULE_RELATIVE_PATH := hw 14 | 15 | include $(BUILD_PREBUILT) 16 | 17 | 18 | -------------------------------------------------------------------------------- /thermal/thermal.hercules.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/thermal/thermal.hercules.so -------------------------------------------------------------------------------- /usb/Android.bp.bak: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2017 The Android Open Source Project 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | cc_binary { 16 | name: "android.hardware.usb@1.1-service.rtk", 17 | relative_install_path: "hw", 18 | init_rc: ["android.hardware.usb@1.1-service.rtk.rc"], 19 | srcs: ["service.cpp", "Usb.cpp"], 20 | cflags: ["-Wall", "-Werror"], 21 | shared_libs: [ 22 | "libbase", 23 | "libhidlbase", 24 | "libhidltransport", 25 | "liblog", 26 | "libutils", 27 | "libhardware", 28 | "android.hardware.usb@1.0", 29 | "android.hardware.usb@1.1", 30 | "libcutils", 31 | ], 32 | proprietary: true, 33 | } 34 | -------------------------------------------------------------------------------- /usb/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_SRC_FILES := android.hardware.usb@1.1-service.rtk 6 | LOCAL_MODULE_CLASS := EXECUTABLES 7 | LOCAL_MODULE_TAGS := optional eng 8 | LOCAL_MODULE := android.hardware.usb@1.1-service.rtk 9 | LOCAL_PROPRIETARY_MODULE := true 10 | LOCAL_MODULE_RELATIVE_PATH := hw 11 | LOCAL_INIT_RC := android.hardware.usb@1.1-service.rtk.rc 12 | 13 | include $(BUILD_PREBUILT) 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /usb/android.hardware.usb@1.1-service.rtk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/usb/android.hardware.usb@1.1-service.rtk -------------------------------------------------------------------------------- /usb/android.hardware.usb@1.1-service.rtk.rc: -------------------------------------------------------------------------------- 1 | service vendor.usb-hal-1-1 /vendor/bin/hw/android.hardware.usb@1.1-service.rtk 2 | class hal 3 | user system 4 | group system 5 | 6 | -------------------------------------------------------------------------------- /wlan/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(BOARD_WIFI_VENDOR), realtek) 2 | include $(call all-subdir-makefiles) 3 | endif 4 | -------------------------------------------------------------------------------- /wlan/config/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2008 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | LOCAL_PATH := $(call my-dir) 17 | 18 | ######################## 19 | 20 | include $(CLEAR_VARS) 21 | LOCAL_MODULE := dhcpcd.conf 22 | LOCAL_MODULE_CLASS := ETC 23 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/dhcpcd 24 | LOCAL_SRC_FILES := android_dhcpcd.conf 25 | include $(BUILD_PREBUILT) 26 | 27 | ######################### 28 | 29 | WIFI_DRIVER_SOCKET_IFACE := wlan0 30 | include external/wpa_supplicant_8/wpa_supplicant/wpa_supplicant_conf.mk 31 | #ifeq ($(strip $(WPA_SUPPLICANT_VERSION)),VER_0_8_X) 32 | # include external/wpa_supplicant_L_5/wpa_supplicant/wpa_supplicant_conf.mk 33 | #else 34 | #ifeq ($(strip $(WPA_SUPPLICANT_VERSION)),VER_0_6_X) 35 | # include external/wpa_supplicant_6/wpa_supplicant/wpa_supplicant_conf.mk 36 | #else 37 | # include external/wpa_supplicant/wpa_supplicant_conf.mk 38 | #endif 39 | #endif 40 | ####################### 41 | -------------------------------------------------------------------------------- /wlan/config/android_dhcpcd.conf: -------------------------------------------------------------------------------- 1 | # dhcpcd configuration for Android Wi-Fi interface 2 | # See dhcpcd.conf(5) for details. 3 | 4 | # Disable solicitation of IPv6 Router Advertisements 5 | noipv6rs 6 | 7 | interface wlan0 8 | # dhcpcd-run-hooks uses these options. 9 | option subnet_mask, routers, domain_name_servers, interface_mtu 10 | -------------------------------------------------------------------------------- /wlan/rtw_fwloader/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | LOCAL_SRC_FILES := rtw_fwloader.c 5 | LOCAL_MODULE := rtw_fwloader 6 | LOCAL_INIT_RC := rtw_fwloader.rc 7 | LOCAL_MODULE_TAGS := optional 8 | LOCAL_SHARED_LIBRARIES := liblog libcutils 9 | LOCAL_POST_INSTALL_CMD := cp -f $(TARGET_OUT_VENDOR)/bin/$(LOCAL_MODULE) device/realtek/$(TARGET_BOARD_PLATFORM)/common/prebuilt/proprietary/bin; \ 10 | cp -f $(LOCAL_PATH)/$(LOCAL_INIT_RC) device/realtek/$(TARGET_BOARD_PLATFORM)/common/prebuilt/proprietary/bin 11 | include $(BUILD_EXECUTABLE) 12 | 13 | -------------------------------------------------------------------------------- /wlan/rtw_fwloader/rtw_fwloader.rc: -------------------------------------------------------------------------------- 1 | # add from Realtek_Wi-Fi_SDK_for_Android_L_5_0.pdf 2 | service rtw_fwloader /system/bin/rtw_fwloader 3 | class main 4 | disabled 5 | oneshot 6 | 7 | -------------------------------------------------------------------------------- /wlan/wifi_auto_insmod/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | ######################################################## 4 | include $(CLEAR_VARS) 5 | # LOCAL_PREBUILT_LIBS := wifi_auto_insmod.a 6 | LOCAL_MODULE_TAGS:= optional eng 7 | LOCAL_VENDOR_MODULE := true 8 | LOCAL_MODULE := wifi_auto_insmod 9 | LOCAL_MODULE_SUFFIX := .a 10 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES 11 | LOCAL_SRC_FILES := wifi_auto_insmod.a 12 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 13 | include $(BUILD_PREBUILT) 14 | ######################################################## 15 | ####################################################### 16 | include $(CLEAR_VARS) 17 | LOCAL_SRC_FILES := wifi_module_mapper.json 18 | LOCAL_MODULE_CLASS := ETC 19 | LOCAL_MODULE_TAGS := optional eng 20 | LOCAL_MODULE := wifi_module_mapper.json 21 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/wifi 22 | #LOCAL_PROPRIETARY_MODULE := true 23 | LOCAL_VENDOR_MODULE := true 24 | 25 | include $(BUILD_PREBUILT) 26 | 27 | -------------------------------------------------------------------------------- /wlan/wifi_auto_insmod/wifi_auto_insmod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/wlan/wifi_auto_insmod/wifi_auto_insmod -------------------------------------------------------------------------------- /wlan/wifi_auto_insmod/wifi_auto_insmod.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/wlan/wifi_auto_insmod/wifi_auto_insmod.a -------------------------------------------------------------------------------- /wlan/wifi_auto_insmod/wifi_mod_mapper.cfg: -------------------------------------------------------------------------------- 1 | sdio:c07v024CdB723 sdio:c07v024CdB723 2 | 8723bs 8723bs -------------------------------------------------------------------------------- /wlan/wifi_auto_insmod/wifi_mod_mapper.h: -------------------------------------------------------------------------------- 1 | #ifndef _WIFI_MOD_MAPPER_H 2 | #define _WIFI_MOD_MAPPER_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | int init_wifi_mod_mapper(); 7 | int get_insmod_names(char** result); 8 | void uninit_wifi_mod_mapper(); 9 | #define MAX_WIFI 20 10 | #define MAX_LEN 20 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | #endif //_WIFI_MOD_MAPPER_H -------------------------------------------------------------------------------- /wlan/wifi_auto_insmod/wifi_module_list.cfg: -------------------------------------------------------------------------------- 1 | 8814au 8812au 8192eu 8192cu 8188eu 8811au 8189es 8723bs 2 | -------------------------------------------------------------------------------- /wlan/wifi_hal/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2011 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | # Make the HAL library 18 | # ============================================================ 19 | include $(CLEAR_VARS) 20 | 21 | LOCAL_CFLAGS := \ 22 | -Wall \ 23 | -Werror \ 24 | -Wno-format \ 25 | -Wno-reorder \ 26 | -Wno-unused-function \ 27 | -Wno-unused-parameter \ 28 | -Wno-unused-private-field \ 29 | -Wno-unused-variable \ 30 | # -DCONFIG_WIFI_HAL_DEBUG 31 | 32 | LOCAL_C_INCLUDES += \ 33 | external/libnl/include \ 34 | $(call include-path-for, libhardware_legacy)/hardware_legacy \ 35 | external/wpa_supplicant_8/src/drivers 36 | 37 | LOCAL_HEADER_LIBRARIES := libutils_headers liblog_headers 38 | LOCAL_SRC_FILES := \ 39 | rtw_wifi_hal.cpp \ 40 | rtw_wifi_rtt.cpp \ 41 | common.cpp \ 42 | cpp_bindings.cpp \ 43 | rtw_wifi_gscan.cpp \ 44 | rtw_wifi_llstats.cpp \ 45 | rtw_wifi_logger.cpp \ 46 | rtw_wifi_offload.cpp 47 | 48 | LOCAL_MODULE := libwifi-hal-rtk 49 | LOCAL_PROPRIETARY_MODULE := true 50 | 51 | include $(BUILD_STATIC_LIBRARY) 52 | 53 | -------------------------------------------------------------------------------- /wlan/wifi_hal/version.h: -------------------------------------------------------------------------------- 1 | #ifndef VERSION_H 2 | #define VERSION_H 3 | 4 | #define RTW_WIFI_HAL_VERSION "v1.0.2" 5 | 6 | #endif /* VERSION_H */ 7 | -------------------------------------------------------------------------------- /wlan/wpa_supplicant_8_lib/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X) 4 | 5 | ################################################################################ 6 | include $(CLEAR_VARS) 7 | 8 | LOCAL_PREBUILT_LIBS := lib_driver_cmd_rtl.a 9 | LOCAL_MODULE_TAGS:= optional 10 | 11 | include $(BUILD_MULTI_PREBUILT) 12 | 13 | endif 14 | -------------------------------------------------------------------------------- /wlan/wpa_supplicant_8_lib/MODULE_LICENSE_BSD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/wlan/wpa_supplicant_8_lib/MODULE_LICENSE_BSD -------------------------------------------------------------------------------- /wlan/wpa_supplicant_8_lib/driver_cmd_wext.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Driver interaction with extended Linux Wireless Extensions 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License version 2 as 6 | * published by the Free Software Foundation. 7 | * 8 | * Alternatively, this software may be distributed under the terms of BSD 9 | * license. 10 | * 11 | */ 12 | #ifndef DRIVER_CMD_WEXT_H 13 | #define DRIVER_CMD_WEXT_H 14 | 15 | #define WEXT_NUMBER_SCAN_CHANNELS_FCC 11 16 | #define WEXT_NUMBER_SCAN_CHANNELS_ETSI 13 17 | #define WEXT_NUMBER_SCAN_CHANNELS_MKK1 14 18 | 19 | #define WPA_DRIVER_WEXT_WAIT_US 400000 20 | #define WEXT_CSCAN_BUF_LEN 360 21 | #define WEXT_CSCAN_HEADER "CSCAN S\x01\x00\x00S\x00" 22 | #define WEXT_CSCAN_HEADER_SIZE 12 23 | #define WEXT_CSCAN_SSID_SECTION 'S' 24 | #define WEXT_CSCAN_CHANNEL_SECTION 'C' 25 | #define WEXT_CSCAN_NPROBE_SECTION 'N' 26 | #define WEXT_CSCAN_ACTV_DWELL_SECTION 'A' 27 | #define WEXT_CSCAN_PASV_DWELL_SECTION 'P' 28 | #define WEXT_CSCAN_HOME_DWELL_SECTION 'H' 29 | #define WEXT_CSCAN_TYPE_SECTION 'T' 30 | #define WEXT_CSCAN_TYPE_DEFAULT 0 31 | #define WEXT_CSCAN_TYPE_PASSIVE 1 32 | #define WEXT_CSCAN_PASV_DWELL_TIME 130 33 | #define WEXT_CSCAN_PASV_DWELL_TIME_DEF 250 34 | #define WEXT_CSCAN_PASV_DWELL_TIME_MAX 3000 35 | #define WEXT_CSCAN_HOME_DWELL_TIME 130 36 | 37 | #endif /* DRIVER_CMD_WEXT_H */ 38 | -------------------------------------------------------------------------------- /wlan/wpa_supplicant_8_lib/lib_driver_cmd_rtl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Realtek-OpenSource/android_hardware_realtek/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/wlan/wpa_supplicant_8_lib/lib_driver_cmd_rtl.a -------------------------------------------------------------------------------- /wlan/wpa_supplicant_8_lib/rtw_version.h: -------------------------------------------------------------------------------- 1 | #ifndef RTW_VERSION_H 2 | #define RTW_VERSION_H 3 | #define RTW_VERSION "rtw_r26589.20180227" 4 | #endif /* RTW_VERSION_H */ 5 | --------------------------------------------------------------------------------