* [PATCH] ASoC: omap-mcbsp: Export functions for threshold configuration
@ 2012-03-12 11:01 Peter Ujfalusi
2012-03-12 11:59 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Peter Ujfalusi @ 2012-03-12 11:01 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown; +Cc: alsa-devel, Jarkko Nikula
ABE has certain requirements towards the FIFO configuration in McBSP.
Make it posssible to configure the McBSP FIFO threshold from outside of
the McBSP driver stack.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
Hi,
this patch is needed in preparation to add the ABE support for OMAP4+ platforms.
Regards,
Peter
sound/soc/omap/mcbsp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c
index e5f4444..ca8b028 100644
--- a/sound/soc/omap/mcbsp.c
+++ b/sound/soc/omap/mcbsp.c
@@ -402,6 +402,7 @@ void omap_mcbsp_set_tx_threshold(struct omap_mcbsp *mcbsp, u16 threshold)
if (threshold && threshold <= mcbsp->max_tx_thres)
MCBSP_WRITE(mcbsp, THRSH2, threshold - 1);
}
+EXPORT_SYMBOL_GPL(omap_mcbsp_set_tx_threshold);
/*
* omap_mcbsp_set_rx_threshold configures the receive threshold in words.
@@ -416,6 +417,7 @@ void omap_mcbsp_set_rx_threshold(struct omap_mcbsp *mcbsp, u16 threshold)
if (threshold && threshold <= mcbsp->max_rx_thres)
MCBSP_WRITE(mcbsp, THRSH1, threshold - 1);
}
+EXPORT_SYMBOL_GPL(omap_mcbsp_set_rx_threshold);
/*
* omap_mcbsp_get_tx_delay returns the number of used slots in the McBSP FIFO
--
1.7.8.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: omap-mcbsp: Export functions for threshold configuration
2012-03-12 11:01 [PATCH] ASoC: omap-mcbsp: Export functions for threshold configuration Peter Ujfalusi
@ 2012-03-12 11:59 ` Mark Brown
2012-03-12 12:10 ` Liam Girdwood
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-03-12 11:59 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: alsa-devel, Liam Girdwood, Jarkko Nikula
[-- Attachment #1.1: Type: text/plain, Size: 604 bytes --]
On Mon, Mar 12, 2012 at 01:01:04PM +0200, Peter Ujfalusi wrote:
> ABE has certain requirements towards the FIFO configuration in McBSP.
> Make it posssible to configure the McBSP FIFO threshold from outside of
> the McBSP driver stack.
You should always submit things like this along with the changes which
use them, it's much easier to see if they're sensible when the users are
there. Without seeing how this is used it's hard to tell if this is
sensible or if it should be abstracted in some way and we don't want to
have half of the bodges sitting around if we end up doing things a
different way.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: omap-mcbsp: Export functions for threshold configuration
2012-03-12 11:59 ` Mark Brown
@ 2012-03-12 12:10 ` Liam Girdwood
2012-03-12 12:17 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Liam Girdwood @ 2012-03-12 12:10 UTC (permalink / raw)
To: Mark Brown; +Cc: Peter Ujfalusi, alsa-devel, Jarkko Nikula
On Mon, 2012-03-12 at 11:59 +0000, Mark Brown wrote:
> On Mon, Mar 12, 2012 at 01:01:04PM +0200, Peter Ujfalusi wrote:
> > ABE has certain requirements towards the FIFO configuration in McBSP.
> > Make it posssible to configure the McBSP FIFO threshold from outside of
> > the McBSP driver stack.
>
> You should always submit things like this along with the changes which
> use them, it's much easier to see if they're sensible when the users are
> there. Without seeing how this is used it's hard to tell if this is
> sensible or if it should be abstracted in some way and we don't want to
> have half of the bodges sitting around if we end up doing things a
> different way.
I agree, but in this case the ABE series will be huge. We're trying to
break this into smaller and more digestible chunks rather than a massive
series.
The commit message here should have been more descriptive and described
the ABE use case.
Liam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: omap-mcbsp: Export functions for threshold configuration
2012-03-12 12:10 ` Liam Girdwood
@ 2012-03-12 12:17 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2012-03-12 12:17 UTC (permalink / raw)
To: Liam Girdwood; +Cc: Peter Ujfalusi, alsa-devel, Jarkko Nikula
[-- Attachment #1.1: Type: text/plain, Size: 567 bytes --]
On Mon, Mar 12, 2012 at 12:10:30PM +0000, Liam Girdwood wrote:
> I agree, but in this case the ABE series will be huge. We're trying to
> break this into smaller and more digestible chunks rather than a massive
> series.
> The commit message here should have been more descriptive and described
> the ABE use case.
Yeah, or just mix this in with whatever part of the series needs the
export (indeed it might make sense to add the export and the user in the
same commit). Splitting the series up a bit is good but this is going
to the other extreme!
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-12 12:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-12 11:01 [PATCH] ASoC: omap-mcbsp: Export functions for threshold configuration Peter Ujfalusi
2012-03-12 11:59 ` Mark Brown
2012-03-12 12:10 ` Liam Girdwood
2012-03-12 12:17 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.