Lines Matching +full:charge +full:- +full:pump +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
3 // nau8821.c -- Nuvoton NAU88L21 audio codec driver
7 // Co-author: Seven Lee <wtli@nuvoton.com>
33 static int quirk_override = -1;
35 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
286 struct soc_bytes_ext *params = (void *)kcontrol->private_value; in nau8821_biq_coeff_get()
288 if (!component->regmap) in nau8821_biq_coeff_get()
289 return -EINVAL; in nau8821_biq_coeff_get()
291 return regmap_raw_read(component->regmap, NAU8821_R21_BIQ0_COF1, in nau8821_biq_coeff_get()
292 ucontrol->value.bytes.data, params->max); in nau8821_biq_coeff_get()
299 struct soc_bytes_ext *params = (void *)kcontrol->private_value; in nau8821_biq_coeff_put()
303 if (!component->regmap) in nau8821_biq_coeff_put()
304 return -EINVAL; in nau8821_biq_coeff_put()
306 data = kmemdup(ucontrol->value.bytes.data, in nau8821_biq_coeff_put()
307 params->max, GFP_KERNEL | GFP_DMA); in nau8821_biq_coeff_put()
309 return -ENOMEM; in nau8821_biq_coeff_put()
311 ret = regmap_raw_write(component->regmap, NAU8821_R21_BIQ0_COF1, in nau8821_biq_coeff_put()
312 data, params->max); in nau8821_biq_coeff_put()
411 static const DECLARE_TLV_DB_MINMAX_MUTE(adc_vol_tlv, -6600, 2400);
412 static const DECLARE_TLV_DB_MINMAX_MUTE(sidetone_vol_tlv, -4200, 0);
413 static const DECLARE_TLV_DB_MINMAX(hp_vol_tlv, -900, 0);
414 static const DECLARE_TLV_DB_SCALE(playback_vol_tlv, -6600, 50, 1);
415 static const DECLARE_TLV_DB_MINMAX(fepga_gain_tlv, -100, 3600);
416 static const DECLARE_TLV_DB_MINMAX_MUTE(crosstalk_vol_tlv, -7000, 2400);
417 static const DECLARE_TLV_DB_MINMAX(drc_knee4_tlv, -9800, -3500);
418 static const DECLARE_TLV_DB_MINMAX(drc_knee3_tlv, -8100, -1800);
470 snd_soc_dapm_to_component(w->dapm); in dmic_clock_control()
472 int i, speed_selection = -1, clk_adc_src, clk_adc; in dmic_clock_control()
477 * less than nau8821->dmic_clk_threshold. in dmic_clock_control()
479 regmap_read(nau8821->regmap, NAU8821_R03_CLK_DIVIDER, in dmic_clock_control()
483 clk_adc = (nau8821->fs * 256) >> clk_adc_src; in dmic_clock_control()
487 nau8821->dmic_clk_threshold) { in dmic_clock_control()
492 return -EINVAL; in dmic_clock_control()
494 dev_dbg(nau8821->dev, in dmic_clock_control()
496 clk_adc, nau8821->dmic_clk_threshold, in dmic_clock_control()
498 regmap_update_bits(nau8821->regmap, NAU8821_R13_DMIC_CTRL, in dmic_clock_control()
509 snd_soc_dapm_to_component(w->dapm); in nau8821_left_adc_event()
514 msleep(nau8821->adc_delay); in nau8821_left_adc_event()
519 return -EINVAL; in nau8821_left_adc_event()
529 snd_soc_dapm_to_component(w->dapm); in nau8821_right_adc_event()
534 msleep(nau8821->adc_delay); in nau8821_right_adc_event()
539 return -EINVAL; in nau8821_right_adc_event()
549 snd_soc_dapm_to_component(w->dapm); in nau8821_pump_event()
555 /* Prevent startup click by letting charge pump to ramp up */ in nau8821_pump_event()
557 regmap_update_bits(nau8821->regmap, NAU8821_R80_CHARGE_PUMP, in nau8821_pump_event()
561 regmap_update_bits(nau8821->regmap, NAU8821_R80_CHARGE_PUMP, in nau8821_pump_event()
565 return -EINVAL; in nau8821_pump_event()
575 snd_soc_dapm_to_component(w->dapm); in nau8821_output_dac_event()
581 regmap_update_bits(nau8821->regmap, NAU8821_R66_BIAS_ADJ, in nau8821_output_dac_event()
585 regmap_update_bits(nau8821->regmap, NAU8821_R66_BIAS_ADJ, in nau8821_output_dac_event()
589 return -EINVAL; in nau8821_output_dac_event()
599 snd_soc_dapm_to_component(w->dapm); in system_clock_control()
603 dev_dbg(nau8821->dev, "system clock control : POWER OFF\n"); in system_clock_control()
609 if (nau8821_is_jack_inserted(nau8821->regmap)) { in system_clock_control()
622 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in nau8821_left_fepga_event()
625 if (!nau8821->left_input_single_end) in nau8821_left_fepga_event()
630 regmap_update_bits(nau8821->regmap, NAU8821_R77_FEPGA, in nau8821_left_fepga_event()
633 regmap_update_bits(nau8821->regmap, NAU8821_R76_BOOST, in nau8821_left_fepga_event()
637 regmap_update_bits(nau8821->regmap, NAU8821_R77_FEPGA, in nau8821_left_fepga_event()
639 regmap_update_bits(nau8821->regmap, NAU8821_R76_BOOST, in nau8821_left_fepga_event()
660 /* single-ended design only on the left */
694 SND_SOC_DAPM_PGA_S("Charge Pump", 1, NAU8821_R80_CHARGE_PUMP,
724 /* HPOL/R are ungrounded by disabling 16 Ohm pull-downs on playback */
774 {"Charge Pump", NULL, "HP amp L"},
775 {"Charge Pump", NULL, "HP amp R"},
777 {"ADACL", NULL, "Charge Pump"},
778 {"ADACR", NULL, "Charge Pump"},
807 regmap_read(nau8821->regmap, NAU8821_R2C_DAC_CTRL1, &osr); in nau8821_get_osr()
813 regmap_read(nau8821->regmap, NAU8821_R2B_ADC_RATE, &osr); in nau8821_get_osr()
824 struct snd_soc_component *component = dai->component; in nau8821_dai_startup()
828 osr = nau8821_get_osr(nau8821, substream->stream); in nau8821_dai_startup()
829 if (!osr || !osr->osr) in nau8821_dai_startup()
830 return -EINVAL; in nau8821_dai_startup()
832 return snd_pcm_hw_constraint_minmax(substream->runtime, in nau8821_dai_startup()
834 0, CLK_DA_AD_MAX / osr->osr); in nau8821_dai_startup()
840 struct snd_soc_component *component = dai->component; in nau8821_hw_params()
845 nau8821->fs = params_rate(params); in nau8821_hw_params()
852 osr = nau8821_get_osr(nau8821, substream->stream); in nau8821_hw_params()
853 if (!osr || !osr->osr) in nau8821_hw_params()
854 return -EINVAL; in nau8821_hw_params()
855 if (nau8821->fs * osr->osr > CLK_DA_AD_MAX) in nau8821_hw_params()
856 return -EINVAL; in nau8821_hw_params()
857 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in nau8821_hw_params()
858 regmap_update_bits(nau8821->regmap, NAU8821_R03_CLK_DIVIDER, in nau8821_hw_params()
860 osr->clk_src << NAU8821_CLK_DAC_SRC_SFT); in nau8821_hw_params()
862 regmap_update_bits(nau8821->regmap, NAU8821_R03_CLK_DIVIDER, in nau8821_hw_params()
864 osr->clk_src << NAU8821_CLK_ADC_SRC_SFT); in nau8821_hw_params()
867 regmap_read(nau8821->regmap, NAU8821_R1D_I2S_PCM_CTRL2, &ctrl_val); in nau8821_hw_params()
870 bclk_fs = snd_soc_params_to_bclk(params) / nau8821->fs; in nau8821_hw_params()
878 return -EINVAL; in nau8821_hw_params()
880 regmap_update_bits(nau8821->regmap, NAU8821_R1D_I2S_PCM_CTRL2, in nau8821_hw_params()
899 return -EINVAL; in nau8821_hw_params()
902 regmap_update_bits(nau8821->regmap, NAU8821_R1C_I2S_PCM_CTRL1, in nau8821_hw_params()
910 struct snd_soc_component *component = codec_dai->component; in nau8821_set_dai_fmt()
921 return -EINVAL; in nau8821_set_dai_fmt()
931 return -EINVAL; in nau8821_set_dai_fmt()
952 return -EINVAL; in nau8821_set_dai_fmt()
955 regmap_update_bits(nau8821->regmap, NAU8821_R1C_I2S_PCM_CTRL1, in nau8821_set_dai_fmt()
958 regmap_update_bits(nau8821->regmap, NAU8821_R1D_I2S_PCM_CTRL2, in nau8821_set_dai_fmt()
967 struct snd_soc_component *component = dai->component; in nau8821_digital_mute()
974 return regmap_update_bits(nau8821->regmap, in nau8821_digital_mute()
1048 struct snd_soc_dapm_context *dapm = nau8821->dapm; in nau8821_eject_jack()
1049 struct regmap *regmap = nau8821->regmap; in nau8821_eject_jack()
1078 /* Bypass de-bounce circuit */ in nau8821_eject_jack()
1082 /* Close clock for jack type detection at manual mode */ in nau8821_eject_jack()
1083 if (dapm->bias_level < SND_SOC_BIAS_PREPARE) in nau8821_eject_jack()
1089 if (nau8821->key_enable) { in nau8821_eject_jack()
1108 struct snd_soc_dapm_context *dapm = nau8821->dapm; in nau8821_jdet_work()
1110 struct regmap *regmap = nau8821->regmap; in nau8821_jdet_work()
1116 dev_dbg(nau8821->dev, "Headset connected\n"); in nau8821_jdet_work()
1127 if (nau8821->key_enable) { in nau8821_jdet_work()
1137 snd_soc_dapm_sync(nau8821->dapm); in nau8821_jdet_work()
1140 dev_dbg(nau8821->dev, "Headphone connected\n"); in nau8821_jdet_work()
1147 snd_soc_jack_report(nau8821->jack, event, event_mask); in nau8821_jdet_work()
1153 struct regmap *regmap = nau8821->regmap; in nau8821_setup_inserted_irq()
1165 if (nau8821->dapm->bias_level < SND_SOC_BIAS_PREPARE) in nau8821_setup_inserted_irq()
1170 * master mode on then off enables us to generate that FSCLK cycle in nau8821_setup_inserted_irq()
1178 /* Do not bypass de-bounce circuit */ in nau8821_setup_inserted_irq()
1193 struct regmap *regmap = nau8821->regmap; in nau8821_interrupt()
1198 dev_err(nau8821->dev, "failed to read irq status\n"); in nau8821_interrupt()
1202 dev_dbg(nau8821->dev, "IRQ %d\n", active_irq); in nau8821_interrupt()
1206 cancel_delayed_work_sync(&nau8821->jdet_work); in nau8821_interrupt()
1220 cancel_delayed_work_sync(&nau8821->jdet_work); in nau8821_interrupt()
1225 component = snd_soc_dapm_to_component(nau8821->dapm); in nau8821_interrupt()
1227 snd_soc_dapm_sync(nau8821->dapm); in nau8821_interrupt()
1228 schedule_delayed_work(&nau8821->jdet_work, msecs_to_jiffies(20)); in nau8821_interrupt()
1229 /* Turn off insertion interruption at manual mode */ in nau8821_interrupt()
1232 dev_warn(nau8821->dev, in nau8821_interrupt()
1242 snd_soc_jack_report(nau8821->jack, event, event_mask); in nau8821_interrupt()
1267 nau8821->dapm = dapm; in nau8821_component_probe()
1273 * nau8821_calc_fll_param - Calculate FLL parameters.
1289 * dividing freq_in by 1, 2, 4, or 8 using FLL pre-scalar. in nau8821_calc_fll_param()
1298 return -EINVAL; in nau8821_calc_fll_param()
1299 fll_param->clk_ref_div = fll_pre_scalar[i].val; in nau8821_calc_fll_param()
1307 return -EINVAL; in nau8821_calc_fll_param()
1308 fll_param->ratio = fll_ratio[i].val; in nau8821_calc_fll_param()
1311 * FDCO must be within the 90MHz - 100MHz or the FFL cannot be in nau8821_calc_fll_param()
1326 return -EINVAL; in nau8821_calc_fll_param()
1327 fll_param->mclk_src = mclk_src_scaling[fvco_sel].val; in nau8821_calc_fll_param()
1329 /* Calculate the FLL 10-bit integer input and the FLL 24-bit fractional in nau8821_calc_fll_param()
1332 fvco = div_u64(fvco_max << 24, fref * fll_param->ratio); in nau8821_calc_fll_param()
1333 fll_param->fll_int = (fvco >> 24) & 0x3ff; in nau8821_calc_fll_param()
1334 fll_param->fll_frac = fvco & 0xffffff; in nau8821_calc_fll_param()
1342 struct regmap *regmap = nau8821->regmap; in nau8821_fll_apply()
1346 NAU8821_CLK_SRC_MCLK | fll_param->mclk_src); in nau8821_fll_apply()
1350 fll_param->ratio | (0x6 << NAU8821_ICTRL_LATCH_SFT)); in nau8821_fll_apply()
1351 /* FLL 24-bit fractional input */ in nau8821_fll_apply()
1353 (fll_param->fll_frac >> 16) & 0xff); in nau8821_fll_apply()
1354 regmap_write(regmap, NAU8821_R0B_FLL8, fll_param->fll_frac & 0xffff); in nau8821_fll_apply()
1355 /* FLL 10-bit integer input */ in nau8821_fll_apply()
1357 NAU8821_FLL_INTEGER_MASK, fll_param->fll_int); in nau8821_fll_apply()
1358 /* FLL pre-scaler */ in nau8821_fll_apply()
1362 (fll_param->clk_ref_div << NAU8821_FLL_REF_DIV_SFT)); in nau8821_fll_apply()
1366 /* Disable free-running mode */ in nau8821_fll_apply()
1369 if (fll_param->fll_frac) { in nau8821_fll_apply()
1390 * nau8821_set_fll - FLL configuration of nau8821
1412 dev_err(nau8821->dev, in nau8821_set_fll()
1417 dev_dbg(nau8821->dev, in nau8821_set_fll()
1419 fll_param->mclk_src, fll_param->ratio, fll_param->fll_frac, in nau8821_set_fll()
1420 fll_param->fll_int, fll_param->clk_ref_div); in nau8821_set_fll()
1424 regmap_update_bits(nau8821->regmap, NAU8821_R03_CLK_DIVIDER, in nau8821_set_fll()
1444 struct regmap *regmap = nau8821->regmap; in nau8821_configure_sysclk()
1509 dev_err(nau8821->dev, "Invalid clock id (%d)\n", clk_id); in nau8821_configure_sysclk()
1510 return -EINVAL; in nau8821_configure_sysclk()
1512 nau8821->clk_id = clk_id; in nau8821_configure_sysclk()
1513 dev_dbg(nau8821->dev, "Sysclk is %dHz and clock id is %d\n", freq, in nau8821_configure_sysclk()
1514 nau8821->clk_id); in nau8821_configure_sysclk()
1529 struct regmap *regmap = nau8821->regmap; in nau8821_resume_setup()
1531 /* Close clock when jack type detection at manual mode */ in nau8821_resume_setup()
1533 if (nau8821->irq) { in nau8821_resume_setup()
1538 * bypass de-bounce circuit. in nau8821_resume_setup()
1556 struct regmap *regmap = nau8821->regmap; in nau8821_set_bias_level()
1576 if (nau8821->irq) { in nau8821_set_bias_level()
1604 if (nau8821->irq) in nau8821_suspend()
1605 disable_irq(nau8821->irq); in nau8821_suspend()
1609 snd_soc_dapm_sync(nau8821->dapm); in nau8821_suspend()
1610 regcache_cache_only(nau8821->regmap, true); in nau8821_suspend()
1611 regcache_mark_dirty(nau8821->regmap); in nau8821_suspend()
1620 regcache_cache_only(nau8821->regmap, false); in nau8821_resume()
1621 regcache_sync(nau8821->regmap); in nau8821_resume()
1622 if (nau8821->irq) in nau8821_resume()
1623 enable_irq(nau8821->irq); in nau8821_resume()
1648 * nau8821_enable_jack_detect - Specify a jack for event reporting
1663 nau8821->jack = jack; in nau8821_enable_jack_detect()
1665 INIT_DELAYED_WORK(&nau8821->jdet_work, nau8821_jdet_work); in nau8821_enable_jack_detect()
1667 ret = devm_request_threaded_irq(nau8821->dev, nau8821->irq, NULL, in nau8821_enable_jack_detect()
1671 dev_err(nau8821->dev, "Cannot request irq %d (%d)\n", in nau8821_enable_jack_detect()
1672 nau8821->irq, ret); in nau8821_enable_jack_detect()
1688 struct device *dev = nau8821->dev; in nau8821_print_device_properties()
1690 dev_dbg(dev, "jkdet-enable: %d\n", nau8821->jkdet_enable); in nau8821_print_device_properties()
1691 dev_dbg(dev, "jkdet-pull-enable: %d\n", nau8821->jkdet_pull_enable); in nau8821_print_device_properties()
1692 dev_dbg(dev, "jkdet-pull-up: %d\n", nau8821->jkdet_pull_up); in nau8821_print_device_properties()
1693 dev_dbg(dev, "jkdet-polarity: %d\n", nau8821->jkdet_polarity); in nau8821_print_device_properties()
1694 dev_dbg(dev, "micbias-voltage: %d\n", nau8821->micbias_voltage); in nau8821_print_device_properties()
1695 dev_dbg(dev, "vref-impedance: %d\n", nau8821->vref_impedance); in nau8821_print_device_properties()
1696 dev_dbg(dev, "jack-insert-debounce: %d\n", in nau8821_print_device_properties()
1697 nau8821->jack_insert_debounce); in nau8821_print_device_properties()
1698 dev_dbg(dev, "jack-eject-debounce: %d\n", in nau8821_print_device_properties()
1699 nau8821->jack_eject_debounce); in nau8821_print_device_properties()
1700 dev_dbg(dev, "dmic-clk-threshold: %d\n", in nau8821_print_device_properties()
1701 nau8821->dmic_clk_threshold); in nau8821_print_device_properties()
1702 dev_dbg(dev, "key_enable: %d\n", nau8821->key_enable); in nau8821_print_device_properties()
1703 dev_dbg(dev, "adc-delay-ms: %d\n", nau8821->adc_delay); in nau8821_print_device_properties()
1711 nau8821->jkdet_enable = device_property_read_bool(dev, in nau8821_read_device_properties()
1712 "nuvoton,jkdet-enable"); in nau8821_read_device_properties()
1713 nau8821->jkdet_pull_enable = device_property_read_bool(dev, in nau8821_read_device_properties()
1714 "nuvoton,jkdet-pull-enable"); in nau8821_read_device_properties()
1715 nau8821->jkdet_pull_up = device_property_read_bool(dev, in nau8821_read_device_properties()
1716 "nuvoton,jkdet-pull-up"); in nau8821_read_device_properties()
1717 nau8821->key_enable = device_property_read_bool(dev, in nau8821_read_device_properties()
1718 "nuvoton,key-enable"); in nau8821_read_device_properties()
1719 nau8821->left_input_single_end = device_property_read_bool(dev, in nau8821_read_device_properties()
1720 "nuvoton,left-input-single-end"); in nau8821_read_device_properties()
1721 ret = device_property_read_u32(dev, "nuvoton,jkdet-polarity", in nau8821_read_device_properties()
1722 &nau8821->jkdet_polarity); in nau8821_read_device_properties()
1724 nau8821->jkdet_polarity = 1; in nau8821_read_device_properties()
1725 ret = device_property_read_u32(dev, "nuvoton,micbias-voltage", in nau8821_read_device_properties()
1726 &nau8821->micbias_voltage); in nau8821_read_device_properties()
1728 nau8821->micbias_voltage = 6; in nau8821_read_device_properties()
1729 ret = device_property_read_u32(dev, "nuvoton,vref-impedance", in nau8821_read_device_properties()
1730 &nau8821->vref_impedance); in nau8821_read_device_properties()
1732 nau8821->vref_impedance = 2; in nau8821_read_device_properties()
1733 ret = device_property_read_u32(dev, "nuvoton,jack-insert-debounce", in nau8821_read_device_properties()
1734 &nau8821->jack_insert_debounce); in nau8821_read_device_properties()
1736 nau8821->jack_insert_debounce = 7; in nau8821_read_device_properties()
1737 ret = device_property_read_u32(dev, "nuvoton,jack-eject-debounce", in nau8821_read_device_properties()
1738 &nau8821->jack_eject_debounce); in nau8821_read_device_properties()
1740 nau8821->jack_eject_debounce = 0; in nau8821_read_device_properties()
1741 ret = device_property_read_u32(dev, "nuvoton,dmic-clk-threshold", in nau8821_read_device_properties()
1742 &nau8821->dmic_clk_threshold); in nau8821_read_device_properties()
1744 nau8821->dmic_clk_threshold = 3072000; in nau8821_read_device_properties()
1745 ret = device_property_read_u32(dev, "nuvoton,dmic-slew-rate", in nau8821_read_device_properties()
1746 &nau8821->dmic_slew_rate); in nau8821_read_device_properties()
1748 nau8821->dmic_slew_rate = 0; in nau8821_read_device_properties()
1749 ret = device_property_read_u32(dev, "nuvoton,adc-delay-ms", in nau8821_read_device_properties()
1750 &nau8821->adc_delay); in nau8821_read_device_properties()
1752 nau8821->adc_delay = 125; in nau8821_read_device_properties()
1753 if (nau8821->adc_delay < 125 || nau8821->adc_delay > 500) in nau8821_read_device_properties()
1761 struct regmap *regmap = nau8821->regmap; in nau8821_init_regs()
1775 (nau8821->vref_impedance << NAU8821_BIAS_VMID_SEL_SFT) | in nau8821_init_regs()
1806 NAU8821_MICBIAS_VOLTAGE_MASK, nau8821->micbias_voltage); in nau8821_init_regs()
1815 NAU8821_DMIC_SLEW_MASK, nau8821->dmic_slew_rate << in nau8821_init_regs()
1817 if (nau8821->left_input_single_end) { in nau8821_init_regs()
1827 struct regmap *regmap = nau8821->regmap; in nau8821_setup_irq()
1832 nau8821->jkdet_enable ? 0 : NAU8821_JKDET_OUTPUT_EN); in nau8821_setup_irq()
1835 nau8821->jkdet_pull_enable ? 0 : NAU8821_JKDET_PULL_EN); in nau8821_setup_irq()
1838 nau8821->jkdet_pull_up ? NAU8821_JKDET_PULL_UP : 0); in nau8821_setup_irq()
1841 /* jkdet_polarity - 1 is for active-low */ in nau8821_setup_irq()
1842 nau8821->jkdet_polarity ? 0 : NAU8821_JACK_POLARITY); in nau8821_setup_irq()
1845 nau8821->jack_insert_debounce << in nau8821_setup_irq()
1849 nau8821->jack_eject_debounce << in nau8821_setup_irq()
1857 /* Mask unneeded IRQs: 1 - disable, 0 - enable */ in nau8821_setup_irq()
1866 /* Positivo CW14Q01P-V2 */
1869 DMI_MATCH(DMI_BOARD_NAME, "CW14Q01P-V2"),
1896 if (quirk_override != -1) { in nau8821_check_quirks()
1903 nau8821_quirk = (unsigned long)dmi_id->driver_data; in nau8821_check_quirks()
1908 struct device *dev = &i2c->dev; in nau8821_i2c_probe()
1909 struct nau8821 *nau8821 = dev_get_platdata(&i2c->dev); in nau8821_i2c_probe()
1915 return -ENOMEM; in nau8821_i2c_probe()
1920 nau8821->regmap = devm_regmap_init_i2c(i2c, &nau8821_regmap_config); in nau8821_i2c_probe()
1921 if (IS_ERR(nau8821->regmap)) in nau8821_i2c_probe()
1922 return PTR_ERR(nau8821->regmap); in nau8821_i2c_probe()
1924 nau8821->dev = dev; in nau8821_i2c_probe()
1925 nau8821->irq = i2c->irq; in nau8821_i2c_probe()
1930 nau8821->jkdet_polarity = 0; in nau8821_i2c_probe()
1937 nau8821_reset_chip(nau8821->regmap); in nau8821_i2c_probe()
1938 ret = regmap_read(nau8821->regmap, NAU8821_R58_I2C_DEVICE_ID, &value); in nau8821_i2c_probe()
1945 if (i2c->irq) in nau8821_i2c_probe()
1948 ret = devm_snd_soc_register_component(&i2c->dev, in nau8821_i2c_probe()