summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2010-11-19 07:23:17 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-11-24 15:31:00 +0900
commit22de4e1fe446794acaebdf19dcaff4256d659972 (patch)
treedaafc6b0c41ef1c0ad6f4cab642994523096e743 /sound
parentd4bc99b977e3a1dd10a84a01ebe59ac2ccebf0cd (diff)
downloadop-kernel-dev-22de4e1fe446794acaebdf19dcaff4256d659972.zip
op-kernel-dev-22de4e1fe446794acaebdf19dcaff4256d659972.tar.gz
ARM: mach-shmobile: ap4evb: FSI clock use proper process for ak4642
Current AP4 FSI didn't use set_rate for ak4642, and used dummy rate when init. And FSI driver was modified to always call set_rate. The user which are using FSI set_rate is only AP4 now. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/sh/fsi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 136414f..4c2404b 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -902,18 +902,12 @@ static int fsi_dai_hw_params(struct snd_pcm_substream *substream,
struct fsi_master *master = fsi_get_master(fsi);
int (*set_rate)(struct device *dev, int is_porta, int rate, int enable);
int fsi_ver = master->core->ver;
- int is_play = fsi_is_play(substream);
long rate = params_rate(params);
int ret;
- /* if slave mode, set_rate is not needed */
- if (!fsi_is_master_mode(fsi, is_play))
- return 0;
-
- /* it is error if no set_rate */
set_rate = master->info->set_rate;
if (!set_rate)
- return -EIO;
+ return 0;
ret = set_rate(dai->dev, fsi_is_port_a(fsi), rate, 1);
if (ret < 0) /* error */
OpenPOWER on IntegriCloud