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
4f5448ae
Commit
4f5448ae
authored
Oct 08, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Convert Simtec machines to table based DAPM init
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
6179b772
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
sound/soc/samsung/s3c24xx_simtec_hermes.c
sound/soc/samsung/s3c24xx_simtec_hermes.c
+5
-5
sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
+5
-5
No files found.
sound/soc/samsung/s3c24xx_simtec_hermes.c
View file @
4f5448ae
...
...
@@ -65,11 +65,6 @@ static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd)
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_new_controls
(
dapm
,
dapm_widgets
,
ARRAY_SIZE
(
dapm_widgets
));
snd_soc_dapm_add_routes
(
dapm
,
base_map
,
ARRAY_SIZE
(
base_map
));
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line In"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line Out"
);
...
...
@@ -95,6 +90,11 @@ static struct snd_soc_card snd_soc_machine_simtec_aic33 = {
.
name
=
"Simtec-Hermes"
,
.
dai_link
=
&
simtec_dai_aic33
,
.
num_links
=
1
,
.
dapm_widgets
=
dapm_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
dapm_widgets
),
.
dapm_routes
=
base_map
,
.
num_dapm_routes
=
ARRAY_SIZE
(
base_map
),
};
static
int
__devinit
simtec_audio_hermes_probe
(
struct
platform_device
*
pd
)
...
...
sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
View file @
4f5448ae
...
...
@@ -54,11 +54,6 @@ static int simtec_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd)
struct
snd_soc_codec
*
codec
=
rtd
->
codec
;
struct
snd_soc_dapm_context
*
dapm
=
&
codec
->
dapm
;
snd_soc_dapm_new_controls
(
dapm
,
dapm_widgets
,
ARRAY_SIZE
(
dapm_widgets
));
snd_soc_dapm_add_routes
(
dapm
,
base_map
,
ARRAY_SIZE
(
base_map
));
snd_soc_dapm_enable_pin
(
dapm
,
"Headphone Jack"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line In"
);
snd_soc_dapm_enable_pin
(
dapm
,
"Line Out"
);
...
...
@@ -84,6 +79,11 @@ static struct snd_soc_card snd_soc_machine_simtec_aic23 = {
.
name
=
"Simtec"
,
.
dai_link
=
&
simtec_dai_aic23
,
.
num_links
=
1
,
.
dapm_widgets
=
dapm_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
dapm_widgets
),
.
dapm_routes
=
base_map
,
.
num_dapm_routes
=
ARRAY_SIZE
(
base_map
),
};
static
int
__devinit
simtec_audio_tlv320aic23_probe
(
struct
platform_device
*
pd
)
...
...
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