Skip to contentSkip to conversation

soc-dsp programming model for loopbacks

DISCUSSION Mark Brown 2 participants 5 messages Jan 24, 2012 – Jan 25, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 007801ccdae0$381fcf40$a85f6dc0$@[email protected]

Mark Brown

author
#1 lore raw
Quoted 3 lines · Pierre-Louis Bossart

Now if the FM radio routing is handled with a digital loopback on the application processor audio dsp (omap-abe, Intel SST, etc), then soc-dsp will need to be used. And for a simple FM playback, I need to

Note that the use of soc-dsp isn't required for on-SoC DSPs - it really depends on how the hardware looks. If the DSP external format is very strongly tied to the format used to DMA to and from main memory (or other interfaces) then soc-dsp is what you need, if the DSP is able to rewrite formats more flexibly then it should be more direct to model it as a CODEC device with whatever number of DAIs and routing between them.

#2 lore raw
Quoted 6 lines · Mark Brown
Quoted 3 lines · Pierre-Louis Bossart

Now if the FM radio routing is handled with a digital loopback on the application processor audio dsp (omap-abe, Intel SST, etc), then soc-dsp will need to be used. And for a simple FM playback, I need to

Quoted 6 lines

Note that the use of soc-dsp isn't required for on-SoC DSPs - it really depends on how the hardware looks. If the DSP external format is very strongly tied to the format used to DMA to and from main memory (or other interfaces) then soc-dsp is what you need, if the DSP is able to rewrite formats more flexibly then it should be more direct to model it as a CODEC device with whatever number of DAIs and routing between them.

It's also needed if your DSP cant control or configure any of your host CPU DAI hardware controllers that it needs to physically use to route audio data.

Regards

Liam

author
#3 lore raw
Quoted 9 lines · Liam Girdwood
Quoted 6 lines · Mark Brown

Note that the use of soc-dsp isn't required for on-SoC DSPs - it really depends on how the hardware looks. If the DSP external format is very strongly tied to the format used to DMA to and from main memory (or other interfaces) then soc-dsp is what you need, if the DSP is able to rewrite formats more flexibly then it should be more direct to model it as a CODEC device with whatever number of DAIs and routing between them.

Quoted 3 lines

It's also needed if your DSP cant control or configure any of your host CPU DAI hardware controllers that it needs to physically use to route audio data.

Depends how they're allocated - the DSP driver can always do the management on behalf of the DSP firmware if the hardware is structured in a way that makes that make sense (for example, if the CPU never talks to the outside world directly).

#4 lore raw
Quoted 10 lines · Mark Brown
Quoted 8 lines · Liam Girdwood
Quoted 6 lines · Mark Brown

Note that the use of soc-dsp isn't required for on-SoC DSPs - it really depends on how the hardware looks. If the DSP external format is very strongly tied to the format used to DMA to and from main memory (or other interfaces) then soc-dsp is what you need, if the DSP is able to rewrite formats more flexibly then it should be more direct to model it as a CODEC device with whatever number of DAIs and routing between them.

Quoted 8 lines
Quoted 3 lines

It's also needed if your DSP cant control or configure any of your host CPU DAI hardware controllers that it needs to physically use to route audio data.

Depends how they're allocated - the DSP driver can always do the management on behalf of the DSP firmware if the hardware is structured in a way that makes that make sense (for example, if the CPU never talks to the outside world directly).

Wouldn't that either mean the DSP driver (re)implements some of the CPU DAI driver operations OR the DSP driver calling the CPU DAI driver ops directly ?

Regards

Liam

author
#5 lore raw
Quoted 10 lines · Liam Girdwood
Quoted 4 lines · Mark Brown

Depends how they're allocated - the DSP driver can always do the management on behalf of the DSP firmware if the hardware is structured in a way that makes that make sense (for example, if the CPU never talks to the outside world directly).

Wouldn't that either mean the DSP driver (re)implements some of the CPU DAI driver operations OR the DSP driver calling the CPU DAI driver ops directly ?

Like I say it depends on how the hardware is structured - the cases I was thinking about in the example above were those where the CPU needs to push everything through the DSP (or other in-SoC IP block, some have other interesting hardware in the way) so the DAI driver the CPU itself ends up with is different to and probably much simpler than that for the external interface.