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
c7aaf78a
Commit
c7aaf78a
authored
Jul 13, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Plain Diff
Merge tetrachloride.(none):/mnt/raid/src/kernel/2.5/bk-linus
into tetrachloride.(none):/mnt/raid/src/kernel/2.5/agpgart
parents
32139ce5
14dae1f7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
9 deletions
+26
-9
init/version.c
init/version.c
+6
-2
lib/vsprintf.c
lib/vsprintf.c
+2
-2
sound/oss/ad1889.c
sound/oss/ad1889.c
+10
-3
sound/oss/maestro.c
sound/oss/maestro.c
+8
-2
No files found.
init/version.c
View file @
c7aaf78a
...
@@ -17,8 +17,12 @@
...
@@ -17,8 +17,12 @@
int
version_string
(
LINUX_VERSION_CODE
);
int
version_string
(
LINUX_VERSION_CODE
);
struct
new_utsname
system_utsname
=
{
struct
new_utsname
system_utsname
=
{
UTS_SYSNAME
,
UTS_NODENAME
,
UTS_RELEASE
,
UTS_VERSION
,
.
sysname
=
UTS_SYSNAME
,
UTS_MACHINE
,
UTS_DOMAINNAME
.
nodename
=
UTS_NODENAME
,
.
release
=
UTS_RELEASE
,
.
version
=
UTS_VERSION
,
.
machine
=
UTS_MACHINE
,
.
domainname
=
UTS_DOMAINNAME
,
};
};
const
char
*
linux_banner
=
const
char
*
linux_banner
=
...
...
lib/vsprintf.c
View file @
c7aaf78a
...
@@ -143,9 +143,9 @@ static char * number(char * buf, char * end, unsigned long long num, int base, i
...
@@ -143,9 +143,9 @@ static char * number(char * buf, char * end, unsigned long long num, int base, i
c
=
(
type
&
ZEROPAD
)
?
'0'
:
' '
;
c
=
(
type
&
ZEROPAD
)
?
'0'
:
' '
;
sign
=
0
;
sign
=
0
;
if
(
type
&
SIGN
)
{
if
(
type
&
SIGN
)
{
if
(
num
<
0
)
{
if
(
(
signed
long
long
)
num
<
0
)
{
sign
=
'-'
;
sign
=
'-'
;
num
=
-
num
;
num
=
-
(
signed
long
long
)
num
;
size
--
;
size
--
;
}
else
if
(
type
&
PLUS
)
{
}
else
if
(
type
&
PLUS
)
{
sign
=
'+'
;
sign
=
'+'
;
...
...
sound/oss/ad1889.c
View file @
c7aaf78a
...
@@ -236,16 +236,23 @@ static ad1889_dev_t *ad1889_alloc_dev(struct pci_dev *pci)
...
@@ -236,16 +236,23 @@ static ad1889_dev_t *ad1889_alloc_dev(struct pci_dev *pci)
for
(
i
=
0
;
i
<
AD_MAX_STATES
;
i
++
)
{
for
(
i
=
0
;
i
<
AD_MAX_STATES
;
i
++
)
{
dmabuf
=
&
dev
->
state
[
i
].
dmabuf
;
dmabuf
=
&
dev
->
state
[
i
].
dmabuf
;
if
((
dmabuf
->
rawbuf
=
kmalloc
(
DMA_SIZE
,
GFP_KERNEL
|
GFP_DMA
))
==
NULL
)
dmabuf
->
rawbuf
=
kmalloc
(
DMA_SIZE
,
GFP_KERNEL
|
GFP_DMA
);
return
NULL
;
if
(
!
dmabuf
->
rawbuf
)
goto
err_free_dmabuf
;
dmabuf
->
rawbuf_size
=
DMA_SIZE
;
dmabuf
->
rawbuf_size
=
DMA_SIZE
;
dmabuf
->
dma_handle
=
0
;
dmabuf
->
dma_handle
=
0
;
dmabuf
->
rd_ptr
=
dmabuf
->
wr_ptr
=
dmabuf
->
dma_len
=
0UL
;
dmabuf
->
rd_ptr
=
dmabuf
->
wr_ptr
=
dmabuf
->
dma_len
=
0UL
;
dmabuf
->
ready
=
0
;
dmabuf
->
ready
=
0
;
dmabuf
->
rate
=
44100
;
dmabuf
->
rate
=
44100
;
}
}
out:
return
dev
;
return
dev
;
err_free_dmabuf:
while
(
--
i
>=
0
)
kfree
(
dev
->
state
[
i
].
dmabuf
.
rawbuf
);
kfree
(
dev
);
return
NULL
;
}
}
static
void
ad1889_free_dev
(
ad1889_dev_t
*
dev
)
static
void
ad1889_free_dev
(
ad1889_dev_t
*
dev
)
...
...
sound/oss/maestro.c
View file @
c7aaf78a
...
@@ -726,6 +726,12 @@ static void ac97_write_mixer(struct ess_card *card,int mixer, unsigned int left,
...
@@ -726,6 +726,12 @@ static void ac97_write_mixer(struct ess_card *card,int mixer, unsigned int left,
left
=
(
left
*
mh
->
scale
)
/
100
;
left
=
(
left
*
mh
->
scale
)
/
100
;
if
((
left
==
0
)
&&
(
right
==
0
))
if
((
left
==
0
)
&&
(
right
==
0
))
val
|=
0x8000
;
val
|=
0x8000
;
}
else
if
(
mixer
==
SOUND_MIXER_PCM
||
mixer
==
SOUND_MIXER_CD
)
{
/* log conversion seems bad for them */
if
((
left
==
0
)
&&
(
right
==
0
))
val
=
0x8000
;
right
=
((
100
-
right
)
*
mh
->
scale
)
/
100
;
left
=
((
100
-
left
)
*
mh
->
scale
)
/
100
;
}
else
{
}
else
{
/* log conversion for the stereo controls */
/* log conversion for the stereo controls */
if
((
left
==
0
)
&&
(
right
==
0
))
if
((
left
==
0
)
&&
(
right
==
0
))
...
@@ -1937,12 +1943,12 @@ ess_interrupt(int irq, void *dev_id, struct pt_regs *regs)
...
@@ -1937,12 +1943,12 @@ ess_interrupt(int irq, void *dev_id, struct pt_regs *regs)
manner by adjusting the master mixer volume. */
manner by adjusting the master mixer volume. */
volume
=
c
->
mix
.
mixer_state
[
0
]
&
0xff
;
volume
=
c
->
mix
.
mixer_state
[
0
]
&
0xff
;
if
(
vol_evt
==
UP_EVT
)
{
if
(
vol_evt
==
UP_EVT
)
{
volume
+=
10
;
volume
+=
5
;
if
(
volume
>
100
)
if
(
volume
>
100
)
volume
=
100
;
volume
=
100
;
}
}
else
if
(
vol_evt
==
DOWN_EVT
)
{
else
if
(
vol_evt
==
DOWN_EVT
)
{
volume
-=
10
;
volume
-=
5
;
if
(
volume
<
0
)
if
(
volume
<
0
)
volume
=
0
;
volume
=
0
;
}
else
{
}
else
{
...
...
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