Hi! > > And without the n_gsm serdev support, it's a mess of some app > > similar to [5] initializing n_gsm, trying to deal with the USB > > PHY PM, dealing with Motorola custom packet numbering, kicking > > GNSS device, feeding data to /dev/ugnss. Hmm I think I've already > > been there just to be able to type AT commands to the modem and > > it did not work :) > > It's a mess indeed, but I'd rather see user-space dealing with until we > figure out how best to do it in the kernel. ;) > > > Anyways, for the serdev kernel drivers, the criteria I've tried > > to follow is: "Can this serdev device driver make user space > > apps use standard Linux interfaces for the hardware?" > > > > So for the serdev Alsa ASoC driver, user space can use the standard > > Alsa interface for setting voice call volume. And for the serdev > > GNSS driver, user space can use /dev/gnss0. > > I understand. Both drivers appears to be using AT commands for control. > It would be interesting to hear what Mark has to say about the codec > driver too. Moving AT handling into the kernel scares me a bit. If we > already have a telephony stack to deal with it in user-space, my > inclination is to let it continue to handle it. The userspace part of the telephony stack uses ALSA mixers to do... well... audio mixer configuration for phone calls, and it would be good if Droid 4 could keep the same interface. > Modem-managed GNSS is also different from receivers connected directly > to the host. It's really the modem that drives the GNSS receiver, and > offers a higher-level interface to the host, for example, by buffering > output which the host can later request. It may or may not be the > kernel's job to periodically poll the modem to recreate an NMEA feed so > to speak. > > But the end-result of having it accessible through a standard interface > is of course appealing. Yes please. On N900, there's special (socket-based) interface to the GPS... and it si painful. Plus, it will take some time before modem support on Droid 4 stabilizes... and it would be very welcome to be able to use the GPS in the meantime. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html