Uh oh!
There was an error while loading. Please reload this page.
dai: Remove frame_fmt from private data - #3174
Conversation
ktrzcinx
commented
Jul 14, 2020
SOFCI TEST |
d3a7aa9 to
67c7a78CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This value is always set in dai_new() function, value 0 represents SOF_IPC_FRAME_S16_LE so such an check doesn't give any value. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
There was a problem hiding this comment.
Simple oneliner audio_stream_override_frame_fmt() could be helpful (1/ easier to grep, 2/ improves encapsulation).
Edit: Or a one on the buffer api level (with consistent force_update flag handling).
There was a problem hiding this comment.
Another solution would be to create a local copy of params, override frame_fmt and just set with a single audio-stream API call.
Uh oh!
There was an error while loading. Please reload this page.
8d1b9fb to
d7af546Comparelgirdwood
commented
Jul 14, 2020
What's the rational for all the buffer/stream changes today ? |
ktrzcinx
commented
Jul 15, 2020
After #3146 I took a closer look to dma_buffers usage, and I saw that there are sometimes treated as usual |
ktrzcinx
commented
Jul 15, 2020
Then new API function with single user won't be needed ( |
plbossart
commented
Jul 15, 2020
it may be error prone, but by the same token we should not assume that we know how many channels a DMA buffer contains. It could contain binary data or compressed data unrelated to PCM, or compressed data padded to fit the PCM rate. DMAs are general purpose tools to move data from point A to point B, we don't want to assume we only transfer PCM. |
I agree, from DMA point of view, it doesn't matter what is the format of a data, and here such an information should be useless. Looking from |
paulstelian97
commented
Jul 16, 2020
Can't the |
plbossart
commented
Jul 16, 2020
It seems we are in agreement on the basics, but your comment about the host component threw me off. This PR changes the DAIs, |
paulstelian97
commented
Jul 16, 2020
I chimed in with the host component because the DAI itself should always have PCM data (well, almost always; some DAIs can support other formats but it's not typical). Never compressed data. Sure, the DAI must have its own configuration readily available for the params propagation. |
plbossart
commented
Jul 16, 2020
It's perfectly possible to send/receive data as pseudo-PCM but the contents is packetized and could be variable bitrate internally. |
Each stream should have set valid metadata information. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This value is one of audio_stream property, so should be saved in this place to keep data synchronised, and allow to usage generic function working on audio_stream, like stream converters. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
lgirdwood
commented
Jul 21, 2020
CI clipping. @aiChaoSONG difficult to tell from sof-logger and topology output which PGA is > 0dB It looks like sof-logger is merging PGA 1.3 into 2.13 ??? Fwiw topology graph only shows PGA 1.0, 1.1, 2.0 and 3.0. So we have a +0dB gain still in some topology tests. |
lgirdwood
commented
Jul 21, 2020
@plbossart any comments with the update for compressed streams ? |
plbossart
commented
Jul 21, 2020
There was no answer to my comments and I don't see any changes in the code? |
aiChaoSONG
commented
Jul 22, 2020
@keqiaozhang could you please help to check? |
ktrzcinx
commented
Jul 22, 2020
@plbossart I'm not sure what you would like to know. |
plbossart
commented
Jul 22, 2020
I was referring to this code: ba6a21a#diff-9f8de02ec82000817dd1a9bbccac158cR76 this still has DAIs handling samples, and it's rather odd to me. |
As I understand you are talking about removing calculation of number of samples from and where |
plbossart
commented
Jul 22, 2020
SOFCI TEST |
ktrzcinx
commented
Jul 22, 2020
Thanks @plbossart |
This value is one of audio_stream property, so should be
saved in this place to keep data synchronised, and allow
to usage generic function working on audio_stream, like
stream converters.
Signed-off-by: Karol Trzcinski karolx.trzcinski@linux.intel.com