Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jan.koester
Linux
Commits
8d47e8a5
Commit
8d47e8a5
authored
12 years ago
by
Mark Brown
Browse files
Options
Downloads
Patches
Plain Diff
ASoC: bells: Add WM2200 support
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
b1387078
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sound/soc/samsung/bells.c
+46
-0
46 additions, 0 deletions
sound/soc/samsung/bells.c
with
46 additions
and
0 deletions
sound/soc/samsung/bells.c
+
46
−
0
View file @
8d47e8a5
...
...
@@ -40,6 +40,10 @@ struct bells_drvdata {
int
asyncclk_rate
;
};
static
struct
bells_drvdata
wm2200_drvdata
=
{
.
sysclk_rate
=
22579200
,
};
static
struct
bells_drvdata
wm5102_drvdata
=
{
.
sysclk_rate
=
45158400
,
.
asyncclk_rate
=
49152000
,
...
...
@@ -223,6 +227,30 @@ static const struct snd_soc_pcm_stream sub_params = {
.
channels_max
=
2
,
};
static
struct
snd_soc_dai_link
bells_dai_wm2200
[]
=
{
{
.
name
=
"CPU-DSP"
,
.
stream_name
=
"CPU-DSP"
,
.
cpu_dai_name
=
"samsung-i2s.0"
,
.
codec_dai_name
=
"wm0010-sdi1"
,
.
platform_name
=
"samsung-audio"
,
.
codec_name
=
"spi0.0"
,
.
dai_fmt
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_NB_NF
|
SND_SOC_DAIFMT_CBM_CFM
,
},
{
.
name
=
"DSP-CODEC"
,
.
stream_name
=
"DSP-CODEC"
,
.
cpu_dai_name
=
"wm0010-sdi2"
,
.
codec_dai_name
=
"wm2200"
,
.
codec_name
=
"wm2200.1-003a"
,
.
dai_fmt
=
SND_SOC_DAIFMT_I2S
|
SND_SOC_DAIFMT_NB_NF
|
SND_SOC_DAIFMT_CBM_CFM
,
.
params
=
&
sub_params
,
.
ignore_suspend
=
1
,
},
};
static
struct
snd_soc_dai_link
bells_dai_wm5102
[]
=
{
{
.
name
=
"CPU-DSP"
,
...
...
@@ -327,6 +355,24 @@ static struct snd_soc_dapm_route bells_routes[] = {
};
static
struct
snd_soc_card
bells_cards
[]
=
{
{
.
name
=
"Bells WM2200"
,
.
owner
=
THIS_MODULE
,
.
dai_link
=
bells_dai_wm2200
,
.
num_links
=
ARRAY_SIZE
(
bells_dai_wm2200
),
.
codec_conf
=
bells_codec_conf
,
.
num_configs
=
ARRAY_SIZE
(
bells_codec_conf
),
.
late_probe
=
bells_late_probe
,
.
dapm_routes
=
bells_routes
,
.
num_dapm_routes
=
ARRAY_SIZE
(
bells_routes
),
.
set_bias_level
=
bells_set_bias_level
,
.
set_bias_level_post
=
bells_set_bias_level_post
,
.
drvdata
=
&
wm2200_drvdata
,
},
{
.
name
=
"Bells WM5102"
,
.
owner
=
THIS_MODULE
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment