Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293399
b: refs/heads/master
c: 2b4bdee
h: refs/heads/master
i:
  293397: c7757ac
  293395: 0cdd5b4
  293391: 33a1b87
v: v3
  • Loading branch information
Mark Brown committed Feb 21, 2012
1 parent 8bdd9c2 commit e7ec785
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 82150451816ac6d735d8f90babe102636121d67e
refs/heads/master: 2b4bdee2920fb3894f9116f76343f8b31f9e4da8
6 changes: 6 additions & 0 deletions trunk/sound/soc/soc-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
enum snd_soc_control_type control)
{
struct regmap_config config;
int ret;

memset(&config, 0, sizeof(config));
codec->write = hw_write;
Expand Down Expand Up @@ -141,6 +142,11 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
case SND_SOC_REGMAP:
/* Device has made its own regmap arrangements */
codec->using_regmap = true;

ret = regmap_get_val_bytes(codec->control_data);
/* Errors are legitimate for non-integer byte multiples */
if (ret > 0)
codec->val_bytes = ret;
break;

default:
Expand Down

0 comments on commit e7ec785

Please sign in to comment.