X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsigsession.cpp;h=fc26a23d784b0f5b2c11fecf993e01358f582428;hp=11ba6b068a180df0cb281c94a577ef7329d070de;hb=488883133fefe0af41737cea9b2fc9eb114042b8;hpb=94fe58efe521284904f7cddf2c8f833c2b8d48e8 diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 11ba6b06..fc26a23d 100644 --- 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, - 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, - record_length, sample_rate)); + record_length)); } 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, - uint64_t record_length, uint64_t sample_rate) + uint64_t record_length) { assert(sdi); @@ -156,14 +156,6 @@ void SigSession::sample_thread_proc(struct sr_dev_inst *sdi, 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;