alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* adding an external dsp under soc-dsp framework
@ 2012-08-06 12:53 ziv haziz
  2012-08-06 14:39 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: ziv haziz @ 2012-08-06 12:53 UTC (permalink / raw)
  To: alsa-devel

i plan on adding an external dsp which has slimbus interface under soc-dsp 
framwork.
currently i would like to make the following type of connection:
CPU->DSP->Codec and as the dsp is an external one
(physically seperated from both the CPU and the Codec)
i have a difficulty defining how to represent it:
do i need to make two entities of the dsp:
- one for the BE connection and one for the FE connection 
and add some internal routing using mixer controls? this will 
create two devices in the user space which the user application should open? 
- or is there a way to make one device which is composed of all three blocks?

last small question: as slimbus ports id should be passed how do you suggest a 
device should share his slimbus port id?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: adding an external dsp under soc-dsp framework
  2012-08-06 12:53 ziv haziz
@ 2012-08-06 14:39 ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2012-08-06 14:39 UTC (permalink / raw)
  To: ziv haziz; +Cc: alsa-devel

On Mon, Aug 06, 2012 at 12:53:40PM +0000, ziv haziz wrote:

Always CC maintainers on patches.

> i plan on adding an external dsp which has slimbus interface under soc-dsp 
> framwork.

You shouldn't be doing this.  The soc-pcm code is *purely* about
managing the interdependencies between the data DMAed from memory and
the external interfaces on a SoC, if you're an off-SoC device then you
should be providing a CODEC driver.  This is why you're having trouble
working out how to fit your driver into the frameworks - they're not
designed to do what you're trying to do.

> last small question: as slimbus ports id should be passed how do you suggest a 
> device should share his slimbus port id?

Well, the bigger blocker here is that we don't have any Slimbus support
in the kernel at the minute.  I'm hoping to help push that along at the
KS/LPC/LinuxCon conferences at the end of this month.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: adding an external dsp under soc-dsp framework
       [not found] <FC1850374E3CB245B9E97002380578E0022216D4@ILMAIL01.dspg.com>
@ 2012-08-06 15:48 ` Mark Brown
  2012-08-06 18:43   ` ziv haziz
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2012-08-06 15:48 UTC (permalink / raw)
  To: Ziv Haziz; +Cc: alsa-devel

On Mon, Aug 06, 2012 at 06:11:33PM +0300, Ziv Haziz wrote:

> ok thanks. This means that I need to introduce two codecs and make a dai
> link between them?
>  It doesn't really fits the dai structure - how do you suggest to do it?

No, if they're part of the same physical chip then they should be
handled internally to the device.

> ok - finger crossed you will publish an agreed interface soon -
> currently I saw in codeaurora kernel an implementation of exposing mixer
> controls, so currently this is the only option yes?

That's not upstream, standard Linux has no support for Slimbus at all.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: adding an external dsp under soc-dsp framework
  2012-08-06 15:48 ` adding an external dsp under soc-dsp framework Mark Brown
@ 2012-08-06 18:43   ` ziv haziz
  2012-08-07 14:09     ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: ziv haziz @ 2012-08-06 18:43 UTC (permalink / raw)
  To: alsa-devel

Mark Brown <broonie <at> opensource.wolfsonmicro.com> writes:

> 
> On Mon, Aug 06, 2012 at 06:11:33PM +0300, Ziv Haziz wrote:
> 
> > ok thanks. This means that I need to introduce two codecs and make a dai
> > link between them?
> >  It doesn't really fits the dai structure - how do you suggest to do it?
> 
> No, if they're part of the same physical chip then they should be
> handled internally to the device.
it is a seperated chipset, only digital interfaces which should come between the 
cpu and the codec.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: adding an external dsp under soc-dsp framework
  2012-08-06 18:43   ` ziv haziz
@ 2012-08-07 14:09     ` Mark Brown
       [not found]       ` <FC1850374E3CB245B9E97002380578E002221820@ILMAIL01.dspg.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2012-08-07 14:09 UTC (permalink / raw)
  To: ziv haziz; +Cc: alsa-devel

On Mon, Aug 06, 2012 at 06:43:02PM +0000, ziv haziz wrote:
> Mark Brown <broonie <at> opensource.wolfsonmicro.com> writes:
> > On Mon, Aug 06, 2012 at 06:11:33PM +0300, Ziv Haziz wrote:

Don't drop people from CCs.

> > > ok thanks. This means that I need to introduce two codecs and make a dai
> > > link between them?
> > >  It doesn't really fits the dai structure - how do you suggest to do it?

> > No, if they're part of the same physical chip then they should be
> > handled internally to the device.

> it is a seperated chipset, only digital interfaces which should come between the 
> cpu and the codec.

In that case what you're saying above with a DAI link is exactly what
you're supposed to do, I don't see any structural problem here?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: adding an external dsp under soc-dsp framework
       [not found]       ` <FC1850374E3CB245B9E97002380578E002221820@ILMAIL01.dspg.com>
@ 2012-08-08 10:59         ` Mark Brown
       [not found]           ` <FC1850374E3CB245B9E97002380578E00222188A@ILMAIL01.dspg.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2012-08-08 10:59 UTC (permalink / raw)
  To: Ziv Haziz; +Cc: alsa-devel

On Wed, Aug 08, 2012 at 11:21:20AM +0300, Ziv Haziz wrote:

> >I n that case what you're saying above with a DAI link is exactly what
> > you're supposed to do, I don't see any structural problem here?

> Creating two dai links will create two separated devices which must be
> open for setting configurations, but the dsp-codec dai cannot be started
> (or I will get an  error). This means changing the codec driver to
> enable everything not from trigger callback.

> Is it possible to have a dai link without a platform for data transfer?
> I saw in the plumbers agenda you are going to talk on codec-codec
> interface - do you have any preliminary suggestion?

This is already supported in mainline, look at littlemill for one
example user.

Alternatively for older kernels you can easily support this from
userspace by just not starting the DMA, this has been deployed for some
considerable time on many systems (OpenMoko is one long standing
mainline example).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: adding an external dsp under soc-dsp framework
       [not found]           ` <FC1850374E3CB245B9E97002380578E00222188A@ILMAIL01.dspg.com>
@ 2012-08-09 10:57             ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2012-08-09 10:57 UTC (permalink / raw)
  To: Ziv Haziz; +Cc: alsa-devel

On Wed, Aug 08, 2012 at 10:49:19PM +0300, Ziv Haziz wrote:

> Looking at the littlemill driver on kernel 3.4.7 the device name
> "Baseband" and his dai link doesn't contain platform device can be
> triggered without side effects?

Yes, this is the most common case for DAI links that don't involve a CPU
in modern smartphones.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-09 10:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <FC1850374E3CB245B9E97002380578E0022216D4@ILMAIL01.dspg.com>
2012-08-06 15:48 ` adding an external dsp under soc-dsp framework Mark Brown
2012-08-06 18:43   ` ziv haziz
2012-08-07 14:09     ` Mark Brown
     [not found]       ` <FC1850374E3CB245B9E97002380578E002221820@ILMAIL01.dspg.com>
2012-08-08 10:59         ` Mark Brown
     [not found]           ` <FC1850374E3CB245B9E97002380578E00222188A@ILMAIL01.dspg.com>
2012-08-09 10:57             ` Mark Brown
2012-08-06 12:53 ziv haziz
2012-08-06 14:39 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).