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
nexedi
linux
Commits
c6c12422
Commit
c6c12422
authored
Mar 12, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/spear' into asoc-linus
parents
9070ce7e
bde24030
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
sound/soc/spear/spdif_out.c
sound/soc/spear/spdif_out.c
+2
-8
No files found.
sound/soc/spear/spdif_out.c
View file @
c6c12422
...
@@ -213,10 +213,7 @@ static int spdif_digital_mute(struct snd_soc_dai *dai, int mute)
...
@@ -213,10 +213,7 @@ static int spdif_digital_mute(struct snd_soc_dai *dai, int mute)
static
int
spdif_mute_get
(
struct
snd_kcontrol
*
kcontrol
,
static
int
spdif_mute_get
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
struct
snd_ctl_elem_value
*
ucontrol
)
{
{
struct
snd_soc_codec
*
codec
=
snd_kcontrol_chip
(
kcontrol
);
struct
snd_soc_dai
*
cpu_dai
=
snd_kcontrol_chip
(
kcontrol
);
struct
snd_soc_card
*
card
=
codec
->
card
;
struct
snd_soc_pcm_runtime
*
rtd
=
card
->
rtd
;
struct
snd_soc_dai
*
cpu_dai
=
rtd
->
cpu_dai
;
struct
spdif_out_dev
*
host
=
snd_soc_dai_get_drvdata
(
cpu_dai
);
struct
spdif_out_dev
*
host
=
snd_soc_dai_get_drvdata
(
cpu_dai
);
ucontrol
->
value
.
integer
.
value
[
0
]
=
host
->
saved_params
.
mute
;
ucontrol
->
value
.
integer
.
value
[
0
]
=
host
->
saved_params
.
mute
;
...
@@ -226,10 +223,7 @@ static int spdif_mute_get(struct snd_kcontrol *kcontrol,
...
@@ -226,10 +223,7 @@ static int spdif_mute_get(struct snd_kcontrol *kcontrol,
static
int
spdif_mute_put
(
struct
snd_kcontrol
*
kcontrol
,
static
int
spdif_mute_put
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
struct
snd_ctl_elem_value
*
ucontrol
)
{
{
struct
snd_soc_codec
*
codec
=
snd_kcontrol_chip
(
kcontrol
);
struct
snd_soc_dai
*
cpu_dai
=
snd_kcontrol_chip
(
kcontrol
);
struct
snd_soc_card
*
card
=
codec
->
card
;
struct
snd_soc_pcm_runtime
*
rtd
=
card
->
rtd
;
struct
snd_soc_dai
*
cpu_dai
=
rtd
->
cpu_dai
;
struct
spdif_out_dev
*
host
=
snd_soc_dai_get_drvdata
(
cpu_dai
);
struct
spdif_out_dev
*
host
=
snd_soc_dai_get_drvdata
(
cpu_dai
);
if
(
host
->
saved_params
.
mute
==
ucontrol
->
value
.
integer
.
value
[
0
])
if
(
host
->
saved_params
.
mute
==
ucontrol
->
value
.
integer
.
value
[
0
])
...
...
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