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
2f0600b6
Commit
2f0600b6
authored
May 24, 2008
by
David Woodhouse
Committed by
David Woodhouse
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vx: treat firmware data as const
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
b8d21807
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sound/drivers/vx/vx_core.c
sound/drivers/vx/vx_core.c
+2
-2
No files found.
sound/drivers/vx/vx_core.c
View file @
2f0600b6
...
@@ -453,7 +453,7 @@ int snd_vx_load_boot_image(struct vx_core *chip, const struct firmware *boot)
...
@@ -453,7 +453,7 @@ int snd_vx_load_boot_image(struct vx_core *chip, const struct firmware *boot)
vx_outb
(
chip
,
TXM
,
0
);
vx_outb
(
chip
,
TXM
,
0
);
vx_outb
(
chip
,
TXL
,
0
);
vx_outb
(
chip
,
TXL
,
0
);
}
else
{
}
else
{
unsigned
char
*
image
=
boot
->
data
+
i
;
const
unsigned
char
*
image
=
boot
->
data
+
i
;
if
(
vx_wait_isr_bit
(
chip
,
ISR_TX_EMPTY
)
<
0
)
{
if
(
vx_wait_isr_bit
(
chip
,
ISR_TX_EMPTY
)
<
0
)
{
snd_printk
(
KERN_ERR
"dsp boot failed at %d
\n
"
,
i
);
snd_printk
(
KERN_ERR
"dsp boot failed at %d
\n
"
,
i
);
return
-
EIO
;
return
-
EIO
;
...
@@ -671,7 +671,7 @@ int snd_vx_dsp_load(struct vx_core *chip, const struct firmware *dsp)
...
@@ -671,7 +671,7 @@ int snd_vx_dsp_load(struct vx_core *chip, const struct firmware *dsp)
unsigned
int
i
;
unsigned
int
i
;
int
err
;
int
err
;
unsigned
int
csum
=
0
;
unsigned
int
csum
=
0
;
unsigned
char
*
image
,
*
cptr
;
const
unsigned
char
*
image
,
*
cptr
;
snd_assert
(
dsp
->
size
%
3
==
0
,
return
-
EINVAL
);
snd_assert
(
dsp
->
size
%
3
==
0
,
return
-
EINVAL
);
...
...
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