diff options
| -rw-r--r-- | sound/soc/codecs/max98095.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c index 6982f743c891..26d7b089fb9c 100644 --- a/sound/soc/codecs/max98095.c +++ b/sound/soc/codecs/max98095.c | |||
| @@ -617,14 +617,13 @@ static int max98095_volatile(struct snd_soc_codec *codec, unsigned int reg) | |||
| 617 | static int max98095_hw_write(struct snd_soc_codec *codec, unsigned int reg, | 617 | static int max98095_hw_write(struct snd_soc_codec *codec, unsigned int reg, |
| 618 | unsigned int value) | 618 | unsigned int value) |
| 619 | { | 619 | { |
| 620 | u8 data[2]; | 620 | int ret; |
| 621 | 621 | ||
| 622 | data[0] = reg; | 622 | codec->cache_bypass = 1; |
| 623 | data[1] = value; | 623 | ret = snd_soc_write(codec, reg, value); |
| 624 | if (codec->hw_write(codec->control_data, data, 2) == 2) | 624 | codec->cache_bypass = 0; |
| 625 | return 0; | 625 | |
| 626 | else | 626 | return ret ? -EIO : 0; |
| 627 | return -EIO; | ||
| 628 | } | 627 | } |
| 629 | 628 | ||
| 630 | /* | 629 | /* |
