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
a39fbe00
Commit
a39fbe00
authored
Jul 24, 2016
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/rt5645' into asoc-next
parents
2d2c6e3b
79c89031
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5645.c
+21
-2
sound/soc/codecs/rt5645.h
sound/soc/codecs/rt5645.h
+3
-0
No files found.
sound/soc/codecs/rt5645.c
View file @
a39fbe00
...
...
@@ -63,6 +63,7 @@ static const struct reg_sequence init_list[] = {
{
RT5645_PR_BASE
+
0x20
,
0x611f
},
{
RT5645_PR_BASE
+
0x21
,
0x4040
},
{
RT5645_PR_BASE
+
0x23
,
0x0004
},
{
RT5645_ASRC_4
,
0x0120
},
};
static
const
struct
reg_sequence
rt5650_init_list
[]
=
{
...
...
@@ -157,7 +158,7 @@ static const struct reg_default rt5645_reg[] = {
{
0x83
,
0x0000
},
{
0x84
,
0x0000
},
{
0x85
,
0x0000
},
{
0x8a
,
0x0
00
0
},
{
0x8a
,
0x0
12
0
},
{
0x8e
,
0x0004
},
{
0x8f
,
0x1100
},
{
0x90
,
0x0646
},
...
...
@@ -314,7 +315,7 @@ static const struct reg_default rt5650_reg[] = {
{
0x83
,
0x0000
},
{
0x84
,
0x0000
},
{
0x85
,
0x0000
},
{
0x8a
,
0x0
00
0
},
{
0x8a
,
0x0
12
0
},
{
0x8e
,
0x0004
},
{
0x8f
,
0x1100
},
{
0x90
,
0x0646
},
...
...
@@ -741,6 +742,14 @@ static int rt5645_spk_put_volsw(struct snd_kcontrol *kcontrol,
return
ret
;
}
static
const
char
*
const
rt5645_dac1_vol_ctrl_mode_text
[]
=
{
"immediately"
,
"zero crossing"
,
"soft ramp"
};
static
SOC_ENUM_SINGLE_DECL
(
rt5645_dac1_vol_ctrl_mode
,
RT5645_PR_BASE
,
RT5645_DA1_ZDET_SFT
,
rt5645_dac1_vol_ctrl_mode_text
);
static
const
struct
snd_kcontrol_new
rt5645_snd_controls
[]
=
{
/* Speaker Output Volume */
SOC_DOUBLE
(
"Speaker Channel Switch"
,
RT5645_SPK_VOL
,
...
...
@@ -807,6 +816,9 @@ static const struct snd_kcontrol_new rt5645_snd_controls[] = {
SOC_SINGLE
(
"I2S2 Func Switch"
,
RT5645_GPIO_CTRL1
,
RT5645_I2S2_SEL_SFT
,
1
,
1
),
RT5645_HWEQ
(
"Speaker HWEQ"
),
/* Digital Soft Volume Control */
SOC_ENUM
(
"DAC1 Digital Volume Control Func"
,
rt5645_dac1_vol_ctrl_mode
),
};
/**
...
...
@@ -3532,6 +3544,7 @@ MODULE_DEVICE_TABLE(i2c, rt5645_i2c_id);
static
const
struct
acpi_device_id
rt5645_acpi_match
[]
=
{
{
"10EC5645"
,
0
},
{
"10EC5650"
,
0
},
{
"10EC5640"
,
0
},
{},
};
MODULE_DEVICE_TABLE
(
acpi
,
rt5645_acpi_match
);
...
...
@@ -3562,6 +3575,12 @@ static const struct dmi_system_id dmi_platform_intel_braswell[] = {
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Setzer"
),
},
},
{
.
ident
=
"Microsoft Surface 3"
,
.
matches
=
{
DMI_MATCH
(
DMI_PRODUCT_NAME
,
"Surface 3"
),
},
},
{
}
};
...
...
sound/soc/codecs/rt5645.h
View file @
a39fbe00
...
...
@@ -2018,6 +2018,9 @@
/* Codec Private Register definition */
/* DAC ADC Digital Volume (0x00) */
#define RT5645_DA1_ZDET_SFT 6
/* 3D Speaker Control (0x63) */
#define RT5645_3D_SPK_MASK (0x1 << 15)
#define RT5645_3D_SPK_SFT 15
...
...
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