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
f24368c2
Commit
f24368c2
authored
Oct 21, 2008
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Convert core to use standard debug print macros
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
d45f6219
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
22 deletions
+14
-22
sound/soc/soc-core.c
sound/soc/soc-core.c
+14
-22
No files found.
sound/soc/soc-core.c
View file @
f24368c2
...
...
@@ -35,14 +35,6 @@
#include <sound/soc-dapm.h>
#include <sound/initval.h>
/* debug */
#define SOC_DEBUG 0
#if SOC_DEBUG
#define dbg(format, arg...) printk(format, ## arg)
#else
#define dbg(format, arg...)
#endif
static
DEFINE_MUTEX
(
pcm_mutex
);
static
DEFINE_MUTEX
(
io_mutex
);
static
DECLARE_WAIT_QUEUE_HEAD
(
soc_pm_waitq
);
...
...
@@ -229,12 +221,12 @@ static int soc_pcm_open(struct snd_pcm_substream *substream)
goto
machine_err
;
}
db
g
(
"asoc: %s <-> %s info:
\n
"
,
codec_dai
->
name
,
cpu_dai
->
name
);
db
g
(
"asoc: rate mask 0x%x
\n
"
,
runtime
->
hw
.
rates
);
db
g
(
"asoc: min ch %d max ch %d
\n
"
,
runtime
->
hw
.
channels_min
,
runtime
->
hw
.
channels_max
);
db
g
(
"asoc: min rate %d max rate %d
\n
"
,
runtime
->
hw
.
rate_min
,
runtime
->
hw
.
rate_max
);
pr_debu
g
(
"asoc: %s <-> %s info:
\n
"
,
codec_dai
->
name
,
cpu_dai
->
name
);
pr_debu
g
(
"asoc: rate mask 0x%x
\n
"
,
runtime
->
hw
.
rates
);
pr_debu
g
(
"asoc: min ch %d max ch %d
\n
"
,
runtime
->
hw
.
channels_min
,
runtime
->
hw
.
channels_max
);
pr_debu
g
(
"asoc: min rate %d max rate %d
\n
"
,
runtime
->
hw
.
rate_min
,
runtime
->
hw
.
rate_max
);
if
(
substream
->
stream
==
SNDRV_PCM_STREAM_PLAYBACK
)
cpu_dai
->
playback
.
active
=
codec_dai
->
playback
.
active
=
1
;
...
...
@@ -279,18 +271,18 @@ static void close_delayed_work(struct work_struct *work)
for
(
i
=
0
;
i
<
codec
->
num_dai
;
i
++
)
{
codec_dai
=
&
codec
->
dai
[
i
];
db
g
(
"pop wq checking: %s status: %s waiting: %s
\n
"
,
codec_dai
->
playback
.
stream_name
,
codec_dai
->
playback
.
active
?
"active"
:
"inactive"
,
codec_dai
->
pop_wait
?
"yes"
:
"no"
);
pr_debu
g
(
"pop wq checking: %s status: %s waiting: %s
\n
"
,
codec_dai
->
playback
.
stream_name
,
codec_dai
->
playback
.
active
?
"active"
:
"inactive"
,
codec_dai
->
pop_wait
?
"yes"
:
"no"
);
/* are we waiting on this codec DAI stream */
if
(
codec_dai
->
pop_wait
==
1
)
{
/* Reduce power if no longer active */
if
(
codec
->
active
==
0
)
{
db
g
(
"pop wq D1 %s %s
\n
"
,
codec
->
name
,
codec_dai
->
playback
.
stream_name
);
pr_debu
g
(
"pop wq D1 %s %s
\n
"
,
codec
->
name
,
codec_dai
->
playback
.
stream_name
);
snd_soc_dapm_set_bias_level
(
socdev
,
SND_SOC_BIAS_PREPARE
);
}
...
...
@@ -302,8 +294,8 @@ static void close_delayed_work(struct work_struct *work)
/* Fall into standby if no longer active */
if
(
codec
->
active
==
0
)
{
db
g
(
"pop wq D3 %s %s
\n
"
,
codec
->
name
,
codec_dai
->
playback
.
stream_name
);
pr_debu
g
(
"pop wq D3 %s %s
\n
"
,
codec
->
name
,
codec_dai
->
playback
.
stream_name
);
snd_soc_dapm_set_bias_level
(
socdev
,
SND_SOC_BIAS_STANDBY
);
}
...
...
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