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
2c950422
Commit
2c950422
authored
Mar 29, 2010
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.34' into for-2.6.35
parents
9dd7b79a
fb48e3c6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
sound/soc/codecs/ac97.c
sound/soc/codecs/ac97.c
+9
-6
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+1
-1
sound/soc/soc-core.c
sound/soc/soc-core.c
+2
-1
No files found.
sound/soc/codecs/ac97.c
View file @
2c950422
...
@@ -80,9 +80,11 @@ static int ac97_write(struct snd_soc_codec *codec, unsigned int reg,
...
@@ -80,9 +80,11 @@ static int ac97_write(struct snd_soc_codec *codec, unsigned int reg,
static
int
ac97_soc_probe
(
struct
platform_device
*
pdev
)
static
int
ac97_soc_probe
(
struct
platform_device
*
pdev
)
{
{
struct
snd_soc_device
*
socdev
=
platform_get_drvdata
(
pdev
);
struct
snd_soc_device
*
socdev
=
platform_get_drvdata
(
pdev
);
struct
snd_soc_card
*
card
=
socdev
->
card
;
struct
snd_soc_codec
*
codec
;
struct
snd_soc_codec
*
codec
;
struct
snd_ac97_bus
*
ac97_bus
;
struct
snd_ac97_bus
*
ac97_bus
;
struct
snd_ac97_template
ac97_template
;
struct
snd_ac97_template
ac97_template
;
int
i
;
int
ret
=
0
;
int
ret
=
0
;
printk
(
KERN_INFO
"AC97 SoC Audio Codec %s
\n
"
,
AC97_VERSION
);
printk
(
KERN_INFO
"AC97 SoC Audio Codec %s
\n
"
,
AC97_VERSION
);
...
@@ -102,12 +104,6 @@ static int ac97_soc_probe(struct platform_device *pdev)
...
@@ -102,12 +104,6 @@ static int ac97_soc_probe(struct platform_device *pdev)
INIT_LIST_HEAD
(
&
codec
->
dapm_widgets
);
INIT_LIST_HEAD
(
&
codec
->
dapm_widgets
);
INIT_LIST_HEAD
(
&
codec
->
dapm_paths
);
INIT_LIST_HEAD
(
&
codec
->
dapm_paths
);
ret
=
snd_soc_new_ac97_codec
(
codec
,
&
soc_ac97_ops
,
0
);
if
(
ret
<
0
)
{
printk
(
KERN_ERR
"ASoC: failed to init gen ac97 glue
\n
"
);
goto
err
;
}
/* register pcms */
/* register pcms */
ret
=
snd_soc_new_pcms
(
socdev
,
SNDRV_DEFAULT_IDX1
,
SNDRV_DEFAULT_STR1
);
ret
=
snd_soc_new_pcms
(
socdev
,
SNDRV_DEFAULT_IDX1
,
SNDRV_DEFAULT_STR1
);
if
(
ret
<
0
)
if
(
ret
<
0
)
...
@@ -123,6 +119,13 @@ static int ac97_soc_probe(struct platform_device *pdev)
...
@@ -123,6 +119,13 @@ static int ac97_soc_probe(struct platform_device *pdev)
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
bus_err
;
goto
bus_err
;
for
(
i
=
0
;
i
<
card
->
num_links
;
i
++
)
{
if
(
card
->
dai_link
[
i
].
codec_dai
->
ac97_control
)
{
snd_ac97_dev_add_pdata
(
codec
->
ac97
,
card
->
dai_link
[
i
].
cpu_dai
->
ac97_pdata
);
}
}
return
0
;
return
0
;
bus_err:
bus_err:
...
...
sound/soc/codecs/wm8994.c
View file @
2c950422
...
@@ -3438,7 +3438,7 @@ struct snd_soc_dai wm8994_dai[] = {
...
@@ -3438,7 +3438,7 @@ struct snd_soc_dai wm8994_dai[] = {
.
rates
=
WM8994_RATES
,
.
rates
=
WM8994_RATES
,
.
formats
=
WM8994_FORMATS
,
.
formats
=
WM8994_FORMATS
,
},
},
.
playback
=
{
.
capture
=
{
.
stream_name
=
"AIF3 Capture"
,
.
stream_name
=
"AIF3 Capture"
,
.
channels_min
=
2
,
.
channels_min
=
2
,
.
channels_max
=
2
,
.
channels_max
=
2
,
...
...
sound/soc/soc-core.c
View file @
2c950422
...
@@ -1597,7 +1597,8 @@ int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid)
...
@@ -1597,7 +1597,8 @@ int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid)
mutex_unlock
(
&
codec
->
mutex
);
mutex_unlock
(
&
codec
->
mutex
);
return
ret
;
return
ret
;
}
}
if
(
card
->
dai_link
[
i
].
codec_dai
->
ac97_control
)
{
/* Check for codec->ac97 to handle the ac97.c fun */
if
(
card
->
dai_link
[
i
].
codec_dai
->
ac97_control
&&
codec
->
ac97
)
{
snd_ac97_dev_add_pdata
(
codec
->
ac97
,
snd_ac97_dev_add_pdata
(
codec
->
ac97
,
card
->
dai_link
[
i
].
cpu_dai
->
ac97_pdata
);
card
->
dai_link
[
i
].
cpu_dai
->
ac97_pdata
);
}
}
...
...
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