Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332116
b: refs/heads/master
c: 3706163
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Sep 19, 2012
1 parent c4291af commit 86cb76c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cbde7abfdd8c3e2c1293b7096477e8bcf10b755
refs/heads/master: 3706163140939bccd58fba739a9820f1d5eebeaf
2 changes: 2 additions & 0 deletions trunk/include/sound/wm8960.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ struct wm8960_data {
bool capless; /* Headphone outputs configured in capless mode */

int dres; /* Discharge resistance for headphone outputs */

bool shared_lrclk; /* DAC and ADC LRCLKs are wired together */
};

#endif
11 changes: 11 additions & 0 deletions trunk/sound/soc/codecs/wm8960.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ static const struct regmap_config wm8960_regmap = {
static __devinit int wm8960_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{
struct wm8960_data *pdata = dev_get_platdata(&i2c->dev);
struct wm8960_priv *wm8960;
int ret;

Expand All @@ -1048,6 +1049,16 @@ static __devinit int wm8960_i2c_probe(struct i2c_client *i2c,
if (IS_ERR(wm8960->regmap))
return PTR_ERR(wm8960->regmap);

if (pdata && pdata->shared_lrclk) {
ret = regmap_update_bits(wm8960->regmap, WM8960_ADDCTL2,
0x4, 0x4);
if (ret != 0) {
dev_err(&i2c->dev, "Failed to enable LRCM: %d\n",
ret);
return ret;
}
}

i2c_set_clientdata(i2c, wm8960);

ret = snd_soc_register_codec(&i2c->dev,
Expand Down

0 comments on commit 86cb76c

Please sign in to comment.