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
4301aecb
Commit
4301aecb
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/log' into asoc-next
parents
edbe08ad
b1bc7b3c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
309 additions
and
284 deletions
+309
-284
sound/soc/soc-cache.c
sound/soc/soc-cache.c
+5
-5
sound/soc/soc-core.c
sound/soc/soc-core.c
+123
-118
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+74
-60
sound/soc/soc-jack.c
sound/soc/soc-jack.c
+7
-6
sound/soc/soc-pcm.c
sound/soc/soc-pcm.c
+100
-95
No files found.
sound/soc/soc-cache.c
View file @
4301aecb
...
...
@@ -88,7 +88,7 @@ static int snd_soc_flat_cache_sync(struct snd_soc_codec *codec)
ret
=
snd_soc_write
(
codec
,
i
,
val
);
if
(
ret
)
return
ret
;
dev_dbg
(
codec
->
dev
,
"Synced register %#x, value = %#x
\n
"
,
dev_dbg
(
codec
->
dev
,
"
ASoC:
Synced register %#x, value = %#x
\n
"
,
i
,
val
);
}
return
0
;
...
...
@@ -156,7 +156,7 @@ int snd_soc_cache_init(struct snd_soc_codec *codec)
/* Fall back to flat compression */
if
(
i
==
ARRAY_SIZE
(
cache_types
))
{
dev_warn
(
codec
->
dev
,
"Could not match compress type: %d
\n
"
,
dev_warn
(
codec
->
dev
,
"
ASoC:
Could not match compress type: %d
\n
"
,
codec
->
compress_type
);
i
=
0
;
}
...
...
@@ -166,7 +166,7 @@ int snd_soc_cache_init(struct snd_soc_codec *codec)
if
(
codec
->
cache_ops
->
init
)
{
if
(
codec
->
cache_ops
->
name
)
dev_dbg
(
codec
->
dev
,
"Initializing %s cache for %s codec
\n
"
,
dev_dbg
(
codec
->
dev
,
"
ASoC:
Initializing %s cache for %s codec
\n
"
,
codec
->
cache_ops
->
name
,
codec
->
name
);
return
codec
->
cache_ops
->
init
(
codec
);
}
...
...
@@ -181,7 +181,7 @@ int snd_soc_cache_exit(struct snd_soc_codec *codec)
{
if
(
codec
->
cache_ops
&&
codec
->
cache_ops
->
exit
)
{
if
(
codec
->
cache_ops
->
name
)
dev_dbg
(
codec
->
dev
,
"Destroying %s cache for %s codec
\n
"
,
dev_dbg
(
codec
->
dev
,
"
ASoC:
Destroying %s cache for %s codec
\n
"
,
codec
->
cache_ops
->
name
,
codec
->
name
);
return
codec
->
cache_ops
->
exit
(
codec
);
}
...
...
@@ -265,7 +265,7 @@ int snd_soc_cache_sync(struct snd_soc_codec *codec)
name
=
"unknown"
;
if
(
codec
->
cache_ops
->
name
)
dev_dbg
(
codec
->
dev
,
"Syncing %s cache for %s codec
\n
"
,
dev_dbg
(
codec
->
dev
,
"
ASoC:
Syncing %s cache for %s codec
\n
"
,
codec
->
cache_ops
->
name
,
codec
->
name
);
trace_snd_soc_cache_sync
(
codec
,
name
,
"start"
);
ret
=
codec
->
cache_ops
->
sync
(
codec
);
...
...
sound/soc/soc-core.c
View file @
4301aecb
This diff is collapsed.
Click to expand it.
sound/soc/soc-dapm.c
View file @
4301aecb
This diff is collapsed.
Click to expand it.
sound/soc/soc-jack.c
View file @
4301aecb
...
...
@@ -169,12 +169,13 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
for
(
i
=
0
;
i
<
count
;
i
++
)
{
if
(
!
pins
[
i
].
pin
)
{
printk
(
KERN_ERR
"No name for pin %d
\n
"
,
i
);
dev_err
(
jack
->
codec
->
dev
,
"ASoC: No name for pin %d
\n
"
,
i
);
return
-
EINVAL
;
}
if
(
!
pins
[
i
].
mask
)
{
printk
(
KERN_ERR
"No mask for pin %d (%s)
\n
"
,
i
,
pins
[
i
].
pin
);
dev_err
(
jack
->
codec
->
dev
,
"ASoC: No mask for pin %d"
" (%s)
\n
"
,
i
,
pins
[
i
].
pin
);
return
-
EINVAL
;
}
...
...
@@ -294,13 +295,13 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
for
(
i
=
0
;
i
<
count
;
i
++
)
{
if
(
!
gpio_is_valid
(
gpios
[
i
].
gpio
))
{
printk
(
KERN_ERR
"
Invalid gpio %d
\n
"
,
dev_err
(
jack
->
codec
->
dev
,
"ASoC:
Invalid gpio %d
\n
"
,
gpios
[
i
].
gpio
);
ret
=
-
EINVAL
;
goto
undo
;
}
if
(
!
gpios
[
i
].
name
)
{
printk
(
KERN_ERR
"
No name for gpio %d
\n
"
,
dev_err
(
jack
->
codec
->
dev
,
"ASoC:
No name for gpio %d
\n
"
,
gpios
[
i
].
gpio
);
ret
=
-
EINVAL
;
goto
undo
;
...
...
@@ -329,7 +330,7 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
if
(
gpios
[
i
].
wake
)
{
ret
=
irq_set_irq_wake
(
gpio_to_irq
(
gpios
[
i
].
gpio
),
1
);
if
(
ret
!=
0
)
printk
(
KERN_ERR
dev_err
(
jack
->
codec
->
dev
,
"ASoC: "
"Failed to mark GPIO %d as wake source: %d
\n
"
,
gpios
[
i
].
gpio
,
ret
);
}
...
...
sound/soc/soc-pcm.c
View file @
4301aecb
This diff is collapsed.
Click to expand it.
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