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
ffdcb88b
Commit
ffdcb88b
authored
Aug 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/max9768' into asoc-next
parents
a065050a
439fe8a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
sound/soc/codecs/max9768.c
sound/soc/codecs/max9768.c
+16
-0
No files found.
sound/soc/codecs/max9768.c
View file @
ffdcb88b
...
@@ -118,6 +118,18 @@ static const struct snd_kcontrol_new max9768_mute[] = {
...
@@ -118,6 +118,18 @@ static const struct snd_kcontrol_new max9768_mute[] = {
SOC_SINGLE_BOOL_EXT
(
"Playback Switch"
,
0
,
max9768_get_gpio
,
max9768_set_gpio
),
SOC_SINGLE_BOOL_EXT
(
"Playback Switch"
,
0
,
max9768_get_gpio
,
max9768_set_gpio
),
};
};
static
const
struct
snd_soc_dapm_widget
max9768_dapm_widgets
[]
=
{
SND_SOC_DAPM_INPUT
(
"IN"
),
SND_SOC_DAPM_OUTPUT
(
"OUT+"
),
SND_SOC_DAPM_OUTPUT
(
"OUT-"
),
};
static
const
struct
snd_soc_dapm_route
max9768_dapm_routes
[]
=
{
{
"OUT+"
,
NULL
,
"IN"
},
{
"OUT-"
,
NULL
,
"IN"
},
};
static
int
max9768_probe
(
struct
snd_soc_codec
*
codec
)
static
int
max9768_probe
(
struct
snd_soc_codec
*
codec
)
{
{
struct
max9768
*
max9768
=
snd_soc_codec_get_drvdata
(
codec
);
struct
max9768
*
max9768
=
snd_soc_codec_get_drvdata
(
codec
);
...
@@ -148,6 +160,10 @@ static struct snd_soc_codec_driver max9768_codec_driver = {
...
@@ -148,6 +160,10 @@ static struct snd_soc_codec_driver max9768_codec_driver = {
.
probe
=
max9768_probe
,
.
probe
=
max9768_probe
,
.
controls
=
max9768_volume
,
.
controls
=
max9768_volume
,
.
num_controls
=
ARRAY_SIZE
(
max9768_volume
),
.
num_controls
=
ARRAY_SIZE
(
max9768_volume
),
.
dapm_widgets
=
max9768_dapm_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
max9768_dapm_widgets
),
.
dapm_routes
=
max9768_dapm_routes
,
.
num_dapm_routes
=
ARRAY_SIZE
(
max9768_dapm_routes
),
};
};
static
const
struct
regmap_config
max9768_i2c_regmap_config
=
{
static
const
struct
regmap_config
max9768_i2c_regmap_config
=
{
...
...
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