/* The goal and function of the following code is to support the two clock rates used by the audio subsystem, allowing for proper audio playback and capture without any pitch or speed changes.  */
bool ccu_sdm_helper_has_rate(struct ccu_common *common, struct ccu_sdm_internal *sdm, unsigned long rate)
/* The goal and function of the following code is to support the two clock rates used by the audio subsystem, allowing for proper audio playback and capture without any pitch or speed changes.  */
bool ccu_sdm_helper_has_rate(struct ccu_common *common, struct ccu_sdm_internal *sdm, unsigned long rate)
{
    unsigned int i;
    if (!(common->features & CCU_FEATURE_SIGMA_DELTA_MOD))
    {
        return false;
    }
    for (i = 0; i < sdm->table_size; i++)
        if (sdm->table[i].rate == rate)
        {
            return true;
        }
    return false;
}