Lines Matching refs:dev

478 static bool rt5645_volatile_register(struct device *dev, unsigned int reg)
514 static bool rt5645_readable_register(struct device *dev, unsigned int reg)
887 dev_err(component->dev, "Failed to set DMIC clock\n");
2761 dev_err(component->dev, "Unsupported clock setting\n");
2766 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size);
2782 dev_dbg(dai->dev, "bclk is %dHz and lrck is %dHz\n",
2784 dev_dbg(dai->dev, "bclk_ms is %d and pre_div is %d for iis %d\n",
2820 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
2891 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
2918 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id);
2926 dev_dbg(dai->dev, "Sysclk is %dHz and clock id is %d\n", freq, clk_id);
2944 dev_dbg(component->dev, "PLL disabled\n");
2970 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
2975 dev_err(component->dev, "Unknown PLL source %d\n", source);
2981 dev_err(component->dev, "Unsupported input clock %d\n", freq_in);
2985 dev_dbg(component->dev, "bypass=%d m=%d n=%d k=%d\n",
3196 dev_dbg(component->dev, "val = %d\n", val);
3321 dev_dbg(rt5645->component->dev, "gpio_state = %d\n",
3378 dev_err(rt5645->component->dev,
3478 rt5645->eq_param = devm_kcalloc(component->dev,
3912 static bool rt5645_check_dp(struct device *dev)
3914 if (device_property_present(dev, "realtek,in2-differential") ||
3915 device_property_present(dev, "realtek,dmic1-data-pin") ||
3916 device_property_present(dev, "realtek,dmic2-data-pin") ||
3917 device_property_present(dev, "realtek,jd-mode"))
3923 static void rt5645_parse_dt(struct device *dev, struct rt5645_platform_data *pdata)
3925 pdata->in2_diff = device_property_read_bool(dev, "realtek,in2-differential");
3926 device_property_read_u32(dev, "realtek,dmic1-data-pin", &pdata->dmic1_data_pin);
3927 device_property_read_u32(dev, "realtek,dmic2-data-pin", &pdata->dmic2_data_pin);
3928 device_property_read_u32(dev, "realtek,jd-mode", &pdata->jd_mode);
3990 rt5645 = devm_kzalloc(&i2c->dev, sizeof(struct rt5645_priv),
3997 rt5645_get_pdata(&i2c->dev, &rt5645->pdata);
3999 if (has_acpi_companion(&i2c->dev)) {
4001 if (devm_acpi_dev_add_driver_gpios(&i2c->dev, cht_rt5645_gpios))
4002 dev_dbg(&i2c->dev, "Failed to add driver gpios\n");
4006 if (acpi_dev_hid_uid_match(ACPI_COMPANION(&i2c->dev), "10EC3270", NULL))
4010 rt5645->gpiod_hp_det = devm_gpiod_get_optional(&i2c->dev, "hp-detect",
4014 dev_info(&i2c->dev, "failed to initialize gpiod\n");
4024 rt5645->gpiod_cbj_sleeve = devm_gpiod_get_optional(&i2c->dev, "cbj-sleeve",
4029 dev_info(&i2c->dev, "failed to initialize gpiod, ret=%d\n", ret);
4037 ret = devm_regulator_bulk_get(&i2c->dev,
4041 dev_err(&i2c->dev, "Failed to request supplies: %d\n", ret);
4048 dev_err(&i2c->dev, "Failed to enable supplies: %d\n", ret);
4055 dev_err(&i2c->dev, "Failed to allocate temp register map: %d\n",
4067 dev_err(&i2c->dev, "Failed to read: 0x%02X\n, ret = %d", RT5645_VENDOR_ID2, ret);
4081 dev_err(&i2c->dev,
4090 dev_err(&i2c->dev, "Failed to allocate register map: %d\n",
4105 dev_warn(&i2c->dev, "Failed to apply regmap patch: %d\n", ret);
4111 dev_warn(&i2c->dev, "Apply rt5650 patch failed: %d\n",
4245 dev_err(&i2c->dev, "Failed to request IRQ: %d\n", ret);
4250 ret = devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_rt5645,
4304 static int __maybe_unused rt5645_sys_suspend(struct device *dev)
4306 struct rt5645_priv *rt5645 = dev_get_drvdata(dev);
4317 static int __maybe_unused rt5645_sys_resume(struct device *dev)
4319 struct rt5645_priv *rt5645 = dev_get_drvdata(dev);