[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1317799677.21481.6.camel@phoenix>
Date: Wed, 05 Oct 2011 15:27:56 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Richard Purdie <rpurdie@...ys.net>, Liam Girdwood <lrg@...com>,
Mark Brown <broonie@...nsource.wolfsonmicro.com>,
alsa-devel@...a-project.org
Subject: [PATCH] ASoC: ak4535: Set codec->hw_write to i2c_master_send
It was removed in commit f0fba2ad
"ASoC: multi-component - ASoC Multi-Component Support".
Add it back, otherwise codec->hw_write points to NULL.
Signed-off-by: Axel Lin <axel.lin@...il.com>
---
sound/soc/codecs/ak4535.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/soc/codecs/ak4535.c b/sound/soc/codecs/ak4535.c
index e1a214e..00cc92c 100644
--- a/sound/soc/codecs/ak4535.c
+++ b/sound/soc/codecs/ak4535.c
@@ -439,6 +439,7 @@ static int ak4535_probe(struct snd_soc_codec *codec)
printk(KERN_INFO "AK4535 Audio Codec %s", AK4535_VERSION);
+ codec->hw_write = (hw_write_t)i2c_master_send;
codec->control_data = ak4535->control_data;
/* power on device */
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists