* [RFC] Alsa mixer over serial port
@ 2009-07-02 13:27 Janusz Krzysztofik
2009-07-02 13:32 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Janusz Krzysztofik @ 2009-07-02 13:27 UTC (permalink / raw)
To: alsa-devel@alsa-project.org, linux-serial
Hi,
I'm currently working on ASoC driver for a voice modem codec chip
(Conexant CX20442) available on ARM OMAP amsdelta board. The driver
should provide some controls for switching audio path from handset to
speakerphone and back, changing volume etc.
The only way of controlling some aspects of the codec that I know of is
over an acompanying voice modem chip (CX81801) with AT voice commands.
The modem can be accessed over a platform serial device.
I can see two ways of getting this working:
1) add a new line discipline that would take control over the serial
line and convert it to an alsa mixer,
2) create a low level driver that would replace standard serial stuff
completely (like snd-serial-u16550 does, for example).
Please advise which one is better.
Thanks,
Janusz
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] Alsa mixer over serial port
2009-07-02 13:27 [RFC] Alsa mixer over serial port Janusz Krzysztofik
@ 2009-07-02 13:32 ` Mark Brown
2009-07-05 20:55 ` [alsa-devel] " Janusz Krzysztofik
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2009-07-02 13:32 UTC (permalink / raw)
To: Janusz Krzysztofik; +Cc: alsa-devel@alsa-project.org, linux-serial
On Thu, Jul 02, 2009 at 03:27:43PM +0200, Janusz Krzysztofik wrote:
> I can see two ways of getting this working:
> 1) add a new line discipline that would take control over the serial
> line and convert it to an alsa mixer,
> 2) create a low level driver that would replace standard serial stuff
> completely (like snd-serial-u16550 does, for example).
> Please advise which one is better.
ASoC doesn't really care for itself - it just needs the upper layer
interface, how exactly the driver ineteracts with the device is not
important to ASoC.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [alsa-devel] [RFC] Alsa mixer over serial port
2009-07-02 13:32 ` Mark Brown
@ 2009-07-05 20:55 ` Janusz Krzysztofik
0 siblings, 0 replies; 3+ messages in thread
From: Janusz Krzysztofik @ 2009-07-05 20:55 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel@alsa-project.org, linux-serial
Thursday 02 July 2009 15:32:21 Mark Brown napisał(a):
> On Thu, Jul 02, 2009 at 03:27:43PM +0200, Janusz Krzysztofik wrote:
> > I can see two ways of getting this working:
> > 1) add a new line discipline that would take control over the serial
> > line and convert it to an alsa mixer,
> > 2) create a low level driver that would replace standard serial stuff
> > completely (like snd-serial-u16550 does, for example).
> >
> > Please advise which one is better.
>
> ASoC doesn't really care for itself - it just needs the upper layer
> interface, how exactly the driver ineteracts with the device is not
> important to ASoC.
Mark, thanks.
As there are no other votes, I choose line discipline. Generic form of
required userspace support is already provided with util-linux-ng and it
seems much better to use established low level driver code than reinvent a
new one ;).
I hope there will be no problem getting a new line discipline registered with
include/linux/tty.h, even if it turns out that the code using it is dedicated
to a specific device not found on any other board than my Amstrad E3.
Thanks,
Janusz
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-05 20:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02 13:27 [RFC] Alsa mixer over serial port Janusz Krzysztofik
2009-07-02 13:32 ` Mark Brown
2009-07-05 20:55 ` [alsa-devel] " Janusz Krzysztofik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox