ALSA: ASoC: Fix register cache sizes for Wolfson codecs
The register cache size is used by the codec_reg sysfs file which works in terms of the register cache access functions rather than in terms of raw access to the cache so the size specified needs to be in terms of the number of elements. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Este cometimento está contido em:

cometido por
Jaroslav Kysela

ascendente
9f240a558f
cometimento
d751b233bb
@@ -798,7 +798,7 @@ static int wm8750_init(struct snd_soc_device *socdev)
|
||||
codec->set_bias_level = wm8750_set_bias_level;
|
||||
codec->dai = &wm8750_dai;
|
||||
codec->num_dai = 1;
|
||||
codec->reg_cache_size = sizeof(wm8750_reg);
|
||||
codec->reg_cache_size = ARRAY_SIZE(wm8750_reg);
|
||||
codec->reg_cache = kmemdup(wm8750_reg, sizeof(wm8750_reg), GFP_KERNEL);
|
||||
if (codec->reg_cache == NULL)
|
||||
return -ENOMEM;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador