Searched refs:alaw (Results 1 - 20 of 20) sorted by relevance

/linux-4.4.14/drivers/isdn/mISDN/
H A Ddsp_audio.c22 /* 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 Dl1oip_codec.c61 /* alaw -> ulaw */
98 /* ulaw -> alaw */
135 /* alaw -> 4bit compression */
171 /* 4bit -> alaw decompression */
H A Ddsp_dtmf.c114 * fmt - 0 = alaw, 1 = ulaw, 2 = coefficients from HFC DTMF hw-decoder
140 case 0: /* alaw */ dsp_dtmf_goertzel_decode()
H A Ddsp.h23 * bit 0 = use ulaw instead of alaw
H A Ddsp_tones.c41 /* all tones are alaw encoded */
210 * generate ulaw from alaw samples *
H A Dl1oip_core.c1320 case 1: /* alaw */ init_card()
/linux-4.4.14/drivers/media/platform/davinci/
H A Ddm355_ccdc.c82 .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 Ddm644x_ccdc.c225 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 Dispccdc.h110 * @alaw: A-law compression enabled (1) or disabled (0)
140 unsigned int alaw:1, member in struct:isp_ccdc_device
H A Dispccdc.c616 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 Disph3a_af.c237 /* alaw */ h3a_af_set_params()
/linux-4.4.14/drivers/staging/media/omap4iss/
H A Diss_ipipeif.h44 * @alaw: A-law compression enabled (1) or disabled (0)
/linux-4.4.14/include/uapi/linux/
H A Dam437x-vpfe.h108 struct vpfe_ccdc_a_law alaw; member in struct:vpfe_ccdc_config_params_raw
/linux-4.4.14/drivers/isdn/i4l/
H A Disdn_audio.c62 /* alaw -> signed 16-bit */
99 /* alaw -> ulaw */
136 /* ulaw -> alaw */
590 * fmt = audio data format (0 = ulaw, 1 = alaw)
H A Disdn_tty.c480 /* For now, ifmt is fixed to 1 (alaw), since this isdn_tty_senddown()
/linux-4.4.14/include/media/davinci/
H A Ddm644x_ccdc.h127 struct ccdc_a_law alaw; member in struct:ccdc_config_params_raw
H A Ddm355_ccdc.h240 struct ccdc_a_law alaw; member in struct:ccdc_config_params_raw
/linux-4.4.14/drivers/media/platform/am437x/
H A Dam437x-vpfe.c412 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 Dwm8903.c568 "ulaw", "alaw"
/linux-4.4.14/drivers/isdn/hardware/mISDN/
H A Dhfcmulti.c5086 hc->silence = 0x2a; /* alaw silence */ hfcmulti_init()

Completed in 521 milliseconds