projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
README: Explicitly state meaning of year ranges in copyright statements
[pulseview.git]
/
pv
/
sigsession.cpp
diff --git
a/pv/sigsession.cpp
b/pv/sigsession.cpp
index 11ba6b068a180df0cb281c94a577ef7329d070de..fc26a23d784b0f5b2c11fecf993e01358f582428 100644
(file)
--- a/
pv/sigsession.cpp
+++ b/
pv/sigsession.cpp
@@
-72,13
+72,13
@@
SigSession::capture_state SigSession::get_capture_state() const
}
void SigSession::start_capture(struct sr_dev_inst *sdi,
}
void SigSession::start_capture(struct sr_dev_inst *sdi,
- uint64_t record_length
, uint64_t sample_rate
)
+ uint64_t record_length)
{
stop_capture();
_sampling_thread.reset(new boost::thread(
&SigSession::sample_thread_proc, this, sdi,
{
stop_capture();
_sampling_thread.reset(new boost::thread(
&SigSession::sample_thread_proc, this, sdi,
- record_length
, sample_rate
));
+ record_length));
}
void SigSession::stop_capture()
}
void SigSession::stop_capture()
@@
-135,7
+135,7
@@
void SigSession::load_thread_proc(const string name)
}
void SigSession::sample_thread_proc(struct sr_dev_inst *sdi,
}
void SigSession::sample_thread_proc(struct sr_dev_inst *sdi,
- uint64_t record_length
, uint64_t sample_rate
)
+ uint64_t record_length)
{
assert(sdi);
{
assert(sdi);
@@
-156,14
+156,6
@@
void SigSession::sample_thread_proc(struct sr_dev_inst *sdi,
return;
}
return;
}
- // Set the samplerate
- if (sr_config_set(sdi, SR_CONF_SAMPLERATE,
- &sample_rate) != SR_OK) {
- qDebug() << "Failed to configure samplerate.";
- sr_session_destroy();
- return;
- }
-
if (sr_session_start() != SR_OK) {
qDebug() << "Failed to start session.";
return;
if (sr_session_start() != SR_OK) {
qDebug() << "Failed to start session.";
return;