Hi JS Park,
I just wrote the following code, it's compile tested only but ought to work I think. Should appear in v3.12 (or a fixed version anyway) - please let me know if it works for you.
Thanks, Mark
On Mon, Jul 08, 2013 at 01:29:30AM +0000, JS Park wrote:
<html> <head> <title>Samsung Enterprise Portal mySingle</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <style id="mysingle_style"> p, td, li {font-family:Arial, arial; font-size:10pt; margin-top:5px;margin-bottom:5px;} body{margin:10px 10px 10px 10px; line-height:1.4; font-family:Arial, arial; font-size:10pt;}</style> </head> <body style="WORD-WRAP: break-word; FONT-SIZE: 10pt; FONT-FAMILY: 굴림"><!--SP:aitdark.park--> <p> </p> <p>Dear Mark Brown,</p> <p> </p> <p>Hi Mark. How have you been.</p> <p>I am JS Park in Samsung System Audio Engineer.<br /></p> <p>I have question about regimap register function.</p> <p> </p> <p>We can set default register to call regmap_register_pattch function.</p> <p>but, see the below source code, It is possible just one time.</p> <p> </p> <p>If need change defualt register, like as wm1811_reva_patch, I have to modify wm8994-core.c</p> <p>Is it imposible not to change wm8994 driver source?</p> <p>I just want to add custmize default regiister setting for Samsung specify register regarding earphone detection.</p> <p> </p> <p> </p> <p><font face="Courier New">@drivers/base/regmap/regmap.c</font></p><!--SP:aitdark.park--> <p><font face="Courier New">int regmap_register_patch(struct regmap *map, const struct reg_default *regs,<br /> int num_regs)<br /> { <br /> int i, ret;<br /> bool bypass;<br /> <br /> /* If needed the implementation can be extended to support this */<br /> if (map->patch)<br /> return -EBUSY;<br /> <br /> mutex_lock(&map->lock);<br /> <br /> bypass = map->cache_bypass;<br /> <br /> ...</font></p> <p><font face="Courier New">}</font></p><font face="Courier New"> <p> </p></font> <p><font face="Courier New"></font> </p> <p><font face="Courier New">Thanks.</font></p> <p><font face="Courier New"></font></p><!--aitdark.park:EP--> <p> </p> <p> </p> <table id="confidentialsignimg"> <tbody> <tr> <td namo_lock="namo_lock"> <p><img border="0" alt="" src="cid:1CA8977932ED416E9D8527468A2126E80@samsung.net" width="520" /></p></td> </tr> </tbody> </table></x-body /> </body> </html><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=58004ed604205cf318b287a9e1580117acca32a83eaeb0a2d43ba53b2d4bbdb3edd5e484054b2b2aa3da9a4385c66a4d49e5ff3dfdc8681d76f80bf81d31c863cf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>
linaro-kernel@lists.linaro.org