]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge remote-tracking branches 'asoc/topic/rockchip', 'asoc/topic/rt5514', 'asoc...
authorMark Brown <broonie@kernel.org>
Sun, 30 Apr 2017 13:16:21 +0000 (22:16 +0900)
committerMark Brown <broonie@kernel.org>
Sun, 30 Apr 2017 13:16:21 +0000 (22:16 +0900)
1  2  3  4  5 
sound/soc/codecs/rt5645.c

index e149f3ce540154252fa882000b020da691d4d3db,e149f3ce540154252fa882000b020da691d4d3db,10c2a564a715dc82e198a4bb50c5691662685c7a,f8550ef2261b2713b6a08e3c488b081ee74f4170,10c2a564a715dc82e198a4bb50c5691662685c7a..87844a45886a5f965d04abaeb670e28ab32efdee
@@@@@@ -3109,7 -3109,7 -3109,7 -3109,7 -3109,7 +3109,7 @@@@@@ static int rt5645_jack_detect(struct sn
        unsigned int val;
     
        if (jack_insert) {
  ---           regmap_write(rt5645->regmap, RT5645_CHARGE_PUMP, 0x0006);
  +++           regmap_write(rt5645->regmap, RT5645_CHARGE_PUMP, 0x0e06);
     
                /* for jack type detect */
                snd_soc_dapm_force_enable_pin(dapm, "LDO2");
@@@@@@ -3542,13 -3542,13 -3542,11 -3542,20 -3542,11 +3542,22 @@@@@@ static const struct i2c_device_id rt564
     };
     MODULE_DEVICE_TABLE(i2c, rt5645_i2c_id);
     
+++ +#ifdef CONFIG_OF
+++ +static const struct of_device_id rt5645_of_match[] = {
+++ +   { .compatible = "realtek,rt5645", },
+++ +   { .compatible = "realtek,rt5650", },
+++ +   { }
+++ +};
+++ +MODULE_DEVICE_TABLE(of, rt5645_of_match);
+++ +#endif
+++ +
     #ifdef CONFIG_ACPI
     static const struct acpi_device_id rt5645_acpi_match[] = {
        { "10EC5645", 0 },
  +++   { "10EC5648", 0 },
        { "10EC5650", 0 },
        { "10EC5640", 0 },
  +++   { "10EC3270", 0 },
        {},
     };
     MODULE_DEVICE_TABLE(acpi, rt5645_acpi_match);
@@@@@@ -3660,14 -3660,14 -3658,8 -3667,8 -3658,8 +3669,14 @@@@@@ static int rt5645_i2c_probe(struct i2c_
                                                       GPIOD_IN);
     
        if (IS_ERR(rt5645->gpiod_hp_det)) {
  ---           dev_err(&i2c->dev, "failed to initialize gpiod\n");
  ---           return PTR_ERR(rt5645->gpiod_hp_det);
  +++           dev_info(&i2c->dev, "failed to initialize gpiod\n");
  +++           ret = PTR_ERR(rt5645->gpiod_hp_det);
  +++           /*
  +++            * Continue if optional gpiod is missing, bail for all other
  +++            * errors, including -EPROBE_DEFER
  +++            */
  +++           if (ret != -ENOENT)
  +++                   return ret;
        }
     
        for (i = 0; i < ARRAY_SIZE(rt5645->supplies); i++)
                }
        }
     
  +++   regmap_update_bits(rt5645->regmap, RT5645_ADDA_CLK1,
  +++           RT5645_I2S_PD1_MASK, RT5645_I2S_PD1_2);
  +++
        if (rt5645->pdata.jd_invert) {
                regmap_update_bits(rt5645->regmap, RT5645_IRQ_CTRL2,
                        RT5645_JD_1_1_MASK, RT5645_JD_1_1_INV);
@@@@@@ -3912,6 -3912,6 -3901,6 -3910,7 -3901,6 +3921,7 @@@@@@ static void rt5645_i2c_shutdown(struct 
     static struct i2c_driver rt5645_i2c_driver = {
        .driver = {
                .name = "rt5645",
+++ +           .of_match_table = of_match_ptr(rt5645_of_match),
                .acpi_match_table = ACPI_PTR(rt5645_acpi_match),
        },
        .probe = rt5645_i2c_probe,