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
9914574d
Commit
9914574d
authored
Mar 28, 2018
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
parents
dd4232c5
f7e73b26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
55 deletions
+21
-55
sound/soc/soc-core.c
sound/soc/soc-core.c
+21
-55
No files found.
sound/soc/soc-core.c
View file @
9914574d
...
...
@@ -221,14 +221,14 @@ static const struct attribute_group soc_dapm_dev_group = {
.
is_visible
=
soc_dev_attr_is_visible
,
};
static
const
struct
attribute_group
soc_dev_roup
=
{
static
const
struct
attribute_group
soc_dev_
g
roup
=
{
.
attrs
=
soc_dev_attrs
,
.
is_visible
=
soc_dev_attr_is_visible
,
};
static
const
struct
attribute_group
*
soc_dev_attr_groups
[]
=
{
&
soc_dapm_dev_group
,
&
soc_dev_roup
,
&
soc_dev_
g
roup
,
NULL
};
...
...
@@ -349,7 +349,7 @@ static void soc_init_codec_debugfs(struct snd_soc_component *component)
"ASoC: Failed to create codec register debugfs file
\n
"
);
}
static
int
codec_list_s
eq_s
how
(
struct
seq_file
*
m
,
void
*
v
)
static
int
codec_list_show
(
struct
seq_file
*
m
,
void
*
v
)
{
struct
snd_soc_codec
*
codec
;
...
...
@@ -362,20 +362,9 @@ static int codec_list_seq_show(struct seq_file *m, void *v)
return
0
;
}
DEFINE_SHOW_ATTRIBUTE
(
codec_list
);
static
int
codec_list_seq_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
return
single_open
(
file
,
codec_list_seq_show
,
NULL
);
}
static
const
struct
file_operations
codec_list_fops
=
{
.
open
=
codec_list_seq_open
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
.
release
=
single_release
,
};
static
int
dai_list_seq_show
(
struct
seq_file
*
m
,
void
*
v
)
static
int
dai_list_show
(
struct
seq_file
*
m
,
void
*
v
)
{
struct
snd_soc_component
*
component
;
struct
snd_soc_dai
*
dai
;
...
...
@@ -390,20 +379,9 @@ static int dai_list_seq_show(struct seq_file *m, void *v)
return
0
;
}
DEFINE_SHOW_ATTRIBUTE
(
dai_list
);
static
int
dai_list_seq_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
return
single_open
(
file
,
dai_list_seq_show
,
NULL
);
}
static
const
struct
file_operations
dai_list_fops
=
{
.
open
=
dai_list_seq_open
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
.
release
=
single_release
,
};
static
int
platform_list_seq_show
(
struct
seq_file
*
m
,
void
*
v
)
static
int
platform_list_show
(
struct
seq_file
*
m
,
void
*
v
)
{
struct
snd_soc_platform
*
platform
;
...
...
@@ -416,18 +394,7 @@ static int platform_list_seq_show(struct seq_file *m, void *v)
return
0
;
}
static
int
platform_list_seq_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
return
single_open
(
file
,
platform_list_seq_show
,
NULL
);
}
static
const
struct
file_operations
platform_list_fops
=
{
.
open
=
platform_list_seq_open
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
.
release
=
single_release
,
};
DEFINE_SHOW_ATTRIBUTE
(
platform_list
);
static
void
soc_init_card_debugfs
(
struct
snd_soc_card
*
card
)
{
...
...
@@ -1100,8 +1067,8 @@ static int soc_bind_dai_link(struct snd_soc_card *card,
cpu_dai_component
.
dai_name
=
dai_link
->
cpu_dai_name
;
rtd
->
cpu_dai
=
snd_soc_find_dai
(
&
cpu_dai_component
);
if
(
!
rtd
->
cpu_dai
)
{
dev_
err
(
card
->
dev
,
"ASoC: CPU DAI %s not registered
\n
"
,
dai_link
->
cpu_dai_name
);
dev_
info
(
card
->
dev
,
"ASoC: CPU DAI %s not registered
\n
"
,
dai_link
->
cpu_dai_name
);
goto
_err_defer
;
}
snd_soc_rtdcom_add
(
rtd
,
rtd
->
cpu_dai
->
component
);
...
...
@@ -1619,22 +1586,21 @@ static int soc_probe_link_components(struct snd_soc_card *card,
static
int
soc_probe_dai
(
struct
snd_soc_dai
*
dai
,
int
order
)
{
int
ret
;
if
(
dai
->
probed
||
dai
->
driver
->
probe_order
!=
order
)
return
0
;
if
(
!
dai
->
probed
&&
dai
->
driver
->
probe_order
==
order
)
{
if
(
dai
->
driver
->
probe
)
{
ret
=
dai
->
driver
->
probe
(
dai
);
if
(
ret
<
0
)
{
dev_err
(
dai
->
dev
,
"ASoC: failed to probe DAI %s: %d
\n
"
,
dai
->
name
,
ret
);
return
ret
;
}
if
(
dai
->
driver
->
probe
)
{
int
ret
=
dai
->
driver
->
probe
(
dai
);
if
(
ret
<
0
)
{
dev_err
(
dai
->
dev
,
"ASoC: failed to probe DAI %s: %d
\n
"
,
dai
->
name
,
ret
);
return
ret
;
}
dai
->
probed
=
1
;
}
dai
->
probed
=
1
;
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