Re: Right interface for cellphone modem audio (was Re: [PATCHv2 0/2] N900 Modem Speech Support)

2015-03-06 Thread Kai Vehmanen
Hi, On Fri, 6 Mar 2015, Pavel Machek wrote: Our take was that ALSA is not the right interface for cmt_speech. The cmt_speech interface in the modem is _not_ a PCM interface as modelled by ALSA. Specifically: - the interface is lossy in both directions - data is sent in packets, not a stream

Right interface for cellphone modem audio (was Re: [PATCHv2 0/2] N900 Modem Speech Support)

2015-03-06 Thread Pavel Machek
Hi! > >>Userland access goes via /dev/cmt_speech. The API is implemented in > >>libcmtspeechdata, which is used by ofono and the freesmartphone.org project. > >Yes, the ABI is "tested" for some years, but it is not documented, and > >it is very wrong ABI. > > > >I'm not sure what they do with the

Right interface for cellphone modem audio (was Re: [PATCHv2 0/2] N900 Modem Speech Support)

2015-03-06 Thread Pavel Machek
Hi! Userland access goes via /dev/cmt_speech. The API is implemented in libcmtspeechdata, which is used by ofono and the freesmartphone.org project. Yes, the ABI is tested for some years, but it is not documented, and it is very wrong ABI. I'm not sure what they do with the read(). I was

Re: Right interface for cellphone modem audio (was Re: [PATCHv2 0/2] N900 Modem Speech Support)

2015-03-06 Thread Kai Vehmanen
Hi, On Fri, 6 Mar 2015, Pavel Machek wrote: Our take was that ALSA is not the right interface for cmt_speech. The cmt_speech interface in the modem is _not_ a PCM interface as modelled by ALSA. Specifically: - the interface is lossy in both directions - data is sent in packets, not a stream

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-05 Thread Kai Vehmanen
Hi, On Thu, 5 Mar 2015, Pavel Machek wrote: Userland access goes via /dev/cmt_speech. The API is implemented in libcmtspeechdata, which is used by ofono and the freesmartphone.org project. Yes, the ABI is "tested" for some years, but it is not documented, and it is very wrong ABI. I'm not

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-05 Thread Pavel Machek
Hi! > Userland access goes via /dev/cmt_speech. The API is implemented in > libcmtspeechdata, which is used by ofono and the freesmartphone.org project. > Apart from that the device is also used by the phone binaries distributed > with Maemo. So while this is a new userland ABI for the mainline

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-05 Thread Kai Vehmanen
Hi, On Thu, 5 Mar 2015, Pavel Machek wrote: Userland access goes via /dev/cmt_speech. The API is implemented in libcmtspeechdata, which is used by ofono and the freesmartphone.org project. Yes, the ABI is tested for some years, but it is not documented, and it is very wrong ABI. I'm not sure

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-05 Thread Pavel Machek
Hi! Userland access goes via /dev/cmt_speech. The API is implemented in libcmtspeechdata, which is used by ofono and the freesmartphone.org project. Apart from that the device is also used by the phone binaries distributed with Maemo. So while this is a new userland ABI for the mainline

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-04 Thread Pavel Machek
On Wed 2015-03-04 21:36:50, Aaro Koskinen wrote: > On Wed, Mar 04, 2015 at 08:24:19PM +0100, Pavel Machek wrote: > > @@ -1239,8 +1234,8 @@ static long cs_char_ioctl(struct file *file, unsigned > > int cmd, > > > > if (copy_to_user((void __user *)arg, , sizeof(ifver))) > >

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-04 Thread Pavel Machek
Hi! CMT speech (CMT_SPEECH) [N/m/y/?] (NEW) ? CONFIG_CMT_SPEECH: If you say Y here, you will enable the CMT speech protocol used by Nokia modems. If unsure, say N. Normally, we also specify name of the module in config text. .. which is strange, because I selected "m" and can't find

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-04 Thread Aaro Koskinen
On Wed, Mar 04, 2015 at 08:24:19PM +0100, Pavel Machek wrote: > @@ -1239,8 +1234,8 @@ static long cs_char_ioctl(struct file *file, unsigned > int cmd, > > if (copy_to_user((void __user *)arg, , sizeof(ifver))) > r = -EFAULT; > - break; > } >

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-04 Thread Pavel Machek
Hi! > This patchset contains the missing speech data support for the > Nokia N900 modem. > > Userland access goes via /dev/cmt_speech. The API is implemented in > libcmtspeechdata, which is used by ofono and the freesmartphone.org project. > Apart from that the device is also used by the phone

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-04 Thread Pavel Machek
Hi! This patchset contains the missing speech data support for the Nokia N900 modem. Userland access goes via /dev/cmt_speech. The API is implemented in libcmtspeechdata, which is used by ofono and the freesmartphone.org project. Apart from that the device is also used by the phone

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-04 Thread Aaro Koskinen
On Wed, Mar 04, 2015 at 08:24:19PM +0100, Pavel Machek wrote: @@ -1239,8 +1234,8 @@ static long cs_char_ioctl(struct file *file, unsigned int cmd, if (copy_to_user((void __user *)arg, ifver, sizeof(ifver))) r = -EFAULT; - break; } +

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-04 Thread Pavel Machek
Hi! CMT speech (CMT_SPEECH) [N/m/y/?] (NEW) ? CONFIG_CMT_SPEECH: If you say Y here, you will enable the CMT speech protocol used by Nokia modems. If unsure, say N. Normally, we also specify name of the module in config text. .. which is strange, because I selected m and can't find

Re: [PATCHv2 0/2] N900 Modem Speech Support

2015-03-04 Thread Pavel Machek
On Wed 2015-03-04 21:36:50, Aaro Koskinen wrote: On Wed, Mar 04, 2015 at 08:24:19PM +0100, Pavel Machek wrote: @@ -1239,8 +1234,8 @@ static long cs_char_ioctl(struct file *file, unsigned int cmd, if (copy_to_user((void __user *)arg, ifver, sizeof(ifver)))