/linux-4.4.14/drivers/isdn/mISDN/ |
H A D | dsp_audio.c | 22 /* alaw[unsigned char] -> signed 16-bit */ 32 /* alaw -> ulaw */ 34 /* ulaw -> alaw */ 40 * generate table for conversion of s16 to alaw/ulaw * 75 static inline short int alaw2linear(unsigned char alaw) alaw2linear() argument 80 alaw ^= AMI_MASK; alaw2linear() 81 i = ((alaw & 0x0F) << 4) + 8 /* rounding error */; alaw2linear() 82 seg = (((int) alaw & 0x70) >> 4); alaw2linear() 85 return (short int) ((alaw & 0x80) ? i : -i); alaw2linear() 170 /* generating alaw-table */ dsp_audio_generate_s2law_table() 180 * the seven bit sample is the number of every second alaw-sample ordered by 187 * generate table for conversion law from/to 7-bit alaw-like sample * 197 /* generate alaw table, sorted by the linear value */ dsp_audio_generate_seven() 210 /* spl is the source: the law-sample (converted to alaw) */ dsp_audio_generate_seven()
|
H A D | l1oip_codec.c | 61 /* alaw -> ulaw */ 98 /* ulaw -> alaw */ 135 /* alaw -> 4bit compression */ 171 /* 4bit -> alaw decompression */
|
H A D | dsp_dtmf.c | 114 * fmt - 0 = alaw, 1 = ulaw, 2 = coefficients from HFC DTMF hw-decoder 140 case 0: /* alaw */ dsp_dtmf_goertzel_decode()
|
H A D | dsp.h | 23 * bit 0 = use ulaw instead of alaw
|
H A D | dsp_tones.c | 41 /* all tones are alaw encoded */ 210 * generate ulaw from alaw samples *
|
H A D | l1oip_core.c | 1320 case 1: /* alaw */ init_card()
|
/linux-4.4.14/drivers/media/platform/davinci/ |
H A D | dm355_ccdc.c | 82 .alaw = { 300 if (ccdcparam->alaw.enable) { validate_ccdc_param() 301 if (ccdcparam->alaw.gamma_wd < CCDC_GAMMA_BITS_13_4 || validate_ccdc_param() 302 ccdcparam->alaw.gamma_wd > CCDC_GAMMA_BITS_09_0) { validate_ccdc_param() 652 /* set pack for alaw compression */ ccdc_config_raw() 654 config_params->alaw.enable) ccdc_config_raw() 676 if (config_params->alaw.enable) { ccdc_config_raw() 678 ((config_params->alaw.gamma_wd & ccdc_config_raw() 728 config_params->alaw.enable) { ccdc_config_raw() 820 struct ccdc_a_law *alaw = &ccdc_cfg.bayer.config_params.alaw; ccdc_set_pixel_format() local 825 alaw->enable = 1; ccdc_set_pixel_format() 840 struct ccdc_a_law *alaw = &ccdc_cfg.bayer.config_params.alaw; ccdc_get_pixel_format() local 844 if (alaw->enable) ccdc_get_pixel_format() 880 if ((config_params->alaw.enable) || ccdc_get_line_length()
|
H A D | dm644x_ccdc.c | 225 if (ccdcparam->alaw.enable) { validate_ccdc_param() 226 u8 max_gamma = ccdc_gamma_width_max_bit(ccdcparam->alaw.gamma_wd); validate_ccdc_param() 229 if ((ccdcparam->alaw.gamma_wd > CCDC_GAMMA_BITS_09_0) || validate_ccdc_param() 230 (ccdcparam->alaw.gamma_wd < CCDC_GAMMA_BITS_15_6) || validate_ccdc_param() 560 if (config_params->alaw.enable) { ccdc_config_raw() 561 val = ((config_params->alaw.gamma_wd & ccdc_config_raw() 581 config_params->alaw.enable) ccdc_config_raw() 631 config_params->alaw.enable) ccdc_config_raw() 732 ccdc_cfg.bayer.config_params.alaw.enable = 1; ccdc_set_pixel_format() 748 struct ccdc_a_law *alaw = &ccdc_cfg.bayer.config_params.alaw; ccdc_get_pixel_format() local 752 if (alaw->enable) ccdc_get_pixel_format() 789 if ((config_params->alaw.enable) || ccdc_get_line_length()
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
H A D | ispccdc.h | 110 * @alaw: A-law compression enabled (1) or disabled (0) 140 unsigned int alaw:1, member in struct:isp_ccdc_device
|
H A D | ispccdc.c | 616 u32 alaw = 0; ccdc_configure_alaw() local 625 alaw = ISPCCDC_ALAW_GWDI_9_0; ccdc_configure_alaw() 628 alaw = ISPCCDC_ALAW_GWDI_10_1; ccdc_configure_alaw() 631 alaw = ISPCCDC_ALAW_GWDI_11_2; ccdc_configure_alaw() 634 alaw = ISPCCDC_ALAW_GWDI_12_3; ccdc_configure_alaw() 638 if (ccdc->alaw) ccdc_configure_alaw() 639 alaw |= ISPCCDC_ALAW_CCDTBL; ccdc_configure_alaw() 641 isp_reg_writel(isp, alaw, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_ALAW); ccdc_configure_alaw() 676 ccdc->alaw = !!(OMAP3ISP_CCDC_ALAW & ccdc_struct->flag); ccdc_config()
|
H A D | isph3a_af.c | 237 /* alaw */ h3a_af_set_params()
|
/linux-4.4.14/drivers/staging/media/omap4iss/ |
H A D | iss_ipipeif.h | 44 * @alaw: A-law compression enabled (1) or disabled (0)
|
/linux-4.4.14/include/uapi/linux/ |
H A D | am437x-vpfe.h | 108 struct vpfe_ccdc_a_law alaw; member in struct:vpfe_ccdc_config_params_raw
|
/linux-4.4.14/drivers/isdn/i4l/ |
H A D | isdn_audio.c | 62 /* alaw -> signed 16-bit */ 99 /* alaw -> ulaw */ 136 /* ulaw -> alaw */ 590 * fmt = audio data format (0 = ulaw, 1 = alaw)
|
H A D | isdn_tty.c | 480 /* For now, ifmt is fixed to 1 (alaw), since this isdn_tty_senddown()
|
/linux-4.4.14/include/media/davinci/ |
H A D | dm644x_ccdc.h | 127 struct ccdc_a_law alaw; member in struct:ccdc_config_params_raw
|
H A D | dm355_ccdc.h | 240 struct ccdc_a_law alaw; member in struct:ccdc_config_params_raw
|
/linux-4.4.14/drivers/media/platform/am437x/ |
H A D | am437x-vpfe.c | 412 if (!ccdcparam->alaw.enable) vpfe_ccdc_validate_param() 415 max_gamma = ccdc_gamma_width_max_bit(ccdcparam->alaw.gamma_wd); vpfe_ccdc_validate_param() 418 if (ccdcparam->alaw.gamma_wd > VPFE_CCDC_GAMMA_BITS_09_0 || vpfe_ccdc_validate_param() 419 ccdcparam->alaw.gamma_wd < VPFE_CCDC_GAMMA_BITS_15_6 || vpfe_ccdc_validate_param() 689 if (config_params->alaw.enable) { vpfe_ccdc_config_raw() 690 val = ((config_params->alaw.gamma_wd & vpfe_ccdc_config_raw() 708 config_params->alaw.enable) vpfe_ccdc_config_raw() 774 ccdc->ccdc_cfg.bayer.config_params.alaw.enable = 0; vpfe_ccdc_set_pixel_format() 778 ccdc->ccdc_cfg.bayer.config_params.alaw.enable = 1; vpfe_ccdc_set_pixel_format() 1003 ccdc->ccdc_cfg.bayer.config_params.alaw.gamma_wd = vpfe_ccdc_config_defaults()
|
/linux-4.4.14/sound/soc/codecs/ |
H A D | wm8903.c | 568 "ulaw", "alaw"
|
/linux-4.4.14/drivers/isdn/hardware/mISDN/ |
H A D | hfcmulti.c | 5086 hc->silence = 0x2a; /* alaw silence */ hfcmulti_init()
|