|
@@ -1156,6 +1156,9 @@ static ssize_t soc_codec_reg_show(struct snd_soc_codec *codec, char *buf)
|
|
|
|
|
|
count += sprintf(buf, "%s registers\n", codec->name);
|
|
|
for (i = 0; i < codec->reg_cache_size; i += step) {
|
|
|
+ if (codec->readable_register && !codec->readable_register(i))
|
|
|
+ continue;
|
|
|
+
|
|
|
count += sprintf(buf + count, "%2x: ", i);
|
|
|
if (count >= PAGE_SIZE - 1)
|
|
|
break;
|