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
Kirill Smelkov
linux
Commits
9e4fbee9
Commit
9e4fbee9
authored
Aug 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/pcm1792a' into asoc-next
parents
fc30b93f
e7a5cb42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
sound/soc/codecs/pcm1792a.c
sound/soc/codecs/pcm1792a.c
+19
-7
No files found.
sound/soc/codecs/pcm1792a.c
View file @
9e4fbee9
...
@@ -154,6 +154,20 @@ static const struct snd_kcontrol_new pcm1792a_controls[] = {
...
@@ -154,6 +154,20 @@ static const struct snd_kcontrol_new pcm1792a_controls[] = {
pcm1792a_dac_tlv
),
pcm1792a_dac_tlv
),
};
};
static
const
struct
snd_soc_dapm_widget
pcm1792a_dapm_widgets
[]
=
{
SND_SOC_DAPM_OUTPUT
(
"IOUTL+"
),
SND_SOC_DAPM_OUTPUT
(
"IOUTL-"
),
SND_SOC_DAPM_OUTPUT
(
"IOUTR+"
),
SND_SOC_DAPM_OUTPUT
(
"IOUTR-"
),
};
static
const
struct
snd_soc_dapm_route
pcm1792a_dapm_routes
[]
=
{
{
"IOUTL+"
,
NULL
,
"Playback"
},
{
"IOUTL-"
,
NULL
,
"Playback"
},
{
"IOUTR+"
,
NULL
,
"Playback"
},
{
"IOUTR-"
,
NULL
,
"Playback"
},
};
static
struct
snd_soc_dai_driver
pcm1792a_dai
=
{
static
struct
snd_soc_dai_driver
pcm1792a_dai
=
{
.
name
=
"pcm1792a-hifi"
,
.
name
=
"pcm1792a-hifi"
,
.
playback
=
{
.
playback
=
{
...
@@ -162,20 +176,14 @@ static struct snd_soc_dai_driver pcm1792a_dai = {
...
@@ -162,20 +176,14 @@ static struct snd_soc_dai_driver pcm1792a_dai = {
.
channels_max
=
2
,
.
channels_max
=
2
,
.
rates
=
PCM1792A_RATES
,
.
rates
=
PCM1792A_RATES
,
.
formats
=
PCM1792A_FORMATS
,
},
.
formats
=
PCM1792A_FORMATS
,
},
.
capture
=
{
.
channels_min
=
0
,
.
channels_max
=
0
,
},
.
ops
=
&
pcm1792a_dai_ops
,
.
ops
=
&
pcm1792a_dai_ops
,
};
};
#ifdef CONFIG_OF
static
const
struct
of_device_id
pcm1792a_of_match
[]
=
{
static
const
struct
of_device_id
pcm1792a_of_match
[]
=
{
{
.
compatible
=
"ti,pcm1792a"
,
},
{
.
compatible
=
"ti,pcm1792a"
,
},
{
}
{
}
};
};
MODULE_DEVICE_TABLE
(
of
,
pcm1792a_of_match
);
MODULE_DEVICE_TABLE
(
of
,
pcm1792a_of_match
);
#endif
static
const
struct
regmap_config
pcm1792a_regmap
=
{
static
const
struct
regmap_config
pcm1792a_regmap
=
{
.
reg_bits
=
8
,
.
reg_bits
=
8
,
...
@@ -190,6 +198,10 @@ static const struct regmap_config pcm1792a_regmap = {
...
@@ -190,6 +198,10 @@ static const struct regmap_config pcm1792a_regmap = {
static
struct
snd_soc_codec_driver
soc_codec_dev_pcm1792a
=
{
static
struct
snd_soc_codec_driver
soc_codec_dev_pcm1792a
=
{
.
controls
=
pcm1792a_controls
,
.
controls
=
pcm1792a_controls
,
.
num_controls
=
ARRAY_SIZE
(
pcm1792a_controls
),
.
num_controls
=
ARRAY_SIZE
(
pcm1792a_controls
),
.
dapm_widgets
=
pcm1792a_dapm_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
pcm1792a_dapm_widgets
),
.
dapm_routes
=
pcm1792a_dapm_routes
,
.
num_dapm_routes
=
ARRAY_SIZE
(
pcm1792a_dapm_routes
),
};
};
static
int
pcm1792a_spi_probe
(
struct
spi_device
*
spi
)
static
int
pcm1792a_spi_probe
(
struct
spi_device
*
spi
)
...
@@ -231,7 +243,7 @@ static struct spi_driver pcm1792a_codec_driver = {
...
@@ -231,7 +243,7 @@ static struct spi_driver pcm1792a_codec_driver = {
.
driver
=
{
.
driver
=
{
.
name
=
"pcm1792a"
,
.
name
=
"pcm1792a"
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
of_match_table
=
pcm1792a_of_match
,
.
of_match_table
=
of_match_ptr
(
pcm1792a_of_match
)
,
},
},
.
id_table
=
pcm1792a_spi_ids
,
.
id_table
=
pcm1792a_spi_ids
,
.
probe
=
pcm1792a_spi_probe
,
.
probe
=
pcm1792a_spi_probe
,
...
...
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