Skip to content

Commit

Permalink
Fix no output on BBShiftString caused by fixes for BBB pru data initi…
Browse files Browse the repository at this point in the history
…alization
  • Loading branch information
dkulp committed Oct 10, 2023
1 parent a6e288c commit 8881129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/non-gpl/BBShiftString/BBShiftString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ int BBShiftStringOutput::StartPRU() {
m_pru1.pruData = (BBShiftStringData*)m_pru1.pru->data_ram;
m_pru1.pruData->command = 0;
m_pru1.pruData->address_dma = m_pru1.pru->ddr_addr;
createOutputLengths(m_pru1, "pru1");

m_pru1.pru->run("/tmp/BBShiftString_pru1.out");
createOutputLengths(m_pru1, "pru1");
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
if (m_pru0.maxStringLen) {
Expand All @@ -399,8 +399,8 @@ int BBShiftStringOutput::StartPRU() {
m_pru0.pruData = (BBShiftStringData*)m_pru0.pru->data_ram;
m_pru0.pruData->command = 0;
m_pru0.pruData->address_dma = m_pru0.pru->ddr_addr;
createOutputLengths(m_pru0, "pru0");
m_pru0.pru->run("/tmp/BBShiftString_pru0.out");
createOutputLengths(m_pru0, "pru0");
}
return 1;
}
Expand Down

1 comment on commit 8881129

@libby2cm
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dan, any chance this could have induced an issue with bridge mode? fseq plays back fine, but if streaming DDP to a bb device, I get maybe 2-3 seconds of output, then it stops until I restart the DDP stream (tested PC and rpi). Interesting thing, if I set debug level for channel data to debug, it works fine. Seems like a race condition or PRU threading?

Please sign in to comment.