diff options
-rw-r--r-- | sound/soc/codecs/uda1380.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c index cb50486201f1..6d5335b14d51 100644 --- a/sound/soc/codecs/uda1380.c +++ b/sound/soc/codecs/uda1380.c | |||
@@ -655,8 +655,8 @@ static int uda1380_init(struct snd_soc_device *socdev, int dac_clk) | |||
655 | GFP_KERNEL); | 655 | GFP_KERNEL); |
656 | if (codec->reg_cache == NULL) | 656 | if (codec->reg_cache == NULL) |
657 | return -ENOMEM; | 657 | return -ENOMEM; |
658 | codec->reg_cache_size = sizeof(uda1380_reg); | 658 | codec->reg_cache_size = ARRAY_SIZE(uda1380_reg); |
659 | codec->reg_cache_step = 2; | 659 | codec->reg_cache_step = 1; |
660 | uda1380_reset(codec); | 660 | uda1380_reset(codec); |
661 | 661 | ||
662 | /* register pcms */ | 662 | /* register pcms */ |