CuBox Development Platform

Linux, Android based tiny, energy efficient development machine
It is currently Wed May 22, 2013 2:40 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Jul 29, 2012 6:10 am 
Offline
User avatar

Joined: Wed Apr 11, 2012 9:16 am
Posts: 161
Location: Germany
I have a few questions about the audio code in rabeeh's current kernel.

1.) Am I right in the fact that the cs42l51 at I2C addr 0x4a is not physically present in the CuBox ?
To me it looks like it is instantiated solely to enable S/PDIF on older ALSA versions. Since
this is no longer necessary, it could be removed from arch/arm/mach-dove/cubox-setup.c
avoiding the error message (and admittedly small delay) on boot.

2.) What is the purpose of sound/soc/kirkwood/dove_cubox.c ? Is that an incomplete attempt to
add some features or just a leftover from the past ? If the latter, it could be removed as well.

3.) It the above file turns out to be unneeded, there is no real reason for the config setting
CONFIG_SND_DOVE_SOC_CUBOX as well, since the CuBox is now covered by
SND_KIRKWOOD_SOC_SPDIF (i.e. "SoC Audio support for Kirkwood generic S/PDIF")

4.) We could also disable CONFIG_SND_SOC_ALL_CODECS in arch/arm/configs/cubox_defconfig
to avoid building all of these modules. The only codec we really need is spdif_tranciever.c (note the typo
in the file name).


And finally and unrelated: Would it be possible to enable DEVTMPFS in the CuBox default config so that
people can build a working kernel right away.


Top
 Profile  
 
PostPosted: Sun Jul 29, 2012 4:59 pm 
Offline
SolidRun Staff

Joined: Wed Dec 14, 2011 11:20 pm
Posts: 425
Quote:
1.) Am I right in the fact that the cs42l51 at I2C addr 0x4a is not physically present in the CuBox ?
To me it looks like it is instantiated solely to enable S/PDIF on older ALSA versions. Since
this is no longer necessary, it could be removed from arch/arm/mach-dove/cubox-setup.c
avoiding the error message (and admittedly small delay) on boot.

True

Quote:
2.) What is the purpose of sound/soc/kirkwood/dove_cubox.c ? Is that an incomplete attempt to
add some features or just a leftover from the past ? If the latter, it could be removed as well.

That's the original code I wrote; but then was overriden by code from Sebastian Hasselbrath.
So this code can be removed.

Quote:
3.) It the above file turns out to be unneeded, there is no real reason for the config setting
CONFIG_SND_DOVE_SOC_CUBOX as well, since the CuBox is now covered by
SND_KIRKWOOD_SOC_SPDIF (i.e. "SoC Audio support for Kirkwood generic S/PDIF")

True this can be removed too.

Quote:
4.) We could also disable CONFIG_SND_SOC_ALL_CODECS in arch/arm/configs/cubox_defconfig
to avoid building all of these modules. The only codec we really need is spdif_tranciever.c (note the typo
in the file name).

Can be optimized too.

Notice that the 3.5 kernel tree uses an external clock generator for the audio clock, and can cover 192khz easily with -+30ppm clock accuracy; thus making this device also attractive for hi fidelity users.

Quote:
And finally and unrelated: Would it be possible to enable DEVTMPFS in the CuBox default config so that
people can build a working kernel right away.

Yes. I will enable and push upstream.
By the way; you can have a github account and send merge requests if this makes it easier.

_________________
SolidRun Engineering
user rabeeh in #cubox on Freenode IRC
Please visit and update the Wiki


Top
 Profile  
 
PostPosted: Sun Jul 29, 2012 9:57 pm 
Offline
SolidRun Staff

Joined: Wed Dec 14, 2011 11:20 pm
Posts: 425
OK. I fixed those.
Please take a look.

_________________
SolidRun Engineering
user rabeeh in #cubox on Freenode IRC
Please visit and update the Wiki


Top
 Profile  
 
PostPosted: Mon Jul 30, 2012 6:02 pm 
Offline
User avatar

Joined: Wed Apr 11, 2012 9:16 am
Posts: 161
Location: Germany
rabeeh wrote:
By the way; you can have a github account and send merge requests if this makes it easier.

I already have. Forked your repo yesterday...

rabeeh wrote:
OK. I fixed those. Please take a look.

Will do so next week. I have to go off for work tomorrow morning :cry: This might be considered...
Code:
--- a/arch/arm/mach-dove/cubox-setup.c
+++ b/arch/arm/mach-dove/cubox-setup.c
@@ -244,9 +244,6 @@ static struct i2c_board_info __initdata dove_cubox_i2c_bus0_devs[] = {
      I2C_BOARD_INFO("tda998X", 0x70), .irq = 91,
   },
#endif
-   {
-   I2C_BOARD_INFO("cs42l51", 0x4A), /* Fake device for spdif only */
-   },
};

/*****************************************************************************


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group