]> Git Repo - linux.git/commitdiff
Merge branch 'fix/rt298' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
authorMark Brown <[email protected]>
Fri, 16 Oct 2015 17:17:31 +0000 (18:17 +0100)
committerMark Brown <[email protected]>
Fri, 16 Oct 2015 17:17:31 +0000 (18:17 +0100)
1  2 
sound/soc/codecs/rt298.c

diff --combined sound/soc/codecs/rt298.c
index d039c995c0512f90a1bbf79a00155adf876ea690,d3e30a645ae3055101267974de99e20296b28ba9..91a7ba3c1bf094745ef465fdc8484dad8fb276c4
@@@ -49,25 -49,25 +49,25 @@@ struct rt298_priv 
        int is_hp_in;
  };
  
 -static struct reg_default rt298_index_def[] = {
 +static const struct reg_default rt298_index_def[] = {
-       { 0x01, 0xaaaa },
-       { 0x02, 0x8aaa },
+       { 0x01, 0xa5a8 },
+       { 0x02, 0x8e95 },
        { 0x03, 0x0002 },
-       { 0x04, 0xaf01 },
-       { 0x08, 0x000d },
-       { 0x09, 0xd810 },
-       { 0x0a, 0x0120 },
+       { 0x04, 0xaf67 },
+       { 0x08, 0x200f },
+       { 0x09, 0xd010 },
+       { 0x0a, 0x0100 },
        { 0x0b, 0x0000 },
        { 0x0d, 0x2800 },
-       { 0x0f, 0x0000 },
-       { 0x19, 0x0a17 },
+       { 0x0f, 0x0022 },
+       { 0x19, 0x0217 },
        { 0x20, 0x0020 },
        { 0x33, 0x0208 },
        { 0x46, 0x0300 },
-       { 0x49, 0x0004 },
-       { 0x4f, 0x50e9 },
-       { 0x50, 0x2000 },
-       { 0x63, 0x2902 },
+       { 0x49, 0x4004 },
+       { 0x4f, 0x50c9 },
+       { 0x50, 0x3000 },
+       { 0x63, 0x1b02 },
        { 0x67, 0x1111 },
        { 0x68, 0x1016 },
        { 0x69, 0x273f },
@@@ -129,7 -129,7 +129,7 @@@ static bool rt298_volatile_register(str
        case VERB_CMD(AC_VERB_GET_EAPD_BTLENABLE, RT298_HP_OUT, 0):
                return true;
        default:
 -              return true;
 +              return false;
        }
  
  
@@@ -1165,11 -1165,7 +1165,11 @@@ static int rt298_i2c_probe(struct i2c_c
                return -ENODEV;
        }
  
 -      rt298->index_cache = rt298_index_def;
 +      rt298->index_cache = devm_kmemdup(&i2c->dev, rt298_index_def,
 +                                        sizeof(rt298_index_def), GFP_KERNEL);
 +      if (!rt298->index_cache)
 +              return -ENOMEM;
 +
        rt298->index_cache_size = INDEX_CACHE_SIZE;
        rt298->i2c = i2c;
        i2c_set_clientdata(i2c, rt298);
This page took 0.05704 seconds and 4 git commands to generate.