Skip to contentSkip to conversation

ASoC DAI on Atmel AT32AP7000

DISCUSSION Christos Nikolaou 2 participants 4 messages Aug 29, 2009 – Aug 30, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

Up to 2.6.28 the ASoC framework was working on AT32AP7000 Atmel platform. Now I try to recompile it on 2.6.31-rc8 and I get

Advance Linux Sound Architecture Driver Version 1.0.20. No device for DAI atmel-ssc0
No device for DAI atmel-ssc1
No device for DAI atmel-ssc2

whereas the ssc devices are properly (as in 2.6.28) initialized ssc ssc.0: Atmel SSC device at 0xffe1c00 (irq 10)
ssc ssc.1: Atmel SSC device at 0xffe2000 (irq 11)
ssc ssc.2: Atmel SSC device at 0xffe2400 (irq 12)

It looks that this message comes from snd_soc_register_dai in soc-core.c

if (!dai->dev)

         printk(KERN_WARNING "No device for DAI %s\n", dai->name);

it seems for some reason it thinks there is no device in dai->dev

Unless I'm mistaken, that is being called from sound/soc/atmel/atmel_ssc_dai.c after some modifications done by broonie on these files according to
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=history;f=sound/soc/atmel;hb=adda766193ea1cf3137484a9521972d080d0b7af
.

Is there anything that can be done to rectify this?

Regards,
Christos

#1 lore raw
Quoted 7 lines · Christos Nikolaou

Up to 2.6.28 the ASoC framework was working on AT32AP7000 Atmel platform. Now I try to recompile it on 2.6.31-rc8 and I get

Advance Linux Sound Architecture Driver Version 1.0.20. No device for DAI atmel-ssc0
No device for DAI atmel-ssc1
No device for DAI atmel-ssc2

That's fine, these are just warning messages and have no actual effect on operation.

Quoted 4 lines

whereas the ssc devices are properly (as in 2.6.28) initialized ssc ssc.0: Atmel SSC device at 0xffe1c00 (irq 10)
ssc ssc.1: Atmel SSC device at 0xffe2000 (irq 11)
ssc ssc.2: Atmel SSC device at 0xffe2400 (irq 12)

This is outside the control of ASoC - it's generated by the core SSC support in drivers/misc/atmel-ssc.c. Probably you're missing code to register the SSC device in your board file, you should be calling add_device_ssc() somewhere in your arch/arm code and ssc_request() in your machine file.

Quoted 6 lines

It looks that this message comes from snd_soc_register_dai in soc-core.c

if (!dai->dev)

         printk(KERN_WARNING "No device for DAI %s\n", dai->name);

it seems for some reason it thinks there is no device in dai->dev

Yes, the reason for this being that the Atmel driver currently doesn't make any effort to initialise the device. At the minute that's purely a cosmetic error. Before it becomes an actual problem the drivers will be updated to fill in a device.

#2 lore raw
Quoted 5 lines · Mark Brown
Quoted 2 lines · Christos Nikolaou

Up to 2.6.28 the ASoC framework was working on AT32AP7000 Atmel platform. Now I try to recompile it on 2.6.31-rc8 and I get

Quoted 8 lines
Quoted 4 lines

Advance Linux Sound Architecture Driver Version 1.0.20. No device for DAI atmel-ssc0
No device for DAI atmel-ssc1
No device for DAI atmel-ssc2

That's fine, these are just warning messages and have no actual effect on operation.

So that means these are generated but the codec driver will eventually work right?

Quoted 11 lines
Quoted 4 lines

whereas the ssc devices are properly (as in 2.6.28) initialized ssc ssc.0: Atmel SSC device at 0xffe1c00 (irq 10)
ssc ssc.1: Atmel SSC device at 0xffe2000 (irq 11)
ssc ssc.2: Atmel SSC device at 0xffe2400 (irq 12)

This is outside the control of ASoC - it's generated by the core SSC support in drivers/misc/atmel-ssc.c.  Probably you're missing code to register the SSC device in your board file, you should be calling add_device_ssc() somewhere in your arch/arm code and ssc_request() in your machine file.

These statements are already there and the output shown is the drivers being intilized properly, this output is on the same log as the No device for DAI errors, I was displaying it here to show that although the devices are initialized ASoC reports an error

Quoted 5 lines
Quoted 4 lines

It looks that this message comes from snd_soc_register_dai in soc-core.c

if (!dai->dev)
         printk(KERN_WARNING "No device for DAI %s\n", dai->name);

Quoted 7 lines
Quoted 1 line

it seems for some reason it thinks there is no device in dai->dev

Yes, the reason for this being that the Atmel driver currently doesn't make any effort to initialise the device.  At the minute that's purely a cosmetic error.  Before it becomes an actual problem the drivers will be updated to fill in a device.

So in a feature version, the Atmel platform to ASoC glue drivers like playpaq_wm8510.c will initialize the required drivers (probably filling the ssc pointer I guess) but as for the time being that non-initialization does not create any problems right?

Christos

#3 lore raw
Quoted 8 lines · Christos Nikolaou
Quoted 2 lines · Mark Brown

That's fine, these are just warning messages and have no actual effect on operation.

So that means these are generated but the codec driver will eventually work right?

Yes, they haev absolutely no effect other than to print that message.

Quoted 4 lines

These statements are already there and the output shown is the drivers being intilized properly, this output is on the same log as the No device for DAI errors, I was displaying it here to show that although the devices are initialized ASoC reports an error

Oh, so your system is actually running fine then?

Quoted 4 lines

So in a feature version, the Atmel platform to ASoC glue drivers like playpaq_wm8510.c will initialize the required drivers (probably filling the ssc pointer I guess) but as for the time being that non-initialization does not create any problems right?

No, the DAI should take care of this for itself - it should be instantiated as a regular platform device without any intervention from the machine driver.