Skip to contentSkip to conversation

S3C64XX DSP support added

DISCUSSION [email protected] 2 participants 10 messages Nov 2, 2009 – Nov 3, 2009 Arm Samsung Exynos

lore
Share & tools
lore
#1 lore raw
Quoted 4 lines · On Mon, Nov 02, 2009 at 11:09:34AM +0900, [email protected] wrote:

From: Jassi Brar <[email protected]>

next coming are patches for review before I submit them mainline. thanks.

If nothing else these need a better name - the name suggests that they're a DSP when in fact they are actually implementing support for the PCM interface. You might want to rename the existing PCM driver to DMA.

author
#2 lore raw
Quoted 9 lines · Mark Brown
Quoted 4 lines · On Mon, Nov 02, 2009 at 11:09:34AM +0900, [email protected] wrote:

From: Jassi Brar <[email protected]>

next coming are patches for review before I submit them mainline. thanks.

If nothing else these need a better name - the name suggests that they're a DSP when in fact they are actually implementing support for the PCM interface.

I saw that coming...
The codec drivers use the term DSP (DSP_A/DSP_B) for what our PCM controller does.
I used 'DSP' for things related to ALSA and 'PCM' for h/w specific things.

Quoted 1 line

You might want to rename the existing PCM driver to DMA.

Could do that, but still 'PCM' is used at other places in the stack as well. Would that be fine?

#3 lore raw
Quoted 2 lines · jassi brar

The codec drivers use the term DSP (DSP_A/DSP_B) for what our PCM controller does.

I know; this is a bit unfortunate but not too much of an issue since it's only ever mentioned in the context of a DAIFMT constant so it's clear what's being talked about. In this case it's particularly confusing because the hardware is always talked about as being PCM and from the sounds of it some of the current S5P processors already have some basic DSP stuff in them.

Quoted 1 line

I used 'DSP' for things related to ALSA and 'PCM' for h/w specific things.

I'm having a hard time following your logic here? This is a hardware driver after all.

Quoted 3 lines
Quoted 1 line

You might want to rename the existing PCM driver to DMA.

Could do that, but still 'PCM' is used at other places in the stack as well. Would that be fine?

Probably, yes. The use of PCM for DMA drivers is there mostly because in older systems the PCM interface offered no software control at all so all you needed to drive them was the DMA driver.

author
#4 lore raw
Quoted 6 lines · Mark Brown
Quoted 1 line · jassi brar

I used 'DSP' for things related to ALSA and 'PCM' for h/w specific things.

I'm having a hard time following your logic here?  This is a hardware driver after all.

Register and bit definitions, DMA and other platform resources are all using 'PCM',
while ALSA related stuff : CPU driver, DAI name etc are using 'DSP'.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

You might want to rename the existing PCM driver to DMA.

Could do that, but still 'PCM' is used at other places in the stack as well. Would that be fine?

Probably, yes.  The use of PCM for DMA drivers is there mostly because in older systems the PCM interface offered no software control at all so all you needed to drive them was the DMA driver.

Okay, will rename s3c24xx-pcm.c to s3c24xx-dma.c and call this driver as s3c64xx-pcm.c

#5 lore raw
Quoted 2 lines · jassi brar

Okay, will rename s3c24xx-pcm.c to s3c24xx-dma.c and call this driver as s3c64xx-pcm.c

Is there a PCM controller on the s3c24xx chips? I know you're not particularly intersted in them but if there is I'd be surprised if the same driver wouldn't work for both and someone else might want to add the s3c24xx specific stuff (probably mostly under arch/arm). If that is the case then s3c-pcm might be better.

It'd be nice to do that for the DMA driver too if it is getting renamed anyway.

author
#6 lore raw
Quoted 10 lines · Mark Brown
Quoted 2 lines · jassi brar

Okay, will rename s3c24xx-pcm.c to s3c24xx-dma.c and call this driver as s3c64xx-pcm.c

Is there a PCM controller on the s3c24xx chips?  I know you're not particularly intersted in them but if there is I'd be surprised if the same driver wouldn't work for both and someone else might want to add the s3c24xx specific stuff (probably mostly under arch/arm).  If that is the case then s3c-pcm might be better.

Only s3c2450 in the 24xx series have a pcm controller. Since there is no support for s3c2450 in mainline, I had to make it for s3c64xx

Quoted 2 lines

It'd be nice to do that for the DMA driver too if it is getting renamed anyway.

okay.

#7 lore raw
Quoted 6 lines · jassi brar

On Mon, Nov 2, 2009 at 9:07 PM, Mark Brown

Quoted 1 line

Is there a PCM controller on the s3c24xx chips?  I know you're not

Only s3c2450 in the 24xx series have a pcm controller. Since there is no support for s3c2450 in mainline, I had to make it for s3c64xx

In that case the s3c- name would be nice in case someone does submit support for that CPU some time.

author
#8 lore raw
Quoted 10 lines · Mark Brown
Quoted 6 lines · jassi brar

On Mon, Nov 2, 2009 at 9:07 PM, Mark Brown

Quoted 1 line

Is there a PCM controller on the s3c24xx chips?  I know you're not

Only s3c2450 in the 24xx series have a pcm controller. Since there is no support for s3c2450 in mainline, I had to make it for s3c64xx

In that case the s3c- name would be nice in case someone does submit support for that CPU some time.

Okay, will do that. thanks

btw, I plan to rename s3c24xx-pcm.c/h to s3c-audio.c/h rather than s3c-dma.c/h because that code isn't about just dma and s3c-dma doesn't sound anything audio related.
Also, the prefix s3c24xx_pcm_* in s3c24xx-pcm.c has been changed to s3c_audio_*

#9 lore raw
Quoted 2 lines · jassi brar

btw, I plan to rename s3c24xx-pcm.c/h to s3c-audio.c/h rather than s3c-dma.c/h because that code isn't about just dma and s3c-dma doesn't sound anything audio

The fact that it's in sound/soc ought to be a pretty big hint that it's audio...