Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
51cc7ed3
Commit
51cc7ed3
authored
May 31, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: wm2000: Add register readability information
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
0561c1bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
sound/soc/codecs/wm2000.c
sound/soc/codecs/wm2000.c
+30
-0
No files found.
sound/soc/codecs/wm2000.c
View file @
51cc7ed3
...
...
@@ -691,9 +691,39 @@ static int wm2000_resume(struct snd_soc_codec *codec)
#define wm2000_resume NULL
#endif
static
bool
wm2000_readable_reg
(
struct
device
*
dev
,
unsigned
int
reg
)
{
switch
(
reg
)
{
case
WM2000_REG_SYS_START
:
case
WM2000_REG_SPEECH_CLARITY
:
case
WM2000_REG_SYS_WATCHDOG
:
case
WM2000_REG_ANA_VMID_PD_TIME
:
case
WM2000_REG_ANA_VMID_PU_TIME
:
case
WM2000_REG_CAT_FLTR_INDX
:
case
WM2000_REG_CAT_GAIN_0
:
case
WM2000_REG_SYS_STATUS
:
case
WM2000_REG_SYS_MODE_CNTRL
:
case
WM2000_REG_SYS_START0
:
case
WM2000_REG_SYS_START1
:
case
WM2000_REG_ID1
:
case
WM2000_REG_ID2
:
case
WM2000_REG_REVISON
:
case
WM2000_REG_SYS_CTL1
:
case
WM2000_REG_SYS_CTL2
:
case
WM2000_REG_ANC_STAT
:
case
WM2000_REG_IF_CTL
:
return
true
;
default:
return
false
;
}
}
static
const
struct
regmap_config
wm2000_regmap
=
{
.
reg_bits
=
8
,
.
val_bits
=
8
,
.
max_register
=
WM2000_REG_IF_CTL
,
.
readable_reg
=
wm2000_readable_reg
,
};
static
int
wm2000_probe
(
struct
snd_soc_codec
*
codec
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment