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
1ce286b9
Commit
1ce286b9
authored
Apr 29, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/rt5645' into asoc-linus
parents
49422ad3
53f9b3ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5645.c
+12
-1
No files found.
sound/soc/codecs/rt5645.c
View file @
1ce286b9
...
...
@@ -18,6 +18,7 @@
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/gpio.h>
#include <linux/acpi.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
...
...
@@ -2656,6 +2657,15 @@ static const struct i2c_device_id rt5645_i2c_id[] = {
};
MODULE_DEVICE_TABLE
(
i2c
,
rt5645_i2c_id
);
#ifdef CONFIG_ACPI
static
struct
acpi_device_id
rt5645_acpi_match
[]
=
{
{
"10EC5645"
,
0
},
{
"10EC5650"
,
0
},
{},
};
MODULE_DEVICE_TABLE
(
acpi
,
rt5645_acpi_match
);
#endif
static
int
rt5645_i2c_probe
(
struct
i2c_client
*
i2c
,
const
struct
i2c_device_id
*
id
)
{
...
...
@@ -2770,7 +2780,7 @@ static int rt5645_i2c_probe(struct i2c_client *i2c,
case
RT5645_DMIC_DATA_GPIO12
:
regmap_update_bits
(
rt5645
->
regmap
,
RT5645_DMIC_CTRL1
,
RT5645_DMIC_
1
_DP_MASK
,
RT5645_DMIC_2_DP_GPIO12
);
RT5645_DMIC_
2
_DP_MASK
,
RT5645_DMIC_2_DP_GPIO12
);
regmap_update_bits
(
rt5645
->
regmap
,
RT5645_GPIO_CTRL1
,
RT5645_GP12_PIN_MASK
,
RT5645_GP12_PIN_DMIC2_SDA
);
...
...
@@ -2872,6 +2882,7 @@ static struct i2c_driver rt5645_i2c_driver = {
.
driver
=
{
.
name
=
"rt5645"
,
.
owner
=
THIS_MODULE
,
.
acpi_match_table
=
ACPI_PTR
(
rt5645_acpi_match
),
},
.
probe
=
rt5645_i2c_probe
,
.
remove
=
rt5645_i2c_remove
,
...
...
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