|
@@ -362,11 +362,8 @@ static const struct snd_soc_dapm_route nau8540_dapm_routes[] = {
|
|
|
|
|
|
static int nau8540_clock_check(struct nau8540 *nau8540, int rate, int osr)
|
|
|
{
|
|
|
- int osrate;
|
|
|
-
|
|
|
if (osr >= ARRAY_SIZE(osr_adc_sel))
|
|
|
return -EINVAL;
|
|
|
- osrate = osr_adc_sel[osr].osr;
|
|
|
|
|
|
if (rate * osr > CLK_ADC_MAX) {
|
|
|
dev_err(nau8540->dev, "exceed the maximum frequency of CLK_ADC\n");
|