lkml.org 
[lkml]   [2012]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] sound/soc/lapis: add platform driver for ML7213
On Wed, Mar 07, 2012 at 10:30:05AM +0900, Tomoya MORINAGA wrote:
> On Tue, Mar 6, 2012 at 8:52 PM, Mark Brown

> >> if these platform devices aren't used, device detection doesn't work correctly.
> >> So, I added these.

> > You've not actually mentioned the problem you were seeing...

> I saw mapping problem between machine driver and platform driver.
> e.g. cpu_dai_name "ml7213ioh"

You've still not explained the problem you're seeing but this sounds
like something that should work. Please address the

> > Apart from anything else you've got the interrupt requested as
> > IRQF_SHARED so the interrupt could get called at any time.  It's also
> > not clear that you've got the hardware in a known good state.

> Do you mean request_irq should move to somewhere, like open() or
> hw_params() or ... ?

You need to do enough hardware and software initialisation prior to
requesting the interrupt to ensure that if an interrupt does happen it
won't cause any ill effects. Checks in the interrupt handler to make
sure things like the ALSA layer stuff have been set up can also be used
to make the interrupt handler safer.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-03-07 12:49    [W:0.197 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site