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
211bcc6c
Commit
211bcc6c
authored
Jun 28, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/debugfs' into asoc-component
Conflicts: sound/soc/soc-core.c
parents
88a8fe3d
e73f3de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
sound/soc/soc-core.c
sound/soc/soc-core.c
+26
-4
No files found.
sound/soc/soc-core.c
View file @
211bcc6c
...
...
@@ -270,12 +270,33 @@ static const struct file_operations codec_reg_fops = {
.
llseek
=
default_llseek
,
};
static
struct
dentry
*
soc_debugfs_create_dir
(
struct
dentry
*
parent
,
const
char
*
fmt
,
...)
{
struct
dentry
*
de
;
va_list
ap
;
char
*
s
;
va_start
(
ap
,
fmt
);
s
=
kvasprintf
(
GFP_KERNEL
,
fmt
,
ap
);
va_end
(
ap
);
if
(
!
s
)
return
NULL
;
de
=
debugfs_create_dir
(
s
,
parent
);
kfree
(
s
);
return
de
;
}
static
void
soc_init_codec_debugfs
(
struct
snd_soc_codec
*
codec
)
{
struct
dentry
*
debugfs_card_root
=
codec
->
card
->
debugfs_card_root
;
codec
->
debugfs_codec_root
=
debugfs_create_dir
(
codec
->
component
.
name
,
debugfs_card_root
);
codec
->
debugfs_codec_root
=
soc_debugfs_create_dir
(
debugfs_card_root
,
"codec:%s"
,
codec
->
component
.
name
);
if
(
!
codec
->
debugfs_codec_root
)
{
dev_warn
(
codec
->
dev
,
"ASoC: Failed to create codec debugfs directory
\n
"
);
...
...
@@ -306,8 +327,9 @@ static void soc_init_platform_debugfs(struct snd_soc_platform *platform)
{
struct
dentry
*
debugfs_card_root
=
platform
->
card
->
debugfs_card_root
;
platform
->
debugfs_platform_root
=
debugfs_create_dir
(
platform
->
component
.
name
,
debugfs_card_root
);
platform
->
debugfs_platform_root
=
soc_debugfs_create_dir
(
debugfs_card_root
,
"platform:%s"
,
platform
->
component
.
name
);
if
(
!
platform
->
debugfs_platform_root
)
{
dev_warn
(
platform
->
dev
,
"ASoC: Failed to create platform debugfs directory
\n
"
);
...
...
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