Re: [PATCH 3/6] ASoC: ux500: Drop pinctrl sleep support

From: Fabio Baltieri
Date: Mon May 13 2013 - 06:44:08 EST


On Thu, May 09, 2013 at 10:41:03AM +0100, Mark Brown wrote:
> On Wed, May 08, 2013 at 05:48:05PM +0200, Fabio Baltieri wrote:
> > On Wed, May 08, 2013 at 03:29:38PM +0100, Mark Brown wrote:
>
> > > So if these pins are being shared between the instances then surely
> > > there are other interdependencies that need to be taken care of Is that
> > > happening? For example if the clocks are shared then is the code
> > > currently stopping the interfaces being configured with incompatible
> > > sample rates or word sizes?
>
> > That's an interesting point. Mixed format, rate and channel counts
> > seems to work just fine, but that's probably because the supported rate
> > and format is locked by the codec to 48k + S16_LE. This is in line with
> > what is specified on the ab8500 datasheet:
> >
> > ---
> > The AB8500 audio module exchanges audio data through the two digital
> > interfaces at a fixed 48 kHz rate in different formats with up to 8
> > channels per interface.
> > ---
>
> That sounds like there's still some potential problems with the channel
> count, though?

Ok I'll try to figure out how to properly handle this. Right now the
timeslot mapping is exposed to the userspace with a series of dapm
widgets at codec level, and the same bits are set in the tdm api
depending on the channel counts.

> > On the other side, I don't think anybody is using the ux500 with
> > anything else than the ab8500, so I don't even know how would I test and
> > fix this.
>
> The fix should simply be a case of setting constraints when opening
> additional interfaces based on the configuration of the primary
> interface. You can test this sort of thing by simply verifying that it
> doesn't break the existing cases.

Ok.

> > > Well, most things would probably be able to get some small benefit from
> > > doing this, it's just that we've not had any real support for managing
> > > pin muxing - one of the goals of adding pinctrl is to make it easier to
> > > deploy this sort of thing.
>
> > Pin muxing is handled transparently. The real problem is sleep mode
> > switching, but that's really not needed if the codec has a proper low
> > power mode.
>
> I'm not following that at all I'm afraid - I don't understand the
> relevance of the CODEC?

My understanding is that ASoC may not need explicit pinctrl support
because default pin assignments is already handled at pinctrl framework
level, and pinctrl sleep mode may not be necessary at all, unless
someone else can come out with a good reason for that.

Fabio

--
Fabio Baltieri
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/