|
@@ -226,6 +226,12 @@ static int fsl_esai_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
|
|
unsigned long clk_rate;
|
|
unsigned long clk_rate;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
+ if (freq == 0) {
|
|
|
|
+ dev_err(dai->dev, "%sput freq of HCK%c should not be 0Hz\n",
|
|
|
|
+ in ? "in" : "out", tx ? 'T' : 'R');
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
/* Bypass divider settings if the requirement doesn't change */
|
|
/* Bypass divider settings if the requirement doesn't change */
|
|
if (freq == esai_priv->hck_rate[tx] && dir == esai_priv->hck_dir[tx])
|
|
if (freq == esai_priv->hck_rate[tx] && dir == esai_priv->hck_dir[tx])
|
|
return 0;
|
|
return 0;
|