Home
last modified time | relevance | path

Searched refs:alaw (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/drivers/isdn/mISDN/
Ddsp_audio.c75 static inline short int alaw2linear(unsigned char alaw) in alaw2linear() argument
80 alaw ^= AMI_MASK; in alaw2linear()
81 i = ((alaw & 0x0F) << 4) + 8 /* rounding error */; in alaw2linear()
82 seg = (((int) alaw & 0x70) >> 4); in alaw2linear()
85 return (short int) ((alaw & 0x80) ? i : -i); in alaw2linear()
/linux-6.6.21/include/uapi/linux/
Dam437x-vpfe.h109 struct vpfe_ccdc_a_law alaw; member
/linux-6.6.21/drivers/media/platform/ti/omap3isp/
Dispccdc.h137 unsigned int alaw:1, member
Dispccdc.c614 u32 alaw = 0; in ccdc_configure_alaw() local
623 alaw = ISPCCDC_ALAW_GWDI_9_0; in ccdc_configure_alaw()
626 alaw = ISPCCDC_ALAW_GWDI_10_1; in ccdc_configure_alaw()
629 alaw = ISPCCDC_ALAW_GWDI_11_2; in ccdc_configure_alaw()
632 alaw = ISPCCDC_ALAW_GWDI_12_3; in ccdc_configure_alaw()
636 if (ccdc->alaw) in ccdc_configure_alaw()
637 alaw |= ISPCCDC_ALAW_CCDTBL; in ccdc_configure_alaw()
639 isp_reg_writel(isp, alaw, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_ALAW); in ccdc_configure_alaw()
674 ccdc->alaw = !!(OMAP3ISP_CCDC_ALAW & ccdc_struct->flag); in ccdc_config()
/linux-6.6.21/drivers/media/platform/ti/am437x/
Dam437x-vpfe.c282 if (!ccdcparam->alaw.enable) in vpfe_ccdc_validate_param()
285 max_gamma = ccdc_gamma_width_max_bit(ccdcparam->alaw.gamma_wd); in vpfe_ccdc_validate_param()
288 if (ccdcparam->alaw.gamma_wd > VPFE_CCDC_GAMMA_BITS_09_0 || in vpfe_ccdc_validate_param()
540 if (config_params->alaw.enable) { in vpfe_ccdc_config_raw()
541 val = ((config_params->alaw.gamma_wd & in vpfe_ccdc_config_raw()
559 config_params->alaw.enable) in vpfe_ccdc_config_raw()
625 ccdc->ccdc_cfg.bayer.config_params.alaw.enable = 0; in vpfe_ccdc_set_pixel_format()
629 ccdc->ccdc_cfg.bayer.config_params.alaw.enable = 1; in vpfe_ccdc_set_pixel_format()
854 ccdc->ccdc_cfg.bayer.config_params.alaw.gamma_wd = in vpfe_ccdc_config_defaults()