Lines Matching refs:volume

546 status_t WM8962_SetModuleVolume(wm8962_handle_t *handle, wm8962_module_t module, uint32_t volume)  in WM8962_SetModuleVolume()  argument
553 if (volume > 255U) in WM8962_SetModuleVolume()
559 vol = (uint16_t)volume; in WM8962_SetModuleVolume()
563 vol = (uint16_t)(0x100U | volume); in WM8962_SetModuleVolume()
569 if (volume > 255U) in WM8962_SetModuleVolume()
575 vol = (uint16_t)volume; in WM8962_SetModuleVolume()
578 vol = 0x100U | (uint16_t)volume; in WM8962_SetModuleVolume()
584 if (volume > 0x7FU) in WM8962_SetModuleVolume()
590 vol = (uint16_t)volume; in WM8962_SetModuleVolume()
593 vol = 0x100U | (uint16_t)volume; in WM8962_SetModuleVolume()
599 if (volume > 0x3FU) in WM8962_SetModuleVolume()
605 vol = (uint16_t)volume; in WM8962_SetModuleVolume()
608 vol = 0x100U | (uint16_t)volume; in WM8962_SetModuleVolume()
614 if (volume > 0x7FU) in WM8962_SetModuleVolume()
620 vol = (uint16_t)volume; in WM8962_SetModuleVolume()
623 vol = 0x100U | (uint16_t)volume; in WM8962_SetModuleVolume()
672 … WM8962_CHECK_RET(WM8962_ReadReg(handle, WM8962_LADC, &handle->volume[kWM8962_ModuleADC]), ret); in WM8962_SetModuleMute()
673 … WM8962_CHECK_RET(WM8962_ReadReg(handle, WM8962_RADC, &handle->volume[kWM8962_ModuleADC]), ret); in WM8962_SetModuleMute()
679 vol = 0x100U | (uint16_t)handle->volume[kWM8962_ModuleADC]; in WM8962_SetModuleMute()
690 … WM8962_CHECK_RET(WM8962_ReadReg(handle, WM8962_LDAC, &handle->volume[kWM8962_ModuleDAC]), ret); in WM8962_SetModuleMute()
691 … WM8962_CHECK_RET(WM8962_ReadReg(handle, WM8962_RDAC, &handle->volume[kWM8962_ModuleDAC]), ret); in WM8962_SetModuleMute()
697 vol = 0x100U | (uint16_t)handle->volume[kWM8962_ModuleDAC]; in WM8962_SetModuleMute()
708 …WM8962_CHECK_RET(WM8962_ReadReg(handle, WM8962_LOUT1, &handle->volume[kWM8962_ModuleHeadphone]), r… in WM8962_SetModuleMute()
709 …WM8962_CHECK_RET(WM8962_ReadReg(handle, WM8962_ROUT1, &handle->volume[kWM8962_ModuleHeadphone]), r… in WM8962_SetModuleMute()
715 vol = 0x100U | (uint16_t)handle->volume[kWM8962_ModuleHeadphone]; in WM8962_SetModuleMute()
724 …WM8962_CHECK_RET(WM8962_ReadReg(handle, WM8962_LOUT2, &handle->volume[kWM8962_ModuleSpeaker]), ret… in WM8962_SetModuleMute()
725 …WM8962_CHECK_RET(WM8962_ReadReg(handle, WM8962_ROUT2, &handle->volume[kWM8962_ModuleSpeaker]), ret… in WM8962_SetModuleMute()
731 vol = 0x100U | (uint16_t)handle->volume[kWM8962_ModuleSpeaker]; in WM8962_SetModuleMute()