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
Kirill Smelkov
linux
Commits
89350640
Commit
89350640
authored
Jul 23, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: pcm - Fix warnings in debug loggings
Add proper cast. Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
cedb8118
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
sound/core/pcm_lib.c
sound/core/pcm_lib.c
+12
-12
No files found.
sound/core/pcm_lib.c
View file @
89350640
...
@@ -238,12 +238,12 @@ static int snd_pcm_update_hw_ptr_interrupt(struct snd_pcm_substream *substream)
...
@@ -238,12 +238,12 @@ static int snd_pcm_update_hw_ptr_interrupt(struct snd_pcm_substream *substream)
pcm_debug_name
(
substream
,
name
,
sizeof
(
name
));
pcm_debug_name
(
substream
,
name
,
sizeof
(
name
));
snd_printd
(
"period_update: %s: pos=0x%x/0x%x/0x%x, "
snd_printd
(
"period_update: %s: pos=0x%x/0x%x/0x%x, "
"hwptr=0x%lx, hw_base=0x%lx, hw_intr=0x%lx
\n
"
,
"hwptr=0x%lx, hw_base=0x%lx, hw_intr=0x%lx
\n
"
,
name
,
pos
,
name
,
(
unsigned
int
)
pos
,
(
int
)
runtime
->
period_size
,
(
unsigned
int
)
runtime
->
period_size
,
(
int
)
runtime
->
buffer_size
,
(
unsigned
int
)
runtime
->
buffer_size
,
(
long
)
old_hw_ptr
,
(
unsigned
long
)
old_hw_ptr
,
(
long
)
runtime
->
hw_ptr_base
,
(
unsigned
long
)
runtime
->
hw_ptr_base
,
(
long
)
runtime
->
hw_ptr_interrupt
);
(
unsigned
long
)
runtime
->
hw_ptr_interrupt
);
}
}
hw_base
=
runtime
->
hw_ptr_base
;
hw_base
=
runtime
->
hw_ptr_base
;
new_hw_ptr
=
hw_base
+
pos
;
new_hw_ptr
=
hw_base
+
pos
;
...
@@ -370,12 +370,12 @@ int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream)
...
@@ -370,12 +370,12 @@ int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream)
pcm_debug_name
(
substream
,
name
,
sizeof
(
name
));
pcm_debug_name
(
substream
,
name
,
sizeof
(
name
));
snd_printd
(
"hw_update: %s: pos=0x%x/0x%x/0x%x, "
snd_printd
(
"hw_update: %s: pos=0x%x/0x%x/0x%x, "
"hwptr=0x%lx, hw_base=0x%lx, hw_intr=0x%lx
\n
"
,
"hwptr=0x%lx, hw_base=0x%lx, hw_intr=0x%lx
\n
"
,
name
,
pos
,
name
,
(
unsigned
int
)
pos
,
(
int
)
runtime
->
period_size
,
(
unsigned
int
)
runtime
->
period_size
,
(
int
)
runtime
->
buffer_size
,
(
unsigned
int
)
runtime
->
buffer_size
,
(
long
)
old_hw_ptr
,
(
unsigned
long
)
old_hw_ptr
,
(
long
)
runtime
->
hw_ptr_base
,
(
unsigned
long
)
runtime
->
hw_ptr_base
,
(
long
)
runtime
->
hw_ptr_interrupt
);
(
unsigned
long
)
runtime
->
hw_ptr_interrupt
);
}
}
hw_base
=
runtime
->
hw_ptr_base
;
hw_base
=
runtime
->
hw_ptr_base
;
...
...
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