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
7c24d7d6
Commit
7c24d7d6
authored
Aug 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/cs4271' into asoc-next
parents
ab8a4364
2e7fb942
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
sound/soc/codecs/cs4271.c
sound/soc/codecs/cs4271.c
+28
-2
No files found.
sound/soc/codecs/cs4271.c
View file @
7c24d7d6
...
...
@@ -173,6 +173,26 @@ struct cs4271_private {
bool
enable_soft_reset
;
};
static
const
struct
snd_soc_dapm_widget
cs4271_dapm_widgets
[]
=
{
SND_SOC_DAPM_INPUT
(
"AINA"
),
SND_SOC_DAPM_INPUT
(
"AINB"
),
SND_SOC_DAPM_OUTPUT
(
"AOUTA+"
),
SND_SOC_DAPM_OUTPUT
(
"AOUTA-"
),
SND_SOC_DAPM_OUTPUT
(
"AOUTB+"
),
SND_SOC_DAPM_OUTPUT
(
"AOUTB-"
),
};
static
const
struct
snd_soc_dapm_route
cs4271_dapm_routes
[]
=
{
{
"Capture"
,
NULL
,
"AINA"
},
{
"Capture"
,
NULL
,
"AINB"
},
{
"AOUTA+"
,
NULL
,
"Playback"
},
{
"AOUTA-"
,
NULL
,
"Playback"
},
{
"AOUTB+"
,
NULL
,
"Playback"
},
{
"AOUTB-"
,
NULL
,
"Playback"
},
};
/*
* @freq is the desired MCLK rate
* MCLK rate should (c) be the sample rate, multiplied by one of the
...
...
@@ -576,8 +596,7 @@ static int cs4271_probe(struct snd_soc_codec *codec)
CS4271_MODE2_MUTECAEQUB
,
CS4271_MODE2_MUTECAEQUB
);
return
snd_soc_add_codec_controls
(
codec
,
cs4271_snd_controls
,
ARRAY_SIZE
(
cs4271_snd_controls
));
return
0
;
}
static
int
cs4271_remove
(
struct
snd_soc_codec
*
codec
)
...
...
@@ -596,6 +615,13 @@ static struct snd_soc_codec_driver soc_codec_dev_cs4271 = {
.
remove
=
cs4271_remove
,
.
suspend
=
cs4271_soc_suspend
,
.
resume
=
cs4271_soc_resume
,
.
controls
=
cs4271_snd_controls
,
.
num_controls
=
ARRAY_SIZE
(
cs4271_snd_controls
),
.
dapm_widgets
=
cs4271_dapm_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
cs4271_dapm_widgets
),
.
dapm_routes
=
cs4271_dapm_routes
,
.
num_dapm_routes
=
ARRAY_SIZE
(
cs4271_dapm_routes
),
};
#if defined(CONFIG_SPI_MASTER)
...
...
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