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
ed14ee0e
Commit
ed14ee0e
authored
Sep 23, 2015
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'asoc/fix/wm8960' and 'asoc/fix/wm8962' into asoc-linus
parents
d86a2fe4
8524bb0c
ee92cfb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
sound/soc/codecs/wm8960.c
sound/soc/codecs/wm8960.c
+18
-8
sound/soc/codecs/wm8962.c
sound/soc/codecs/wm8962.c
+2
-1
No files found.
sound/soc/codecs/wm8960.c
View file @
ed14ee0e
...
...
@@ -211,28 +211,38 @@ static int wm8960_put_deemph(struct snd_kcontrol *kcontrol,
return
wm8960_set_deemph
(
codec
);
}
static
const
DECLARE_TLV_DB_SCALE
(
adc_tlv
,
-
9700
,
50
,
0
);
static
const
DECLARE_TLV_DB_SCALE
(
dac_tlv
,
-
12700
,
50
,
1
);
static
const
DECLARE_TLV_DB_SCALE
(
adc_tlv
,
-
9750
,
50
,
1
);
static
const
DECLARE_TLV_DB_SCALE
(
inpga_tlv
,
-
1725
,
75
,
0
);
static
const
DECLARE_TLV_DB_SCALE
(
dac_tlv
,
-
12750
,
50
,
1
);
static
const
DECLARE_TLV_DB_SCALE
(
bypass_tlv
,
-
2100
,
300
,
0
);
static
const
DECLARE_TLV_DB_SCALE
(
out_tlv
,
-
12100
,
100
,
1
);
static
const
DECLARE_TLV_DB_SCALE
(
boost_tlv
,
-
1200
,
300
,
1
);
static
const
DECLARE_TLV_DB_SCALE
(
lineinboost_tlv
,
-
1500
,
300
,
1
);
static
const
unsigned
int
micboost_tlv
[]
=
{
TLV_DB_RANGE_HEAD
(
2
),
0
,
1
,
TLV_DB_SCALE_ITEM
(
0
,
1300
,
0
),
2
,
3
,
TLV_DB_SCALE_ITEM
(
2000
,
900
,
0
),
};
static
const
struct
snd_kcontrol_new
wm8960_snd_controls
[]
=
{
SOC_DOUBLE_R_TLV
(
"Capture Volume"
,
WM8960_LINVOL
,
WM8960_RINVOL
,
0
,
63
,
0
,
adc
_tlv
),
0
,
63
,
0
,
inpga
_tlv
),
SOC_DOUBLE_R
(
"Capture Volume ZC Switch"
,
WM8960_LINVOL
,
WM8960_RINVOL
,
6
,
1
,
0
),
SOC_DOUBLE_R
(
"Capture Switch"
,
WM8960_LINVOL
,
WM8960_RINVOL
,
7
,
1
,
0
),
SOC_SINGLE_TLV
(
"Right Input Boost Mixer RINPUT3 Volume"
,
WM8960_INBMIX1
,
4
,
7
,
0
,
boost_tlv
),
WM8960_INBMIX1
,
4
,
7
,
0
,
linein
boost_tlv
),
SOC_SINGLE_TLV
(
"Right Input Boost Mixer RINPUT2 Volume"
,
WM8960_INBMIX1
,
1
,
7
,
0
,
boost_tlv
),
WM8960_INBMIX1
,
1
,
7
,
0
,
linein
boost_tlv
),
SOC_SINGLE_TLV
(
"Left Input Boost Mixer LINPUT3 Volume"
,
WM8960_INBMIX2
,
4
,
7
,
0
,
boost_tlv
),
WM8960_INBMIX2
,
4
,
7
,
0
,
linein
boost_tlv
),
SOC_SINGLE_TLV
(
"Left Input Boost Mixer LINPUT2 Volume"
,
WM8960_INBMIX2
,
1
,
7
,
0
,
boost_tlv
),
WM8960_INBMIX2
,
1
,
7
,
0
,
lineinboost_tlv
),
SOC_SINGLE_TLV
(
"Right Input Boost Mixer RINPUT1 Volume"
,
WM8960_RINPATH
,
4
,
3
,
0
,
micboost_tlv
),
SOC_SINGLE_TLV
(
"Left Input Boost Mixer LINPUT1 Volume"
,
WM8960_LINPATH
,
4
,
3
,
0
,
micboost_tlv
),
SOC_DOUBLE_R_TLV
(
"Playback Volume"
,
WM8960_LDAC
,
WM8960_RDAC
,
0
,
255
,
0
,
dac_tlv
),
...
...
sound/soc/codecs/wm8962.c
View file @
ed14ee0e
...
...
@@ -2944,7 +2944,8 @@ static int wm8962_mute(struct snd_soc_dai *dai, int mute)
WM8962_DAC_MUTE
,
val
);
}
#define WM8962_RATES SNDRV_PCM_RATE_8000_96000
#define WM8962_RATES (SNDRV_PCM_RATE_8000_48000 |\
SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
#define WM8962_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE |\
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
...
...
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