Search
SailfishOS Open Build Service
>
Projects
>
home:dcthang:branches:nemo:devel:hw:ti:omap3:n900
>
kernel-adaptation-n900
> linux-2.6-ASoC-omap-RX-51-Workaround-aic34b_dummy-to-work-with.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File linux-2.6-ASoC-omap-RX-51-Workaround-aic34b_dummy-to-work-with.patch of Package kernel-adaptation-n900
From f64893219f845505de3f54286b66681ede60783f Mon Sep 17 00:00:00 2001 From: ext Jarkko Nikula <jhnikula@gmail.com> Date: Fri, 18 Feb 2011 10:36:44 +0100 Subject: [PATCH 1/2] ASoC: omap: RX-51: Workaround aic34b_dummy to work with recent aic3x changes Recent tlv320aic3x changes started to use supply regulators dynamically and the codec is unpowered when idle. This has side effect to aic34b_dummy so that the chip test in aic34b_dummy_probe fails because the codec is unpowered at probing time. Workaround the problem by not testing the chip existence in aic34b_dummy_probe. Better fix would be to add regulator support to aic34b_dummy but it's not worth of effort as the aic34b_dummy does always direct register writes (i.e. no caching) and the codec B part is accessed only when A part is powered. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> --- sound/soc/omap/aic34b_dummy.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/sound/soc/omap/aic34b_dummy.c b/sound/soc/omap/aic34b_dummy.c index bace5fc..7ad70b0 100644 --- a/sound/soc/omap/aic34b_dummy.c +++ b/sound/soc/omap/aic34b_dummy.c @@ -211,10 +211,6 @@ EXPORT_SYMBOL_GPL(aic34b_add_controls); static int aic34b_dummy_probe(struct i2c_client *client, const struct i2c_device_id *id) { - if (aic34b_read(client, AIC3X_PLL_PROGA_REG) != 0x10) { - /* Chip not present */ - return -ENODEV; - } aic34b_client = client; return 0; -- 1.7.0.4