26 Mar
2012
26 Mar
'12
2:10 p.m.
On Mon, Mar 26, 2012 at 02:33:22PM +0530, Rajeev kumar wrote:
On 3/20/2012 9:14 PM, Mark Brown wrote:
On Tue, Mar 20, 2012 at 05:03:46PM +0530, Rajeev Kumar wrote:
if (dev->i2s_clk_cfg(config)) {
dev_err(dev->dev, "runtime audio clk config fail\n");
if (cpu_dai->driver->ops->trigger) {
int ret =
cpu_dai->driver->ops->trigger(substream,
SNDRV_PCM_TRIGGER_STOP,
cpu_dai);
if (ret< 0) {
dev_err(dev->dev,
"trigger stop fail\n");
return ret;
}
}
No, return an error if you encounter an error!
You need not to stop controller in case clock fail ?
Let the upper layers worry about that. Don't randomly change the state of the controller without them knowing about it.