Skip to contentSkip to conversation

ARM: mxs: add recording support for saif

PATCH Applied Dong Aisheng 4 participants 7 messages Nov 22, 2011 – Nov 24, 2011

lore
Share & tools
lore
#0 lore raw

v7 cover ARM: mxs: add recording support for saif

Changes since v6:
* fix a typo suggested by Shawn
* add tag from Marek Vasut

Changes since v5:
Only one change is that:
* remove the unneccesary parenthesis for [PATCH 1/3] suggested by Marek Vasut.

Changes since v4:
* use new added master_id and master_mode in platform_data. The new changes depend on another patch:
0001-ASoC-mxs-saif-remove-function-in-platform_data.patch

Changes since v3:
* remove unneeded locking according to Sascha.
The patches are based on imx-features branch since commit:
ca4e419c2.

Changes since v2:
* separate clkmux code into another patch according to Uwe
* add lock according to Wolfram
* Other minus fixes suggested by Uwe and Wolfram.
* remove Wolfram's fix saif clock setting patch which is in v2 series since Wolfram will reform the clock code and send it out himself. For test purpose, user still needs that patch. People can get it from v2 series.
The patch is:
[PATCH v2 3/3] arm: mxs: disable clock-gates when setting saif-clocks

The patches are based on imx-features branch since commit:
f4f01e31835f.

Changes since v1:
The main changes are move mach-specific code(clkmux in DIGCTL) from saif driver to mach-specific layer based on Wolfram's suggestion.

Note that the last patch is a RFC patch and sent out for testing since without that patch the saif may not work.

Dong Aisheng (3):
ARM: mxs: add saif clkmux functions
ARM: mx28evk: add platform data for saif
ARM: mx28evk: set a initial clock rate for saif

 arch/arm/mach-mxs/clock-mx28.c                  |   38 +++++++++++++++++++++++
 arch/arm/mach-mxs/devices-mx28.h                |    3 +-
 arch/arm/mach-mxs/devices/platform-mxs-saif.c   |    5 ++-
 arch/arm/mach-mxs/include/mach/common.h         |    1 +
 arch/arm/mach-mxs/include/mach/devices-common.h |    4 ++-
 arch/arm/mach-mxs/include/mach/digctl.h         |   21 ++++++++++++
 arch/arm/mach-mxs/mach-mx28evk.c                |   18 +++++++++-
 7 files changed, 84 insertions(+), 6 deletions(-)
 create mode 100644 arch/arm/mach-mxs/include/mach/digctl.h
Applied
#1 lore raw

On Tue, Nov 22, 2011 at 11:54:22PM +0800, Dong Aisheng wrote:
[...]

Quoted 5 lines

Dong Aisheng (3):
ARM: mxs: add saif clkmux functions
ARM: mx28evk: add platform data for saif
ARM: mx28evk: set a initial clock rate for saif

Quoted 10 lines
 arch/arm/mach-mxs/clock-mx28.c                  |   38 +++++++++++++++++++++++
 arch/arm/mach-mxs/devices-mx28.h                |    3 +-
 arch/arm/mach-mxs/devices/platform-mxs-saif.c   |    5 ++-
 arch/arm/mach-mxs/include/mach/common.h         |    1 +
 arch/arm/mach-mxs/include/mach/devices-common.h |    4 ++-
 arch/arm/mach-mxs/include/mach/digctl.h         |   21 ++++++++++++
 arch/arm/mach-mxs/mach-mx28evk.c                |   18 +++++++++-
 7 files changed, 84 insertions(+), 6 deletions(-)
 create mode 100644 arch/arm/mach-mxs/include/mach/digctl.h

Applied, thanks.

During the testing, the saif driver's dependency on REGULATOR_FIXED_VOLTAGE was found. I guess it should be resolved in sound/soc/mxs/Kconfig rather than leaving it to users.

Signature · 2 lines
Regards,
Shawn
#2 lore raw
Quoted 4 lines · Shawn Guo

During the testing, the saif driver's dependency on REGULATOR_FIXED_VOLTAGE was found. I guess it should be resolved in sound/soc/mxs/Kconfig rather than leaving it to users.

Also SND_SOC_MXS_SGTL5000 should probably depends on I2C_MXS than I2C.

Signature · 2 lines
Regards,
Shawn
#3 lore raw
Quoted 6 lines · Shawn Guo
Quoted 4 lines · Shawn Guo

During the testing, the saif driver's dependency on REGULATOR_FIXED_VOLTAGE was found. I guess it should be resolved in sound/soc/mxs/Kconfig rather than leaving it to users.

Also SND_SOC_MXS_SGTL5000 should probably depends on I2C_MXS than I2C.

Hmm, I think it's common and accepted that an i2c device doesn't depend on an i2c bus driver. In this case it's quite probable that you want I2C_MXS, but technically you could also use I2C_GPIO.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#4 lore raw
In reply to Shawn Guo
Quoted 6 lines · Shawn Guo
Quoted 4 lines · Shawn Guo

During the testing, the saif driver's dependency on REGULATOR_FIXED_VOLTAGE was found. I guess it should be resolved in sound/soc/mxs/Kconfig rather than leaving it to users.

Also SND_SOC_MXS_SGTL5000 should probably depends on I2C_MXS than I2C.

Please explain.

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20111124/be61508b/attachment.sig>
#5 lore raw
Quoted 10 lines · Wolfram Sang
Quoted 6 lines · Shawn Guo
Quoted 4 lines · Shawn Guo

During the testing, the saif driver's dependency on REGULATOR_FIXED_VOLTAGE was found. I guess it should be resolved in sound/soc/mxs/Kconfig rather than leaving it to users.

Also SND_SOC_MXS_SGTL5000 should probably depends on I2C_MXS than I2C.

Please explain.

Sorry. I meant 'select I2C_MXS'.

Signature · 2 lines
Regards,
Shawn
#6 lore raw
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Also SND_SOC_MXS_SGTL5000 should probably depends on I2C_MXS than I2C.

Please explain.

Sorry. I meant 'select I2C_MXS'.

From kconfig-language.txt:

Note:
select should be used with care. select will force a symbol to a value without visiting the dependencies. By abusing select you are able to select a symbol FOO even if FOO depends on BAR that is not set.
In general use select only for non-visible symbols (no prompts anywhere) and for symbols with no dependencies. That will limit the usefulness but on the other hand avoid the illegal configurations all over.

So, NACK from me.

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20111124/ea4d9bd3/attachment.sig>