* ASoC: codec register dump in debugfs
@ 2015-05-29 7:16 Sergej Sawazki
2015-05-29 9:04 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Sergej Sawazki @ 2015-05-29 7:16 UTC (permalink / raw)
To: lgirdwood, Mark Brown, alsa-devel
Dear all,
please correct me if I am wrong. Since the codec drivers have been
converted to direct regmap API usage, it is not common to set the
following snd_soc_codec_driver struct members:
.reg_cache_size
.reg_word_size
However, the functions soc_codec_reg_show() and format_register_str()
(responsible for formating and printing the codec register dumps to
debugfs) depend on these members.
I'm writing a ASoC machine driver. The board has two wm8741 codecs.
I would like to see the codec register dumps in debugfs.
eg:
cat /sys/kernel/debug/asoc/<card_name>/codec\:wm8741.1-001a/codec_reg
cat /sys/kernel/debug/asoc/<card_name>/codec\:wm8741.1-001b/codec_reg
Is it OK to set the above mentioned members in a codec driver to
"enable" the register dump output?
Or should we refactor the above mentioned functions to use the regmap
API?
Or am I missing something?
Thanks,
Sergej
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ASoC: codec register dump in debugfs
2015-05-29 7:16 ASoC: codec register dump in debugfs Sergej Sawazki
@ 2015-05-29 9:04 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2015-05-29 9:04 UTC (permalink / raw)
To: Sergej Sawazki; +Cc: alsa-devel, lgirdwood
[-- Attachment #1.1: Type: text/plain, Size: 335 bytes --]
On Fri, May 29, 2015 at 09:16:56AM +0200, Sergej Sawazki wrote:
> I'm writing a ASoC machine driver. The board has two wm8741 codecs.
> I would like to see the codec register dumps in debugfs.
Use the regmap debugfs interface for devices that use regmap. The ASoC
level one will be removed once all drivers are converted to regmap.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-29 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 7:16 ASoC: codec register dump in debugfs Sergej Sawazki
2015-05-29 9:04 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox