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
f14c6f97
Commit
f14c6f97
authored
Aug 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/ad1980' into asoc-next
parents
dfd18caa
9e7e474c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
sound/soc/codecs/ad1980.c
sound/soc/codecs/ad1980.c
+43
-0
No files found.
sound/soc/codecs/ad1980.c
View file @
f14c6f97
...
...
@@ -96,6 +96,44 @@ SOC_ENUM("Capture Source", ad1980_cap_src),
SOC_SINGLE
(
"Mic Boost Switch"
,
AC97_MIC
,
6
,
1
,
0
),
};
static
const
struct
snd_soc_dapm_widget
ad1980_dapm_widgets
[]
=
{
SND_SOC_DAPM_INPUT
(
"MIC1"
),
SND_SOC_DAPM_INPUT
(
"MIC2"
),
SND_SOC_DAPM_INPUT
(
"CD_L"
),
SND_SOC_DAPM_INPUT
(
"CD_R"
),
SND_SOC_DAPM_INPUT
(
"AUX_L"
),
SND_SOC_DAPM_INPUT
(
"AUX_R"
),
SND_SOC_DAPM_INPUT
(
"LINE_IN_L"
),
SND_SOC_DAPM_INPUT
(
"LINE_IN_R"
),
SND_SOC_DAPM_OUTPUT
(
"LFE_OUT"
),
SND_SOC_DAPM_OUTPUT
(
"CENTER_OUT"
),
SND_SOC_DAPM_OUTPUT
(
"LINE_OUT_L"
),
SND_SOC_DAPM_OUTPUT
(
"LINE_OUT_R"
),
SND_SOC_DAPM_OUTPUT
(
"MONO_OUT"
),
SND_SOC_DAPM_OUTPUT
(
"HP_OUT_L"
),
SND_SOC_DAPM_OUTPUT
(
"HP_OUT_R"
),
};
static
const
struct
snd_soc_dapm_route
ad1980_dapm_routes
[]
=
{
{
"Capture"
,
NULL
,
"MIC1"
},
{
"Capture"
,
NULL
,
"MIC2"
},
{
"Capture"
,
NULL
,
"CD_L"
},
{
"Capture"
,
NULL
,
"CD_R"
},
{
"Capture"
,
NULL
,
"AUX_L"
},
{
"Capture"
,
NULL
,
"AUX_R"
},
{
"Capture"
,
NULL
,
"LINE_IN_L"
},
{
"Capture"
,
NULL
,
"LINE_IN_R"
},
{
"LFE_OUT"
,
NULL
,
"Playback"
},
{
"CENTER_OUT"
,
NULL
,
"Playback"
},
{
"LINE_OUT_L"
,
NULL
,
"Playback"
},
{
"LINE_OUT_R"
,
NULL
,
"Playback"
},
{
"MONO_OUT"
,
NULL
,
"Playback"
},
{
"HP_OUT_L"
,
NULL
,
"Playback"
},
{
"HP_OUT_R"
,
NULL
,
"Playback"
},
};
static
unsigned
int
ac97_read
(
struct
snd_soc_codec
*
codec
,
unsigned
int
reg
)
{
...
...
@@ -253,6 +291,11 @@ static struct snd_soc_codec_driver soc_codec_dev_ad1980 = {
.
reg_cache_step
=
2
,
.
write
=
ac97_write
,
.
read
=
ac97_read
,
.
dapm_widgets
=
ad1980_dapm_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
ad1980_dapm_widgets
),
.
dapm_routes
=
ad1980_dapm_routes
,
.
num_dapm_routes
=
ARRAY_SIZE
(
ad1980_dapm_routes
),
};
static
int
ad1980_probe
(
struct
platform_device
*
pdev
)
...
...
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