Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
049da639
Commit
049da639
authored
Apr 23, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.30' into for-2.6.31
parents
2d7e71fa
19ab054d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
sound/soc/codecs/Makefile
sound/soc/codecs/Makefile
+0
-1
sound/soc/codecs/wm8580.c
sound/soc/codecs/wm8580.c
+10
-6
sound/soc/codecs/wm9705.c
sound/soc/codecs/wm9705.c
+1
-1
No files found.
sound/soc/codecs/Makefile
View file @
049da639
...
@@ -60,7 +60,6 @@ obj-$(CONFIG_SND_SOC_WM8971) += snd-soc-wm8971.o
...
@@ -60,7 +60,6 @@ obj-$(CONFIG_SND_SOC_WM8971) += snd-soc-wm8971.o
obj-$(CONFIG_SND_SOC_WM8960)
+=
snd-soc-wm8960.o
obj-$(CONFIG_SND_SOC_WM8960)
+=
snd-soc-wm8960.o
obj-$(CONFIG_SND_SOC_WM8988)
+=
snd-soc-wm8988.o
obj-$(CONFIG_SND_SOC_WM8988)
+=
snd-soc-wm8988.o
obj-$(CONFIG_SND_SOC_WM8990)
+=
snd-soc-wm8990.o
obj-$(CONFIG_SND_SOC_WM8990)
+=
snd-soc-wm8990.o
obj-$(CONFIG_SND_SOC_WM8991)
+=
snd-soc-wm8991.o
obj-$(CONFIG_SND_SOC_WM9705)
+=
snd-soc-wm9705.o
obj-$(CONFIG_SND_SOC_WM9705)
+=
snd-soc-wm9705.o
obj-$(CONFIG_SND_SOC_WM9712)
+=
snd-soc-wm9712.o
obj-$(CONFIG_SND_SOC_WM9712)
+=
snd-soc-wm9712.o
obj-$(CONFIG_SND_SOC_WM9713)
+=
snd-soc-wm9713.o
obj-$(CONFIG_SND_SOC_WM9713)
+=
snd-soc-wm9713.o
sound/soc/codecs/wm8580.c
View file @
049da639
...
@@ -268,9 +268,11 @@ static const DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1);
...
@@ -268,9 +268,11 @@ static const DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1);
static
int
wm8580_out_vu
(
struct
snd_kcontrol
*
kcontrol
,
static
int
wm8580_out_vu
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
struct
snd_ctl_elem_value
*
ucontrol
)
{
{
struct
soc_mixer_control
*
mc
=
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
struct
snd_soc_codec
*
codec
=
snd_kcontrol_chip
(
kcontrol
);
struct
snd_soc_codec
*
codec
=
snd_kcontrol_chip
(
kcontrol
);
int
reg
=
kcontrol
->
private_value
&
0xff
;
unsigned
int
reg
=
mc
->
reg
;
int
reg2
=
(
kcontrol
->
private_value
>>
24
)
&
0xff
;
unsigned
int
reg2
=
mc
->
rreg
;
int
ret
;
int
ret
;
u16
val
;
u16
val
;
...
@@ -292,15 +294,17 @@ static int wm8580_out_vu(struct snd_kcontrol *kcontrol,
...
@@ -292,15 +294,17 @@ static int wm8580_out_vu(struct snd_kcontrol *kcontrol,
return
0
;
return
0
;
}
}
#define SOC_WM8580_OUT_DOUBLE_R_TLV(xname, reg_left, reg_right, shift, max, invert, tlv_array) \
#define SOC_WM8580_OUT_DOUBLE_R_TLV(xname, reg_left, reg_right, xshift, xmax, \
xinvert, tlv_array) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
.access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
.access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
SNDRV_CTL_ELEM_ACCESS_READWRITE, \
SNDRV_CTL_ELEM_ACCESS_READWRITE, \
.tlv.p = (tlv_array), \
.tlv.p = (tlv_array), \
.info = snd_soc_info_volsw_2r, \
.info = snd_soc_info_volsw_2r, \
.get = snd_soc_get_volsw_2r, .put = wm8580_out_vu, \
.get = snd_soc_get_volsw_2r, .put = wm8580_out_vu, \
.private_value = (reg_left) | ((shift) << 8) | \
.private_value = (unsigned long)&(struct soc_mixer_control) \
((max) << 12) | ((invert) << 20) | ((reg_right) << 24) }
{.reg = reg_left, .rreg = reg_right, .shift = xshift, \
.max = xmax, .invert = xinvert} }
static
const
struct
snd_kcontrol_new
wm8580_snd_controls
[]
=
{
static
const
struct
snd_kcontrol_new
wm8580_snd_controls
[]
=
{
SOC_WM8580_OUT_DOUBLE_R_TLV
(
"DAC1 Playback Volume"
,
SOC_WM8580_OUT_DOUBLE_R_TLV
(
"DAC1 Playback Volume"
,
...
@@ -522,7 +526,7 @@ static int wm8580_set_dai_pll(struct snd_soc_dai *codec_dai,
...
@@ -522,7 +526,7 @@ static int wm8580_set_dai_pll(struct snd_soc_dai *codec_dai,
reg
=
wm8580_read
(
codec
,
WM8580_PLLA4
+
offset
);
reg
=
wm8580_read
(
codec
,
WM8580_PLLA4
+
offset
);
reg
&=
~
0x3f
;
reg
&=
~
0x3f
;
reg
|=
pll_div
.
prescale
|
pll_div
.
postscale
<<
1
|
reg
|=
pll_div
.
prescale
|
pll_div
.
postscale
<<
1
|
pll_div
.
freqmode
<<
4
;
pll_div
.
freqmode
<<
3
;
wm8580_write
(
codec
,
WM8580_PLLA4
+
offset
,
reg
);
wm8580_write
(
codec
,
WM8580_PLLA4
+
offset
,
reg
);
...
...
sound/soc/codecs/wm9705.c
View file @
049da639
...
@@ -318,7 +318,7 @@ static int wm9705_reset(struct snd_soc_codec *codec)
...
@@ -318,7 +318,7 @@ static int wm9705_reset(struct snd_soc_codec *codec)
}
}
#ifdef CONFIG_PM
#ifdef CONFIG_PM
static
int
wm9705_soc_suspend
(
struct
platform_device
*
pdev
)
static
int
wm9705_soc_suspend
(
struct
platform_device
*
pdev
,
pm_message_t
msg
)
{
{
struct
snd_soc_device
*
socdev
=
platform_get_drvdata
(
pdev
);
struct
snd_soc_device
*
socdev
=
platform_get_drvdata
(
pdev
);
struct
snd_soc_codec
*
codec
=
socdev
->
card
->
codec
;
struct
snd_soc_codec
*
codec
=
socdev
->
card
->
codec
;
...
...
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