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
99cbb861
Commit
99cbb861
authored
Feb 13, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/asoc' into for-linus
parents
7c56c29a
14fa43f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/tlv320aic3x.c
+7
-4
sound/soc/codecs/wm8990.c
sound/soc/codecs/wm8990.c
+3
-1
sound/soc/omap/sdp3430.c
sound/soc/omap/sdp3430.c
+2
-2
sound/soc/soc-core.c
sound/soc/soc-core.c
+4
-1
No files found.
sound/soc/codecs/tlv320aic3x.c
View file @
99cbb861
...
@@ -165,10 +165,13 @@ static int snd_soc_dapm_put_volsw_aic3x(struct snd_kcontrol *kcontrol,
...
@@ -165,10 +165,13 @@ static int snd_soc_dapm_put_volsw_aic3x(struct snd_kcontrol *kcontrol,
struct
snd_ctl_elem_value
*
ucontrol
)
struct
snd_ctl_elem_value
*
ucontrol
)
{
{
struct
snd_soc_dapm_widget
*
widget
=
snd_kcontrol_chip
(
kcontrol
);
struct
snd_soc_dapm_widget
*
widget
=
snd_kcontrol_chip
(
kcontrol
);
int
reg
=
kcontrol
->
private_value
&
0xff
;
struct
soc_mixer_control
*
mc
=
int
shift
=
(
kcontrol
->
private_value
>>
8
)
&
0x0f
;
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
int
mask
=
(
kcontrol
->
private_value
>>
16
)
&
0xff
;
unsigned
int
reg
=
mc
->
reg
;
int
invert
=
(
kcontrol
->
private_value
>>
24
)
&
0x01
;
unsigned
int
shift
=
mc
->
shift
;
int
max
=
mc
->
max
;
unsigned
int
mask
=
(
1
<<
fls
(
max
))
-
1
;
unsigned
int
invert
=
mc
->
invert
;
unsigned
short
val
,
val_mask
;
unsigned
short
val
,
val_mask
;
int
ret
;
int
ret
;
struct
snd_soc_dapm_path
*
path
;
struct
snd_soc_dapm_path
*
path
;
...
...
sound/soc/codecs/wm8990.c
View file @
99cbb861
...
@@ -176,7 +176,9 @@ static int wm899x_outpga_put_volsw_vu(struct snd_kcontrol *kcontrol,
...
@@ -176,7 +176,9 @@ static int wm899x_outpga_put_volsw_vu(struct snd_kcontrol *kcontrol,
struct
snd_ctl_elem_value
*
ucontrol
)
struct
snd_ctl_elem_value
*
ucontrol
)
{
{
struct
snd_soc_codec
*
codec
=
snd_kcontrol_chip
(
kcontrol
);
struct
snd_soc_codec
*
codec
=
snd_kcontrol_chip
(
kcontrol
);
int
reg
=
kcontrol
->
private_value
&
0xff
;
struct
soc_mixer_control
*
mc
=
(
struct
soc_mixer_control
*
)
kcontrol
->
private_value
;
int
reg
=
mc
->
reg
;
int
ret
;
int
ret
;
u16
val
;
u16
val
;
...
...
sound/soc/omap/sdp3430.c
View file @
99cbb861
...
@@ -91,7 +91,7 @@ static struct snd_soc_dai_link sdp3430_dai = {
...
@@ -91,7 +91,7 @@ static struct snd_soc_dai_link sdp3430_dai = {
};
};
/* Audio machine driver */
/* Audio machine driver */
static
struct
snd_soc_
machine
snd_soc_machine
_sdp3430
=
{
static
struct
snd_soc_
card
snd_soc
_sdp3430
=
{
.
name
=
"SDP3430"
,
.
name
=
"SDP3430"
,
.
platform
=
&
omap_soc_platform
,
.
platform
=
&
omap_soc_platform
,
.
dai_link
=
&
sdp3430_dai
,
.
dai_link
=
&
sdp3430_dai
,
...
@@ -100,7 +100,7 @@ static struct snd_soc_machine snd_soc_machine_sdp3430 = {
...
@@ -100,7 +100,7 @@ static struct snd_soc_machine snd_soc_machine_sdp3430 = {
/* Audio subsystem */
/* Audio subsystem */
static
struct
snd_soc_device
sdp3430_snd_devdata
=
{
static
struct
snd_soc_device
sdp3430_snd_devdata
=
{
.
machine
=
&
snd_soc_machine
_sdp3430
,
.
card
=
&
snd_soc
_sdp3430
,
.
codec_dev
=
&
soc_codec_dev_twl4030
,
.
codec_dev
=
&
soc_codec_dev_twl4030
,
};
};
...
...
sound/soc/soc-core.c
View file @
99cbb861
...
@@ -1385,7 +1385,10 @@ int snd_soc_init_card(struct snd_soc_device *socdev)
...
@@ -1385,7 +1385,10 @@ int snd_soc_init_card(struct snd_soc_device *socdev)
mutex_lock
(
&
codec
->
mutex
);
mutex_lock
(
&
codec
->
mutex
);
#ifdef CONFIG_SND_SOC_AC97_BUS
#ifdef CONFIG_SND_SOC_AC97_BUS
if
(
ac97
)
{
/* Only instantiate AC97 if not already done by the adaptor
* for the generic AC97 subsystem.
*/
if
(
ac97
&&
strcmp
(
codec
->
name
,
"AC97"
)
!=
0
)
{
ret
=
soc_ac97_dev_register
(
codec
);
ret
=
soc_ac97_dev_register
(
codec
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
printk
(
KERN_ERR
"asoc: AC97 device register failed
\n
"
);
printk
(
KERN_ERR
"asoc: AC97 device register failed
\n
"
);
...
...
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