24 Nov
2008
24 Nov
'08
2:28 p.m.
On Mon, Nov 24, 2008 at 03:09:23PM +0200, Jarkko Nikula wrote:
I'm trying to cover also pure mono codecs like bluetooth audio with McBSP DAI driver. Protocol part is trivial like patch here but interfacing with machine driver is somewhat question mark.
struct snd_soc_dai omap_mcbsp_dai[] = {
- OMAP_MCBSP_DAI_BUILDER(0, 2, 2),
- OMAP_MCBSP_DAI_BUILDER(1, 2, 2),
...
+struct snd_soc_dai omap_mcbsp_dai_mono[] = {
- OMAP_MCBSP_DAI_BUILDER(0, 1, 1),
- OMAP_MCBSP_DAI_BUILDER(1, 1, 1),
Is it not possible to have the DAI switch between mono and stereo at runtime rather than having a DAI for each? That's the normal approach. The core should constrain things based on the capabilities of the connected device.