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
4c11a761
Commit
4c11a761
authored
Mar 13, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/jack' into asoc-next
parents
2620954d
f1adf5be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
include/sound/soc.h
include/sound/soc.h
+2
-1
sound/soc/soc-jack.c
sound/soc/soc-jack.c
+3
-2
No files found.
include/sound/soc.h
View file @
4c11a761
...
...
@@ -607,7 +607,8 @@ struct snd_soc_jack_gpio {
struct
snd_soc_jack
*
jack
;
struct
delayed_work
work
;
int
(
*
jack_status_check
)(
void
);
void
*
data
;
int
(
*
jack_status_check
)(
void
*
data
);
};
struct
snd_soc_jack
{
...
...
sound/soc/soc-jack.c
View file @
4c11a761
...
...
@@ -250,7 +250,7 @@ static void snd_soc_jack_gpio_detect(struct snd_soc_jack_gpio *gpio)
report
=
0
;
if
(
gpio
->
jack_status_check
)
report
=
gpio
->
jack_status_check
();
report
=
gpio
->
jack_status_check
(
gpio
->
data
);
snd_soc_jack_report
(
jack
,
report
,
gpio
->
report
);
}
...
...
@@ -342,7 +342,8 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
gpio_export
(
gpios
[
i
].
gpio
,
false
);
/* Update initial jack status */
snd_soc_jack_gpio_detect
(
&
gpios
[
i
]);
schedule_delayed_work
(
&
gpios
[
i
].
work
,
msecs_to_jiffies
(
gpios
[
i
].
debounce_time
));
}
return
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