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
b4a80dac
Commit
b4a80dac
authored
Nov 11, 2003
by
Wei Ni
Committed by
Linus Torvalds
Nov 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Legacy ALi5455 Audio Driver update
We've resolved some bugs in legacy ALi5455 audio driver.
parent
a0118f46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
sound/oss/ali5455.c
sound/oss/ali5455.c
+7
-7
No files found.
sound/oss/ali5455.c
View file @
b4a80dac
...
@@ -1253,17 +1253,16 @@ static inline int ali_get_free_write_space(struct
...
@@ -1253,17 +1253,16 @@ static inline int ali_get_free_write_space(struct
{
{
struct
dmabuf
*
dmabuf
=
&
state
->
dmabuf
;
struct
dmabuf
*
dmabuf
=
&
state
->
dmabuf
;
int
free
;
int
free
;
ali_update_ptr
(
state
);
// catch underruns during playback
if
(
dmabuf
->
count
<
0
)
{
if
(
dmabuf
->
count
<
0
)
{
dmabuf
->
count
=
0
;
dmabuf
->
count
=
0
;
dmabuf
->
swptr
=
dmabuf
->
hwptr
;
dmabuf
->
swptr
=
dmabuf
->
hwptr
;
}
}
free
=
dmabuf
->
dmasize
-
dmabuf
->
count
;
free
=
dmabuf
->
dmasize
-
dmabuf
->
swptr
;
free
-=
(
dmabuf
->
hwptr
%
dmabuf
->
fragsize
);
if
((
dmabuf
->
count
+
free
)
>
dmabuf
->
dmasize
){
if
(
free
<
0
)
free
=
dmabuf
->
dmasize
-
dmabuf
->
count
;
return
(
0
);
}
return
(
free
)
;
return
free
;
}
}
static
inline
int
ali_get_available_read_data
(
struct
static
inline
int
ali_get_available_read_data
(
struct
...
@@ -1860,6 +1859,7 @@ static ssize_t ali_write(struct file *file,
...
@@ -1860,6 +1859,7 @@ static ssize_t ali_write(struct file *file,
NOTHING we can do to prevent it. */
NOTHING we can do to prevent it. */
/* FIXME - do timeout handling here !! */
/* FIXME - do timeout handling here !! */
schedule_timeout
(
tmo
>=
2
?
tmo
:
2
);
if
(
signal_pending
(
current
))
{
if
(
signal_pending
(
current
))
{
if
(
!
ret
)
if
(
!
ret
)
...
...
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