• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ BRCM_WRITE_REG函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中BRCM_WRITE_REG函数的典型用法代码示例。如果您正苦于以下问题:C++ BRCM_WRITE_REG函数的具体用法?C++ BRCM_WRITE_REG怎么用?C++ BRCM_WRITE_REG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了BRCM_WRITE_REG函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: chal_audio_earpath_enable

//============================================================================
//
// Function Name: cVoid chal_audio_earpath_enable(CHAL_HANDLE handle, cUInt16 enable)
//
// Description:  Enable or Disable earpiece path
//
// Parameters:   handle - audio chal handle.
//                 enable - true : enable, false : disable.
// Return:       None.
//
//============================================================================
cVoid chal_audio_earpath_enable(CHAL_HANDLE handle, cUInt16 enable)
{
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;
    cUInt32 reg_val;
    cUInt32 Channl_Ctrl = 0x00000000;

    if(enable == CHAL_AUDIO_ENABLE)
    {
        Channl_Ctrl |= AUDIOH_DAC_CTL_VOUT_ENABLE_MASK;
    }
    else
    {
        Channl_Ctrl &= ~AUDIOH_DAC_CTL_VOUT_ENABLE_MASK;
    }

    reg_val = BRCM_READ_REG(base, AUDIOH_DAC_CTL);
    reg_val &= ~(AUDIOH_DAC_CTL_VOUT_ENABLE_MASK);
    reg_val |= Channl_Ctrl;


    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_DAC_CTL, reg_val);

    return;
}
开发者ID:Ashutos97,项目名称:GT-S5360-opensource-Update-2,代码行数:36,代码来源:chal_vout.c


示例2: chal_audio_vinpath_set_cic_scale

//function parameters changed
void chal_audio_vinpath_set_cic_scale(CHAL_HANDLE handle,
			cUInt32 dmic1_coarse_scale,
			cUInt32 dmic1_fine_scale,
			cUInt32 dmic2_coarse_scale,
			cUInt32 dmic2_fine_scale)

{
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;
    cUInt32 value = 0;

    // Read VIN path FIFO status
	value = BRCM_READ_REG(base, AUDIOH_VIN_FILTER_CTRL);

    value &= ~(AUDIOH_VIN_FILTER_CTRL_DMIC1_CIC_BIT_SEL_MASK|AUDIOH_VIN_FILTER_CTRL_DMIC1_CIC_FINE_SCL_MASK|AUDIOH_VIN_FILTER_CTRL_DMIC2_CIC_BIT_SEL_MASK|AUDIOH_VIN_FILTER_CTRL_DMIC2_CIC_FINE_SCL_MASK);
    dmic1_coarse_scale <<= (AUDIOH_VIN_FILTER_CTRL_DMIC1_CIC_BIT_SEL_SHIFT);
    dmic1_fine_scale <<= (AUDIOH_VIN_FILTER_CTRL_DMIC1_CIC_FINE_SCL_SHIFT);
    dmic2_coarse_scale <<= (AUDIOH_VIN_FILTER_CTRL_DMIC2_CIC_BIT_SEL_SHIFT);
    dmic2_fine_scale <<= (AUDIOH_VIN_FILTER_CTRL_DMIC2_CIC_FINE_SCL_SHIFT);
    value |= (dmic1_coarse_scale|dmic1_fine_scale|dmic2_coarse_scale|dmic2_fine_scale);

    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_VIN_FILTER_CTRL, value);

    return;
}
开发者ID:ASAZING,项目名称:Android-Kernel-Gt-s7390l,代码行数:26,代码来源:chal_vin.c


示例3: chal_audio_dac_loopback_enable

/**
*
* Description:  Enable or Disable dac loopback
*
* Parameters:   handle - audio chal handle.
*               enable - true : enable, false : disable.
*
* Return:       None.
*
*****************************************************************************/
cVoid chal_audio_dac_loopback_enable(CHAL_HANDLE handle, cUInt16 enable)
{
	cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;
	cUInt32 reg_val;

	reg_val = BRCM_READ_REG(base, AUDIOH_LOOPBACK_CTRL);
	if(enable == CHAL_AUDIO_ENABLE) {
		reg_val |= AUDIOH_LOOPBACK_CTRL_ENABLE_DIG_TX_CLK_MASK;
		reg_val |= AUDIOH_LOOPBACK_CTRL_DISABLE_ANA_TX_CLK_MASK;
		reg_val |= AUDIOH_LOOPBACK_CTRL_DISABLE_ANA_RX_CLK_MASK;
		reg_val |= AUDIOH_LOOPBACK_CTRL_DAC_SDM_LOOPBACK_9LEVEL_MASK;
		reg_val |= AUDIOH_LOOPBACK_CTRL_DAC_SDM_LOOPBACK_EN_MASK;
		reg_val &= ~AUDIOH_LOOPBACK_CTRL_LOOPBACK_EN_MASK;
	} else {
		reg_val  &= ~(AUDIOH_LOOPBACK_CTRL_ENABLE_DIG_TX_CLK_MASK |
		AUDIOH_LOOPBACK_CTRL_DISABLE_ANA_TX_CLK_MASK |
		AUDIOH_LOOPBACK_CTRL_DISABLE_ANA_RX_CLK_MASK |
		AUDIOH_LOOPBACK_CTRL_DAC_SDM_LOOPBACK_9LEVEL_MASK|
		AUDIOH_LOOPBACK_CTRL_DAC_SDM_LOOPBACK_EN_MASK);
	}

	/* Set the required setting */
	BRCM_WRITE_REG(base,  AUDIOH_LOOPBACK_CTRL, reg_val);

	return;
}
开发者ID:emreharbutoglu,项目名称:i9105Sammy,代码行数:36,代码来源:chal_analogtest.c


示例4: chal_audio_api_set_dac_attenuation

void chal_audio_api_set_dac_attenuation(CHAL_HANDLE handle, cUInt32 dac_mask, cUInt16 enable)
{
    cUInt32     reg_val;
    cUInt32     reg_dac_mask = 0x00000000;
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;


    /* Enable/Disable the API attenuation for the DAC Paths.*/
    if(dac_mask& (CHAL_AUDIO_PATH_HEADSET_LEFT|CHAL_AUDIO_PATH_HEADSET_RIGHT))
    {
        reg_dac_mask |= AUDIOH_AUDIO_API_STEREO_API_ATT_MASK;
    }

    if(dac_mask&CHAL_AUDIO_PATH_IHF_LEFT)
    {
        reg_dac_mask |= AUDIOH_AUDIO_API_IHF_API_ATT_MASK;
    }

    if(dac_mask&CHAL_AUDIO_PATH_EARPIECE)
    {
        reg_dac_mask |= AUDIOH_AUDIO_API_VOUT_API_ATT_MASK;
    }

    reg_val = BRCM_READ_REG(base, AUDIOH_AUDIO_API);
    reg_val &= (~reg_dac_mask);
    if(enable == CHAL_AUDIO_ENABLE)
    {
        reg_val |= (reg_dac_mask);
    }
    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_AUDIO_API, reg_val);

    return;
}
开发者ID:emreharbutoglu,项目名称:i9105Sammy,代码行数:34,代码来源:chal_analogtest.c


示例5: chal_audio_vibra_int_enable

//============================================================================
//
// Function Name: cVoid chal_audio_vibra_int_enable(CHAL_HANDLE handle, cUInt16 thr_int_enable, cUInt16 err_int_enable )
//
// Description:  Enable or Disable vibra path interrupt
//
// Parameters:   handle      - audio chal handle.
//                 int_enable  - true : enable interrupt, false : disable interrupt.
// Return:       None.
//
//============================================================================
cVoid chal_audio_vibra_int_enable(CHAL_HANDLE handle, cUInt16 thr_int_enable, cUInt16 err_int_enable  )
{
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;
    cUInt32 reg_val;

    reg_val = BRCM_READ_REG(base, AUDIOH_AUDIO_INTC);

    if(thr_int_enable == CHAL_AUDIO_ENABLE)
    {
        reg_val |= AUDIOH_AUDIO_INTC_VIBRA_INTEN_MASK;
    }
    else
    {
        reg_val &= ~AUDIOH_AUDIO_INTC_VIBRA_INTEN_MASK;
    }

    if(err_int_enable == CHAL_AUDIO_ENABLE)
    {
        reg_val |= AUDIOH_AUDIO_INTC_VIBRA_FIFO_ERRINT_EN_MASK;
    }
    else
    {
        reg_val &= ~AUDIOH_AUDIO_INTC_VIBRA_FIFO_ERRINT_EN_MASK;
    }

    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_AUDIO_INTC, reg_val);

    return;
}
开发者ID:Ashutos97,项目名称:GT-S5360-opensource-Update-2,代码行数:41,代码来源:chal_vibra.c


示例6: chal_audio_stpath_int_enable

/*============================================================================
*
* Function Name: cVoid chal_audio_stpath_int_enable(CHAL_HANDLE handle,
*                            cUInt16 thr_int_enable, cUInt16 err_int_enable )
*
* Description:  Enable interrupt on voice out path
*
* Parameters:   handle      : the sidetone feedback  pathhandle.
*                 enable      : enable flag
*
* Return:       None.
*
*============================================================================*/
cVoid chal_audio_stpath_int_enable(CHAL_HANDLE handle, cUInt16 thr_int_enable,
				   cUInt16 err_int_enable)
{
	cUInt32 base = ((ChalAudioCtrlBlk_t *) handle)->sdt_base;
	cUInt32 reg_val;

	reg_val = BRCM_READ_REG(base, SDT_SDT_CTRL_3);

	if (thr_int_enable == CHAL_AUDIO_ENABLE)
		reg_val |= SDT_SDT_CTRL_3_INTR_EN_MASK;
	else
		reg_val &= ~SDT_SDT_CTRL_3_INTR_EN_MASK;


	if (err_int_enable == CHAL_AUDIO_ENABLE)
		reg_val |= SDT_SDT_CTRL_3_ERR_INTR_EN_MASK;
	else
		reg_val &= ~SDT_SDT_CTRL_3_ERR_INTR_EN_MASK;


	/* Set the required setting */
	BRCM_WRITE_REG(base, SDT_SDT_CTRL_3, reg_val);

	return;
}
开发者ID:faizauthar12,项目名称:Hyper_kernel,代码行数:38,代码来源:chal_caph_audioh_sidetone.c


示例7: chal_audio_hspath_sdm_enable_dither

cVoid chal_audio_hspath_sdm_enable_dither(CHAL_HANDLE handle, cUInt16 enable)
{
	cUInt32 reg_val;
	cUInt32 hs_dither_enable = 0x00000000;
	cUInt32 base = ((ChalAudioCtrlBlk_t *) handle)->audioh_base;

	if (enable & CHAL_AUDIO_CHANNEL_LEFT) {
		hs_dither_enable |=
		    AUDIOH_SDM_DITHER_CTL_STEREO_DITHER_EN_L_MASK;
	}

	if (enable & CHAL_AUDIO_CHANNEL_RIGHT) {
		hs_dither_enable |=
		    AUDIOH_SDM_DITHER_CTL_STEREO_DITHER_EN_R_MASK;
	}

	reg_val = BRCM_READ_REG(base, AUDIOH_SDM_DITHER_CTL);

	reg_val &= ~AUDIOH_SDM_DITHER_CTL_STEREO_DITHER_EN_L_MASK;
	reg_val &= ~AUDIOH_SDM_DITHER_CTL_STEREO_DITHER_EN_R_MASK;

	reg_val |= hs_dither_enable;

	BRCM_WRITE_REG(base, AUDIOH_SDM_DITHER_CTL, reg_val);

	return;
}
开发者ID:ASAZING,项目名称:Android-Kernel-Gt-s7390l,代码行数:27,代码来源:chal_caph_audioh_hs.c


示例8: chal_audio_nvinpath_set_filter

/*============================================================================*/
void chal_audio_nvinpath_set_filter(CHAL_HANDLE handle, cUInt16 filter)
{
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;
    cUInt32 reg_val;


    reg_val = BRCM_READ_REG(base, AUDIOH_MIN_PHASE);
	/*reg_val &= ~(AUDIOH_MIN_PHASE_DMIC3_MIN_PHASE_MASK |
	AUDIOH_MIN_PHASE_DMIC4_MIN_PHASE_MASK);*/

    if(filter & CHAL_AUDIO_MINIMUM_PHASE_FILTER)
    {
        reg_val |= AUDIOH_MIN_PHASE_DMIC3_MIN_PHASE_MASK;
    }

    if(filter & CHAL_AUDIO_MINIMUM_PHASE_FILTER_L)
    {
        reg_val |= AUDIOH_MIN_PHASE_DMIC4_MIN_PHASE_MASK;
    }

    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_MIN_PHASE, reg_val);

    return;
}
开发者ID:ASAZING,项目名称:Android-Kernel-Gt-s7390l,代码行数:26,代码来源:chal_nvin.c


示例9: chal_audio_nvinpath_select_sidetone

void chal_audio_nvinpath_select_sidetone (CHAL_HANDLE handle, cUInt16 read_sidetone)
{
    cUInt32     reg_val;
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;

    /*Read the current contents*/
    reg_val = BRCM_READ_REG(base, AUDIOH_NVIN_FIFO_CTRL);

    /* Clear the paths that were enabled before*/
    reg_val &= ~AUDIOH_NVIN_FIFO_CTRL_SIDETONE_SEL_L_MASK;
    reg_val &= ~AUDIOH_NVIN_FIFO_CTRL_SIDETONE_SEL_R_MASK;

    if(read_sidetone&CHAL_AUDIO_CHANNEL_LEFT)
    {
        /* Enable Left Channel to read side tone data*/
        reg_val |= AUDIOH_NVIN_FIFO_CTRL_SIDETONE_SEL_L_MASK;
    }

    if(read_sidetone&CHAL_AUDIO_CHANNEL_RIGHT)
    {
        /* Enable Right Channel to read side tone data*/
        reg_val |= AUDIOH_NVIN_FIFO_CTRL_SIDETONE_SEL_R_MASK;
    }

    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_NVIN_FIFO_CTRL, reg_val);

    return;
}
开发者ID:ASAZING,项目名称:Android-Kernel-Gt-s7390l,代码行数:29,代码来源:chal_nvin.c


示例10: chal_audio_ihfpath_enable

//============================================================================
cVoid chal_audio_ihfpath_enable(CHAL_HANDLE handle, cUInt16 enable_chan)
{
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;
    cUInt32 reg_val;
    cUInt32 Channl_Ctrl = 0x00000000;


    if(enable_chan&CHAL_AUDIO_CHANNEL_LEFT)
    {
       Channl_Ctrl |= AUDIOH_DAC_CTL_IHF_L_ENABLE_MASK;
    }

    if(enable_chan&CHAL_AUDIO_CHANNEL_RIGHT)
    {
       Channl_Ctrl |= AUDIOH_DAC_CTL_IHF_R_ENABLE_MASK;
    }

    reg_val = BRCM_READ_REG(base, AUDIOH_DAC_CTL);
    reg_val &= ~(AUDIOH_DAC_CTL_IHF_L_ENABLE_MASK | AUDIOH_DAC_CTL_IHF_R_ENABLE_MASK);
    reg_val |= Channl_Ctrl;


    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_DAC_CTL, reg_val);

    return;
}
开发者ID:Astinj,项目名称:Kernel_GT-S5830C,代码行数:28,代码来源:chal_ihf.c


示例11: chal_audio_vinpath_clr_fifo

void chal_audio_vinpath_clr_fifo(CHAL_HANDLE handle)
{
    cUInt32     reg_val;
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;

    reg_val = BRCM_READ_REG(base, AUDIOH_VIN_FIFO_CTRL);
    reg_val |= AUDIOH_VIN_FIFO_CTRL_VIN_FIFO_CLEAR_MASK;
    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_VIN_FIFO_CTRL, reg_val);

    reg_val &= ~AUDIOH_VIN_FIFO_CTRL_VIN_FIFO_CLEAR_MASK;
    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_VIN_FIFO_CTRL, reg_val);

    return;
}
开发者ID:ASAZING,项目名称:Android-Kernel-Gt-s7390l,代码行数:16,代码来源:chal_vin.c


示例12: chal_audio_int_clear

void chal_audio_int_clear(CHAL_HANDLE handle, cUInt32 reg_val)
{
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;

    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_AUDIO_INT_STATUS, reg_val);
}
开发者ID:TheNikiz,项目名称:android_kernel_samsung_hawaii,代码行数:7,代码来源:chal_audio.c


示例13: chal_audio_ihfpath_sdm_enable_dither_gain

cVoid chal_audio_ihfpath_sdm_enable_dither_gain(CHAL_HANDLE handle,
                                   cUInt16 gain_enable)
{
    cUInt32 reg_val;
    cUInt32 hs_dither_gain = 0x00000000;
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;

    if(gain_enable&CHAL_AUDIO_CHANNEL_LEFT)
    {
        hs_dither_gain |= AUDIOH_SDM_DITHER_CTL_IHF_DITHER_NOISE_GAIN_L_MASK;
    }

    if(gain_enable&CHAL_AUDIO_CHANNEL_RIGHT)
    {
        hs_dither_gain |= AUDIOH_SDM_DITHER_CTL_IHF_DITHER_NOISE_GAIN_R_MASK;
    }

    reg_val = BRCM_READ_REG(base, AUDIOH_SDM_DITHER_CTL);

    reg_val &= ~AUDIOH_SDM_DITHER_CTL_IHF_DITHER_NOISE_GAIN_L_MASK;
    reg_val &= ~AUDIOH_SDM_DITHER_CTL_IHF_DITHER_NOISE_GAIN_R_MASK;

    reg_val |= hs_dither_gain;

    BRCM_WRITE_REG(base, AUDIOH_SDM_DITHER_CTL, reg_val);

    return;
}
开发者ID:Astinj,项目名称:Kernel_GT-S5830C,代码行数:28,代码来源:chal_ihf.c


示例14: chal_caph_switch_disable_clock

/****************************************************************************
*
*  Function Name: void chal_caph_switch_disable_clock(CHAL_HANDLE handle)
*
*  Description: CAPH ASW disable clock
*  - set M0_RATIO=0
*  - wait a 3 CK26MHz clocks (CK96KHZ_en should never go high again)
*  - set SSASW_NOC_EN=0
*  - could also set M0_RATIO value here
****************************************************************************/
void chal_caph_switch_disable_clock(CHAL_HANDLE handle)
{
    cUInt32     base = ((chal_caph_switch_cb_t*)handle)->base;
	cUInt32 reg_val, loop;

	reg_val = BRCM_READ_REG(base, CPH_SSASW_SSASW_MN0_DIVIDER);
	reg_val &= ~CPH_SSASW_SSASW_MN0_DIVIDER_M0_RATIO_MASK;
	BRCM_WRITE_REG(base, CPH_SSASW_SSASW_MN0_DIVIDER, reg_val);
	for (loop = 5; loop != 0; loop--)
    reg_val = BRCM_READ_REG( base,  CPH_SSASW_SSASW_NOC);
	reg_val = BRCM_READ_REG(base, CPH_SSASW_SSASW_NOC);
    reg_val &= ~(CPH_SSASW_SSASW_NOC_SSASW_NOC_EN_MASK);
    BRCM_WRITE_REG( base,  CPH_SSASW_SSASW_NOC,reg_val);

    return;
}
开发者ID:ASAZING,项目名称:Android-Kernel-Gt-s7390l,代码行数:26,代码来源:chal_caph_switch.c


示例15: chal_audio_hspath_sdm_set_dither_strength

cVoid chal_audio_hspath_sdm_set_dither_strength(CHAL_HANDLE handle,
						cUInt16 dither_streng_L,
						cUInt16 dither_streng_R)
{
	cUInt32 reg_val;
	cUInt32 hs_dither_strngth = 0x00000000;
	cUInt32 base = ((ChalAudioCtrlBlk_t *) handle)->audioh_base;

	hs_dither_strngth |=
	    (dither_streng_L & (CHAL_AUDIO_DITHER_STRENGTH_MASK)) <<
	    AUDIOH_SDM_DITHER_CTL_STEREO_DITHER_STRENGTH_L_SHIFT;
	hs_dither_strngth |=
	    (dither_streng_R & (CHAL_AUDIO_DITHER_STRENGTH_MASK)) <<
	    AUDIOH_SDM_DITHER_CTL_STEREO_DITHER_STRENGTH_R_SHIFT;

	reg_val = BRCM_READ_REG(base, AUDIOH_SDM_DITHER_CTL);

	reg_val &= ~(AUDIOH_SDM_DITHER_CTL_STEREO_DITHER_STRENGTH_L_MASK);
	reg_val &= ~(AUDIOH_SDM_DITHER_CTL_STEREO_DITHER_STRENGTH_R_MASK);

	reg_val |= hs_dither_strngth;
	BRCM_WRITE_REG(base, AUDIOH_SDM_DITHER_CTL, reg_val);

	return;
}
开发者ID:ASAZING,项目名称:Android-Kernel-Gt-s7390l,代码行数:25,代码来源:chal_caph_audioh_hs.c


示例16: chal_audio_ihfpath_sdm_enable_dither

void chal_audio_ihfpath_sdm_enable_dither(CHAL_HANDLE handle,
                                   uint16_t enable)
{
    uint32_t reg_val;
    uint32_t hs_dither_enable = 0x00000000;
    uint32_t base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;


    if(enable&CHAL_AUDIO_CHANNEL_LEFT)
    {
        hs_dither_enable |= AUDIOH_SDM_DITHER_CTL_IHF_DITHER_EN_L_MASK;
    }

    if(enable&CHAL_AUDIO_CHANNEL_RIGHT)
    {
        hs_dither_enable |= AUDIOH_SDM_DITHER_CTL_IHF_DITHER_EN_R_MASK;
    }

    reg_val = BRCM_READ_REG( base, AUDIOH_SDM_DITHER_CTL);

    reg_val &= ~AUDIOH_SDM_DITHER_CTL_IHF_DITHER_EN_L_MASK;
    reg_val &= ~AUDIOH_SDM_DITHER_CTL_IHF_DITHER_EN_R_MASK;

    reg_val |= hs_dither_enable;

    BRCM_WRITE_REG( base, AUDIOH_SDM_DITHER_CTL, reg_val);

    return;
}
开发者ID:CVlaspoel,项目名称:VSMC-i9105p,代码行数:29,代码来源:chal_ihf.c


示例17: chal_audio_stpath_clr_fifo

cVoid chal_audio_stpath_clr_fifo(CHAL_HANDLE handle)
{
	cUInt32 reg_val;
	cUInt32 base = ((ChalAudioCtrlBlk_t *) handle)->sdt_base;

	reg_val = BRCM_READ_REG(base, SDT_SDT_CTRL_3);
	reg_val |= SDT_SDT_CTRL_3_FIFO_RESET_MASK;
	/* Set the required setting */
	BRCM_WRITE_REG(base, SDT_SDT_CTRL_3, reg_val);

	reg_val &= ~SDT_SDT_CTRL_3_FIFO_RESET_MASK;
	/* Set the required setting */
	BRCM_WRITE_REG(base, SDT_SDT_CTRL_3, reg_val);

	return;
}
开发者ID:faizauthar12,项目名称:Hyper_kernel,代码行数:16,代码来源:chal_caph_audioh_sidetone.c


示例18: chal_audio_ihfpath_int_enable

void chal_audio_ihfpath_int_enable(CHAL_HANDLE handle, uint16_t thr_int_enable, uint16_t err_int_enable )
{
        uint32_t base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;
    uint32_t reg_val;

    reg_val = BRCM_READ_REG(base, AUDIOH_AUDIO_INTC);

    if(thr_int_enable == CHAL_AUDIO_ENABLE)
    {
        reg_val |= AUDIOH_AUDIO_INTC_IHF_INTEN_MASK;
    }
    else
    {
        reg_val &= ~AUDIOH_AUDIO_INTC_IHF_INTEN_MASK;
    }

    if(err_int_enable == CHAL_AUDIO_ENABLE)
    {
        reg_val |= AUDIOH_AUDIO_INTC_IHF_FIFO_ERRINT_EN_MASK;
    }
    else
    {
        reg_val &= ~AUDIOH_AUDIO_INTC_IHF_FIFO_ERRINT_EN_MASK;
    }

    /* Set the required setting */
    BRCM_WRITE_REG(base,  AUDIOH_AUDIO_INTC, reg_val);

    return;
}
开发者ID:CVlaspoel,项目名称:VSMC-i9105p,代码行数:30,代码来源:chal_ihf.c


示例19: chal_audio_earpath_sdm_set_coef

cVoid chal_audio_earpath_sdm_set_coef(CHAL_HANDLE handle, cUInt32 *SDM_coef )
{
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;

    BRCM_WRITE_REG(base,  AUDIOH_VOUT_SDM_COEF, *SDM_coef);

    return;
}
开发者ID:Ashutos97,项目名称:GT-S5360-opensource-Update-2,代码行数:8,代码来源:chal_vout.c


示例20: chal_audio_earpath_sdm_set_dither_seed

cVoid chal_audio_earpath_sdm_set_dither_seed(CHAL_HANDLE handle, cUInt32 vout_dither_seed)
{
    cUInt32 base =    ((ChalAudioCtrlBlk_t*)handle)->audioh_base;

    BRCM_WRITE_REG(base,  AUDIOH_VOUT_DITHER_SEED, vout_dither_seed);

    return;
}
开发者ID:Ashutos97,项目名称:GT-S5360-opensource-Update-2,代码行数:8,代码来源:chal_vout.c



注:本文中的BRCM_WRITE_REG函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ BRDATA函数代码示例发布时间:2022-05-30
下一篇:
C++ BRCM_READ_REG函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap