Put the decoder in a some git repository and post the link in here.
Currently we are lacking code reviewers, so it would also help if someone
else could go and take a look at the code. Remember to also include
relevant test data in the sigrok-dumps repo and regression tests in
sigrok-test.

For the extracted data; I would just output the binary data in a such way
that it ends up in pulseview decoder binary view (and can also be dumped
with sigrok-cli) then you can use a audio software to play it or process
it further.

On Sat, 6 May 2023, Massimiliano Cialdi wrote:

> hello Cedric
>
> 1) I'm not sure I understand what you're saying, or rather, I don't
> understand what you have in mind for which you need such a thing. Anyway,
> this problem had occurred to me as well. I have TDM16 @48kHz, so BCLK @24.
> 576MHz. The sample rate I use is 250MHz. So I can output one analog sample "
> extracted from decoding" for every 5200 or so samples acquired. But one way
> to "fix it" might be to linearly interpolate the 5200 points between two
> analog samples.
>
> 2) this is a problem for math channels, and so I wonder if any other kind
> of analog track is offered that can be output from a decoder.
> best regards
> Max
>
>
> On Sat, May 6, 2023 at 6:47 PM Cedric de Wijs via sigrok-devel <
> sigrok-devel@lists.sourceforge.net> wrote:
>
> > Hey Max,
> >
> > I would inject the decoded values into a math channel. For the following
> > two reasons this is not possible at the moment:
> > 1) The samplerate of the decoder is much lower than the sample rate of the
> > digital signal used as source. I think the math channel has to run at the
> > frequency of the analog input channels, and I suspect that's also the
> > samplerate of the digital inputs. The decoder rarely has a new value for
> > the math channel, so the math channel needs persistent memory that can hold
> > the last samplevalue from the decoder. I've made this feature request for
> > that:  https://sigrok.org/bugzilla/show_bug.cgi?id=1836
> > 2) The Math channels currently only can use analog inputs and the output
> > of other math channels as inputs. So there needs a way for the equation in
> > the math channel to choose the  output of the decoder. I've made this
> > feature request for that:
> > https://sigrok.org/bugzilla/show_bug.cgi?id=1840
> >
> > I don't know about the preferred channel for contributions.
> >
> > Cheers,
> > Cedric
> >
> > On 5/6/23 15:21, Massimiliano Cialdi wrote:
> >
> > hello,
> > I would like to contribute some improvements to the tdm_audio decoder.
> > With the current decoder, it is only possible to set the data sampling
> > edge with respect to BCLK. In addition, the maximum number of channels per
> > frame is 8.
> > I have already started to add the ability to change the FSync polarity as
> > well, have up to 32 channels per frame, also I am going to add bit_shift
> > (similar to i2s) and other options.
> >
> > I would also like to give an "analog" representation of the decoded data.
> > That is, I would like to reconstruct the audio waveform of a given channel.
> > Is it possible to do such a thing?
> >
> > For contributions on decoders what is your preferred channel? Can I do
> > pull requests on git?
> >
> > best regards
> > Max
> >
> > --
> > Et nunc, auxilium solis, vincam!
> > Oppugnatio solaris!
> > VIS!
> >
> > Massimiliano Cialdi
> >
> >
> > _______________________________________________
> > sigrok-devel mailing 
> > listsigrok-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sigrok-devel
> >
> >
> >
> > _________________________________________________________________
> > ________________________________________________________
> > Your E-Mail. Your Cloud. Your Office. eclipso Mail & Cloud. 
> > https://www.eclipso.de
> >
> >
> > _______________________________________________
> > sigrok-devel mailing list
> > sigrok-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sigrok-devel
> >
>
>
>

-- 
This message may contain traces of Truth.


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to