Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157723
b: refs/heads/master
c: 977d49e
h: refs/heads/master
i:
  157721: 07e4447
  157719: d6eea9a
v: v3
  • Loading branch information
Mark Brown committed Aug 26, 2009
1 parent 3b1352f commit ff620fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc36681fdc3276b9da4047c277349291c4cbad09
refs/heads/master: 977d49e00d18d500d0bfe77500053d9df9c3db77
13 changes: 6 additions & 7 deletions trunk/sound/soc/codecs/tlv320aic3x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1385,15 +1385,14 @@ static int aic3x_probe(struct platform_device *pdev)
socdev->card->codec = codec;
setup = socdev->codec_data;

if (!setup) {
dev_err(&pdev->dev, "No setup data supplied\n");
return -EINVAL;
if (setup) {
/* setup GPIO functions */
aic3x_write(codec, AIC3X_GPIO1_REG,
(setup->gpio_func[0] & 0xf) << 4);
aic3x_write(codec, AIC3X_GPIO2_REG,
(setup->gpio_func[1] & 0xf) << 4);
}

/* setup GPIO functions */
aic3x_write(codec, AIC3X_GPIO1_REG, (setup->gpio_func[0] & 0xf) << 4);
aic3x_write(codec, AIC3X_GPIO2_REG, (setup->gpio_func[1] & 0xf) << 4);

/* register pcms */
ret = snd_soc_new_pcms(socdev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1);
if (ret < 0) {
Expand Down

0 comments on commit ff620fe

Please sign in to comment.