/* param handle codec handle. param channel audio codec play channel, can be a value or combine value of _codec_play_channel. param isMute true is mute, false is unmute. return kStatus_Success is success, else configure failed.  */
status_t HAL_CODEC_CS42448_SetMute(void *handle, uint32_t playChannel, bool isMute)
/* param handle codec handle. param channel audio codec play channel, can be a value or combine value of _codec_play_channel. param isMute true is mute, false is unmute. return kStatus_Success is success, else configure failed.  */
status_t HAL_CODEC_CS42448_SetMute(void *handle, uint32_t playChannel, bool isMute)
{
    assert(handle != NULL);
    uint8_t i    = 0U;
    status_t ret = kStatus_Success;
    for (i = 0U; i < (uint8_t)kCS42448_AOUT8; i++)
    {
        if ((playChannel & (1UL << i)) == 0U)
        {
            continue;
        }
        ret = CS42448_SetChannelMute((cs42448_handle_t *)((uint32_t)(((codec_handle_t *)handle)->codecDevHandle)),
                                     (uint8_t)(i + 1U), isMute);
        if (ret != kStatus_Success)
        {
            return ret;
        }
    }
    return kStatus_Success;
}