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
3d716a0a
Commit
3d716a0a
authored
Apr 30, 2015
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/jack' into for-next
parents
71f881ce
43b2cd54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
sound/core/jack.c
sound/core/jack.c
+13
-4
No files found.
sound/core/jack.c
View file @
3d716a0a
...
...
@@ -87,6 +87,10 @@ static int snd_jack_dev_register(struct snd_device *device)
snprintf
(
jack
->
name
,
sizeof
(
jack
->
name
),
"%s %s"
,
card
->
shortname
,
jack
->
id
);
if
(
!
jack
->
input_dev
)
return
0
;
jack
->
input_dev
->
name
=
jack
->
name
;
/* Default to the sound card device. */
...
...
@@ -278,6 +282,8 @@ EXPORT_SYMBOL(snd_jack_new);
void
snd_jack_set_parent
(
struct
snd_jack
*
jack
,
struct
device
*
parent
)
{
WARN_ON
(
jack
->
registered
);
if
(
!
jack
->
input_dev
)
return
;
jack
->
input_dev
->
dev
.
parent
=
parent
;
}
...
...
@@ -339,6 +345,13 @@ void snd_jack_report(struct snd_jack *jack, int status)
if
(
!
jack
)
return
;
list_for_each_entry
(
jack_kctl
,
&
jack
->
kctl_list
,
list
)
snd_kctl_jack_report
(
jack
->
card
,
jack_kctl
->
kctl
,
status
&
jack_kctl
->
mask_bits
);
if
(
!
jack
->
input_dev
)
return
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
jack
->
key
);
i
++
)
{
int
testbit
=
SND_JACK_BTN_0
>>
i
;
...
...
@@ -357,10 +370,6 @@ void snd_jack_report(struct snd_jack *jack, int status)
input_sync
(
jack
->
input_dev
);
list_for_each_entry
(
jack_kctl
,
&
jack
->
kctl_list
,
list
)
snd_kctl_jack_report
(
jack
->
card
,
jack_kctl
->
kctl
,
status
&
jack_kctl
->
mask_bits
);
}
EXPORT_SYMBOL
(
snd_jack_report
);
...
...
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