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
ece59528
Commit
ece59528
authored
Aug 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/ads711x' into asoc-next
parents
a9bd1820
45a14a8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
sound/soc/codecs/ads117x.c
sound/soc/codecs/ads117x.c
+28
-1
No files found.
sound/soc/codecs/ads117x.c
View file @
ece59528
...
...
@@ -23,6 +23,28 @@
#define ADS117X_RATES (SNDRV_PCM_RATE_8000_48000)
#define ADS117X_FORMATS (SNDRV_PCM_FMTBIT_S16_LE)
static
const
struct
snd_soc_dapm_widget
ads117x_dapm_widgets
[]
=
{
SND_SOC_DAPM_INPUT
(
"Input1"
),
SND_SOC_DAPM_INPUT
(
"Input2"
),
SND_SOC_DAPM_INPUT
(
"Input3"
),
SND_SOC_DAPM_INPUT
(
"Input4"
),
SND_SOC_DAPM_INPUT
(
"Input5"
),
SND_SOC_DAPM_INPUT
(
"Input6"
),
SND_SOC_DAPM_INPUT
(
"Input7"
),
SND_SOC_DAPM_INPUT
(
"Input8"
),
};
static
const
struct
snd_soc_dapm_route
ads117x_dapm_routes
[]
=
{
{
"Capture"
,
NULL
,
"Input1"
},
{
"Capture"
,
NULL
,
"Input2"
},
{
"Capture"
,
NULL
,
"Input3"
},
{
"Capture"
,
NULL
,
"Input4"
},
{
"Capture"
,
NULL
,
"Input5"
},
{
"Capture"
,
NULL
,
"Input6"
},
{
"Capture"
,
NULL
,
"Input7"
},
{
"Capture"
,
NULL
,
"Input8"
},
};
static
struct
snd_soc_dai_driver
ads117x_dai
=
{
/* ADC */
.
name
=
"ads117x-hifi"
,
...
...
@@ -34,7 +56,12 @@ static struct snd_soc_dai_driver ads117x_dai = {
.
formats
=
ADS117X_FORMATS
,},
};
static
struct
snd_soc_codec_driver
soc_codec_dev_ads117x
;
static
struct
snd_soc_codec_driver
soc_codec_dev_ads117x
=
{
.
dapm_widgets
=
ads117x_dapm_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
ads117x_dapm_widgets
),
.
dapm_routes
=
ads117x_dapm_routes
,
.
num_dapm_routes
=
ARRAY_SIZE
(
ads117x_dapm_routes
),
};
static
int
ads117x_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