06 Aug, 2019

11 commits


05 Aug, 2019

6 commits


02 Aug, 2019

4 commits


01 Aug, 2019

1 commit


31 Jul, 2019

1 commit


30 Jul, 2019

2 commits


29 Jul, 2019

3 commits

  • The audio float point data range is (-1, 1), the asrc would output
    all zero for float point input and integer output case, that is to
    drop the fractional part of the data directly.

    In order to support float to int conversion or int to float conversion
    we need to do special operation on the coefficient to enlarge/reduce
    the data to the expected range.

    For float to int case:
    Up sampling:
    1. Create a 1 tap filter with center tap (only tap) of 2^31
    in 64 bits floating point.
    double value = (double)(((uint64_t)1) << 31);
    2. Program 1 tap prefilter with center tap above.

    Down sampling,
    1. If the filter is single stage filter, add "shift" to the exponent of
    stage 1 coefficients.
    2. If the filter is two stage filter , add "shift" to the exponent of
    stage 2 coefficients.

    The "shift" is 31, same for int16, int24, int32 case.

    For int to float case:
    Up sampling:
    1. Create a 1 tap filter with center tap (only tap) of 2^-31
    in 64 bits floating point.
    2. Program 1 tap prefilter with center tap above.

    Down sampling,
    1. If the filter is single stage filter, subtract "shift" to the
    exponent of stage 1 coefficients.
    2. If the filter is two stage filter , subtract "shift" to the
    exponent of stage 2 coefficients.

    The "shift" is 15,23,31, different for int16, int24, int32 case.

    Signed-off-by: Shengjiu Wang
    (cherry picked from commit 8a18a7a2dd1184814c6c61cb116f4d868b003447)

    Shengjiu Wang
     
  • module_param(vpu_datadump_ena, int, 0644);
    MODULE_PARM_DESC(vpu_datadump_ena, "enable dump input frame data (0-1)");

    Signed-off-by: Shijie Qin
    Reviewed-by: Zhou Peng

    Shijie Qin
     
  • Implement program support.
    Restruct code to check hole/ecc region.
    Use ATF SIP to program fuse
    Add mutex lock to protect access

    Signed-off-by: Peng Fan
    Reviewed-by: Ye Li

    Peng Fan
     

26 Jul, 2019

5 commits


25 Jul, 2019

7 commits

  • fix build warnings if CONFIG_PM_SLEEP is disabled.

    drivers/media/platform/imx8/mxc-mipi-csi2_yav.c:703:12: warning: 'mipi_csi2_pm_resume' defined but not used [-Wunused-function]
    static int mipi_csi2_pm_resume(struct device *dev)
    ^~~~~~~~~~~~~~~~~~~
    drivers/media/platform/imx8/mxc-mipi-csi2_yav.c:685:12: warning: 'mipi_csi2_pm_suspend' defined but not used [-Wunused-function]
    static int mipi_csi2_pm_suspend(struct device *dev)
    ^~~~~~~~~~~~~~~~~~~~

    Signed-off-by: Robby Cai
    Reviewed-by: Sandor Yu

    Robby Cai
     
  • fix build warnings if CONFIG_PM_SLEEP is disabled.

    drivers/media/platform/imx8/mxc-parallel-csi.c:618:12: warning: 'parallel_csi_pm_resume' defined but not used [-Wunused-function]
    static int parallel_csi_pm_resume(struct device *dev)
    ^~~~~~~~~~~~~~~~~~~~~~
    drivers/media/platform/imx8/mxc-parallel-csi.c:613:12: warning: 'parallel_csi_pm_suspend' defined but not used [-Wunused-function]
    static int parallel_csi_pm_suspend(struct device *dev)
    ^~~~~~~~~~~~~~~~~~~~~~~

    Signed-off-by: Robby Cai
    Reviewed-by: Sandor Yu

    Robby Cai
     
  • There is no SC_R_LVDS_1_I2C_0/SC_R_LVDS_1_I2C_1 in SCFW, remove
    those clocks which are associated with these non-exist resources.

    Signed-off-by: Anson Huang
    Reviewed-by: Jacky Bai
    (cherry picked from commit c242b208b0f7911c3dc0c40533d80847731c077e)

    Anson Huang
     
  • the amount of REL_FRAME_BUFF event may be much bigger the BUFF_RDY
    event.
    it means that some frame buffer are not used for decoding,
    and firmware just release it directly.

    The frame who is need to skip is decoded but not ready.

    Signed-off-by: ming_qian
    Reviewed-by: Shijie Qin

    ming_qian
     
  • Macros 'inline' and '__gnu_inline' used to be defined in compiler-gcc.h,
    which was (and is) included entirely in (__KERNEL__ && !__ASSEMBLY__).
    Commit 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually
    exclusive") had those macros exposed to userspace, unintentionally.

    Then commit a3f8a30f3f00 ("Compiler Attributes: use feature checks
    instead of version checks") moved '__gnu_inline' back into
    (__KERNEL__ && !__ASSEMBLY__) and 'inline' was left behind. Since 'inline'
    depends on '__gnu_inline', compiling error showing "unknown type name
    ‘__gnu_inline’" will pop up, if userspace somehow includes
    .

    Other macros like __must_check, notrace, etc. are in a similar situation.
    So just move all these macros back into (__KERNEL__ && !__ASSEMBLY__).

    Note:
    1. This patch only affects what userspace sees.
    2. __must_check (when !CONFIG_ENABLE_MUST_CHECK) and noinline_for_stack
    were once defined in __KERNEL__ only, but we believe that they can
    be put into !__ASSEMBLY__ too.

    Acked-by: Nick Desaulniers
    Signed-off-by: Xiaozhou Liu
    Signed-off-by: Miguel Ojeda

    Xiaozhou Liu
     
  • Remove clocks that dont exist in imx8qxp.
    Change clock names to match HW.

    Signed-off-by: Ranjani Vaidyanathan

    Ranjani Vaidyanathan
     
  • Remove clocks that dont exist in imx8qxp.
    Change clock names to match HW.

    Signed-off-by: Ranjani Vaidyanathan

    Ranjani Vaidyanathan