* Codec "virtual multiplexer" representation
@ 2016-02-17 16:02 Petr Kulhavy
2016-02-18 5:30 ` Andreas Dannenberg
0 siblings, 1 reply; 3+ messages in thread
From: Petr Kulhavy @ 2016-02-17 16:02 UTC (permalink / raw)
To: alsa-devel
Hi,
I'm writing an ASoC driver for the TAS5721 amplifier.
This 2.1 amplifier provides a complex configuration of the audio
channels (3), PWMs(4) and output(4) mappings.
However only few (about 6) configurations really make sense.
I'm trying to model the output configurations in ALSA. In order to avoid
a complicated set of switches and multiplexers I would like
to add just one multiplexer like control which selects one of these 6
output configurations and a callback function which sets the proper
registers accordingly (there are 5 affected registers).
Is there a way to create such a "virtual multiplexer" in ALSA?
Thanks
Petr
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Codec "virtual multiplexer" representation
2016-02-17 16:02 Codec "virtual multiplexer" representation Petr Kulhavy
@ 2016-02-18 5:30 ` Andreas Dannenberg
2016-02-24 16:57 ` Petr Kulhavy
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Dannenberg @ 2016-02-18 5:30 UTC (permalink / raw)
To: Petr Kulhavy; +Cc: alsa-devel
On Wed, Feb 17, 2016 at 05:02:47PM +0100, Petr Kulhavy wrote:
> Hi,
>
> I'm writing an ASoC driver for the TAS5721 amplifier.
> This 2.1 amplifier provides a complex configuration of the audio channels
> (3), PWMs(4) and output(4) mappings.
> However only few (about 6) configurations really make sense.
Petr,
on a related note, I'm currently working on a combined driver (85%
complete) for TAS5720/TAS5722 which are nice but relatively simple
Class-D mono amplifiers. Despite almost having the same P/N there is
little to no similarity with TAS5721 (which gives a another example why
one should be careful with wildcard 'x' in driver names) so there is no
case for a combined driver here but let's make sure we align our
namespace to avoid collision:
tas5720.[c|h] - Driver for TAS5720/TAS5722 (WIP by Andreas)
tas5721.[c|h] - Driver for TAS5721 (WIP by Petr)
Regards,
--
Andreas Dannenberg
Texas Instruments Inc
>
> I'm trying to model the output configurations in ALSA. In order to avoid a
> complicated set of switches and multiplexers I would like
> to add just one multiplexer like control which selects one of these 6 output
> configurations and a callback function which sets the proper
> registers accordingly (there are 5 affected registers).
>
> Is there a way to create such a "virtual multiplexer" in ALSA?
>
> Thanks
> Petr
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Codec "virtual multiplexer" representation
2016-02-18 5:30 ` Andreas Dannenberg
@ 2016-02-24 16:57 ` Petr Kulhavy
0 siblings, 0 replies; 3+ messages in thread
From: Petr Kulhavy @ 2016-02-24 16:57 UTC (permalink / raw)
To: Andreas Dannenberg; +Cc: alsa-devel
On 18.02.2016 06:30, Andreas Dannenberg wrote:
>
> Petr,
> on a related note, I'm currently working on a combined driver (85%
> complete) for TAS5720/TAS5722 which are nice but relatively simple
> Class-D mono amplifiers. Despite almost having the same P/N there is
> little to no similarity with TAS5721 (which gives a another example why
> one should be careful with wildcard 'x' in driver names) so there is no
> case for a combined driver here but let's make sure we align our
> namespace to avoid collision:
>
> tas5720.[c|h] - Driver for TAS5720/TAS5722 (WIP by Andreas)
> tas5721.[c|h] - Driver for TAS5721 (WIP by Petr)
>
> Regards,
>
> --
> Andreas Dannenberg
> Texas Instruments Inc
>
Hi Andreas,
thanks for letting me know! In the meantime I have found there is a
driver for TAS5711, TAS5717 and TAS5719.
The TAS5721 is very similar to the 5711, so I will just update that
driver rather than creating a new one.
One question came to my mind, which you can perhaps help me to answer as
you are more familiar with these amplifiers:
what is the usual representation of a 2.1 system in controls? I'm
wondering that the TAS5711 has just master volume and a double slider
for Ch1/Ch2, but there is no Ch3 control.
Surely that is needed as well, isn't it?
Regards
Petr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-24 16:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17 16:02 Codec "virtual multiplexer" representation Petr Kulhavy
2016-02-18 5:30 ` Andreas Dannenberg
2016-02-24 16:57 ` Petr Kulhavy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).