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
73e13d0f
Commit
73e13d0f
authored
Nov 10, 2017
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/component' into asoc-next
parents
4d0210e6
e0dac41b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
11 deletions
+30
-11
include/sound/soc.h
include/sound/soc.h
+7
-0
sound/soc/soc-core.c
sound/soc/soc-core.c
+23
-11
No files found.
include/sound/soc.h
View file @
73e13d0f
...
...
@@ -468,6 +468,11 @@ int snd_soc_register_codec(struct device *dev,
const
struct
snd_soc_codec_driver
*
codec_drv
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
);
void
snd_soc_unregister_codec
(
struct
device
*
dev
);
int
snd_soc_add_component
(
struct
device
*
dev
,
struct
snd_soc_component
*
component
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
);
int
snd_soc_register_component
(
struct
device
*
dev
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
);
...
...
@@ -1487,6 +1492,8 @@ int snd_soc_component_set_sysclk(struct snd_soc_component *component,
int
snd_soc_component_set_pll
(
struct
snd_soc_component
*
component
,
int
pll_id
,
int
source
,
unsigned
int
freq_in
,
unsigned
int
freq_out
);
int
snd_soc_component_set_jack
(
struct
snd_soc_component
*
component
,
struct
snd_soc_jack
*
jack
,
void
*
data
);
#ifdef CONFIG_REGMAP
...
...
sound/soc/soc-core.c
View file @
73e13d0f
...
...
@@ -3371,20 +3371,14 @@ static void snd_soc_component_del_unlocked(struct snd_soc_component *component)
list_del
(
&
component
->
list
);
}
int
snd_soc_register_component
(
struct
device
*
dev
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
)
int
snd_soc_add_component
(
struct
device
*
dev
,
struct
snd_soc_component
*
component
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
)
{
struct
snd_soc_component
*
component
;
int
ret
;
component
=
kzalloc
(
sizeof
(
*
component
),
GFP_KERNEL
);
if
(
!
component
)
{
dev_err
(
dev
,
"ASoC: Failed to allocate memory
\n
"
);
return
-
ENOMEM
;
}
ret
=
snd_soc_component_initialize
(
component
,
component_driver
,
dev
);
if
(
ret
)
goto
err_free
;
...
...
@@ -3408,6 +3402,24 @@ int snd_soc_register_component(struct device *dev,
kfree
(
component
);
return
ret
;
}
EXPORT_SYMBOL_GPL
(
snd_soc_add_component
);
int
snd_soc_register_component
(
struct
device
*
dev
,
const
struct
snd_soc_component_driver
*
component_driver
,
struct
snd_soc_dai_driver
*
dai_drv
,
int
num_dai
)
{
struct
snd_soc_component
*
component
;
component
=
kzalloc
(
sizeof
(
*
component
),
GFP_KERNEL
);
if
(
!
component
)
{
dev_err
(
dev
,
"ASoC: Failed to allocate memory
\n
"
);
return
-
ENOMEM
;
}
return
snd_soc_add_component
(
dev
,
component
,
component_driver
,
dai_drv
,
num_dai
);
}
EXPORT_SYMBOL_GPL
(
snd_soc_register_component
);
/**
...
...
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