Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
f37ad4a5
Commit
f37ad4a5
authored
Mar 21, 2013
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[minor-fix] fa-zio-drv.c: stop_io() is only for ZIO software triggers
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
ef4ff14a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
fa-zio-drv.c
kernel/fa-zio-drv.c
+8
-16
No files found.
kernel/fa-zio-drv.c
View file @
f37ad4a5
...
...
@@ -610,31 +610,23 @@ static int zfad_input_cset(struct zio_cset *cset)
* zfad_stop_cset
* @cset: channel set to stop
*
* Stop an acquisition, reset indexes and disable interrupts
* Stop an acquisition, reset indexes and disable interrupts. This function
* is useful only if the driver is using a software trigger.
*/
static
void
zfad_stop_cset
(
struct
zio_cset
*
cset
)
{
struct
fa_dev
*
fa
=
cset
->
zdev
->
priv_d
;
/* Force the acquisition to stop */
zfad_fsm_command
(
fa
,
ZFA_STOP
);
/*
* Disable all interrupt. We are aborting acquisition, we don't need
* any interrupt
*/
dev_dbg
(
fa
->
fmc
->
hwdev
,
"Disable interrupts
\n
"
);
zfa_common_conf_set
(
fa
,
ZFA_IRQ_MASK
,
ZFAT_NONE
);
/* reset counters */
fa
->
n_shots
=
0
;
fa
->
n_fires
=
0
;
/* Clear active block */
cset
->
interleave
->
active_block
=
NULL
;
/* If the user is using a software trigger
, then free zfad_block
*/
/* If the user is using a software trigger */
if
(
cset
->
trig
!=
&
zfat_type
)
{
/* Force the acquisition to stop */
zfad_fsm_command
(
fa
,
ZFA_STOP
);
/* Release zfad_block */
kfree
(
cset
->
interleave
->
priv_d
);
cset
->
interleave
->
priv_d
=
NULL
;
/* Clear active block */
cset
->
interleave
->
active_block
=
NULL
;
}
}
/* * * * * * * * * * * * * IRQ functions handler * * * * * * * * * * * * * * */
...
...
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