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
01df259f
Commit
01df259f
authored
Dec 12, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: arizona: Implement tristate support
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
bd7fe24b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.c
+16
-0
No files found.
sound/soc/codecs/arizona.c
View file @
01df259f
...
...
@@ -803,11 +803,27 @@ static int arizona_dai_set_sysclk(struct snd_soc_dai *dai,
return
snd_soc_dapm_sync
(
&
codec
->
dapm
);
}
static
int
arizona_set_tristate
(
struct
snd_soc_dai
*
dai
,
int
tristate
)
{
struct
snd_soc_codec
*
codec
=
dai
->
codec
;
int
base
=
dai
->
driver
->
base
;
unsigned
int
reg
;
if
(
tristate
)
reg
=
ARIZONA_AIF1_TRI
;
else
reg
=
0
;
return
snd_soc_update_bits
(
codec
,
base
+
ARIZONA_AIF_RATE_CTRL
,
ARIZONA_AIF1_TRI
,
reg
);
}
const
struct
snd_soc_dai_ops
arizona_dai_ops
=
{
.
startup
=
arizona_startup
,
.
set_fmt
=
arizona_set_fmt
,
.
hw_params
=
arizona_hw_params
,
.
set_sysclk
=
arizona_dai_set_sysclk
,
.
set_tristate
=
arizona_set_tristate
,
};
EXPORT_SYMBOL_GPL
(
arizona_dai_ops
);
...
...
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