mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Working kernel driver.
This commit is contained in:
@@ -26,6 +26,7 @@ V4LThread::V4LThread(SampleFifo* sampleFifo, QObject* parent) :
|
||||
m_convertBuffer(BLOCKSIZE),
|
||||
m_sampleFifo(sampleFifo)
|
||||
{
|
||||
start();
|
||||
}
|
||||
|
||||
V4LThread::~V4LThread()
|
||||
@@ -35,12 +36,14 @@ V4LThread::~V4LThread()
|
||||
void V4LThread::stopWork()
|
||||
{
|
||||
m_running = false;
|
||||
wait();
|
||||
}
|
||||
|
||||
void V4LThread::run()
|
||||
{
|
||||
m_running = true;
|
||||
if (! Init() )
|
||||
OpenSource("/dev/swradio0");
|
||||
if (fd < 0)
|
||||
return;
|
||||
|
||||
while(m_running) {
|
||||
|
||||
Reference in New Issue
Block a user