Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63fa0a28 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: snd_soc_codec_{readable,writable}_register change default to true



Change the default return value of snd_soc_codec_{readable,writable}_register to
true when no codec specific callback for this function is given. Otherwise all
registers of that codec will neither be readable nor writable, which is most
certainly not what we want.

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 728a5222
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1633,7 +1633,7 @@ int snd_soc_codec_readable_register(struct snd_soc_codec *codec,
	if (codec->readable_register)
		return codec->readable_register(codec, reg);
	else
		return 0;
		return 1;
}
EXPORT_SYMBOL_GPL(snd_soc_codec_readable_register);

@@ -1651,7 +1651,7 @@ int snd_soc_codec_writable_register(struct snd_soc_codec *codec,
	if (codec->writable_register)
		return codec->writable_register(codec, reg);
	else
		return 0;
		return 1;
}
EXPORT_SYMBOL_GPL(snd_soc_codec_writable_register);