Skip to content

Commit 7f62fe8

Browse files
Kai Vehmanensre
authored andcommitted
HSI: cmt_speech: Add cmt-speech driver
Introduces the cmt-speech driver, which implements a character device interface for transferring speech data frames over HSI/SSI. The driver is used to exchange voice/speech data between the Nokia N900/N950/N9's modem and its cpu. Signed-off-by: Kai Vehmanen <kai.vehmanen@nokia.com> Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com> Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com> Since the original driver has been written for 2.6.28 some build fixes and general cleanups have been added by me: * fix build for 4.0 kernel * replace GFP_ATOMIC with GFP_KERNEL in cs_alloc_cmds() * add sanity check for CS_SET_WAKELINE ioctl * cleanup driver initialisation * rename driver to cmt-speech to be consistent with ssi-protocol driver * move cs-protocol.h to include/uapi/linux/hsi, since it describes a userspace API * replace hardcoded channels numbers with values provided via the HSI framework (e.g. coming from DT) Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi> Tested-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Sebastian Reichel <sre@kernel.org>
1 parent b224912 commit 7f62fe8

File tree

5 files changed

+1581
-1
lines changed

5 files changed

+1581
-1
lines changed

drivers/hsi/clients/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ config NOKIA_MODEM
1313

1414
If unsure, say N.
1515

16+
config CMT_SPEECH
17+
tristate "CMT speech"
18+
depends on HSI && SSI_PROTOCOL
19+
help
20+
If you say Y here, you will enable the CMT speech protocol used
21+
by Nokia modems. If you say M the protocol will be available as
22+
module named cmt_speech.
23+
24+
If unsure, say N.
25+
1626
config SSI_PROTOCOL
1727
tristate "SSI protocol"
1828
depends on HSI && PHONET && OMAP_SSI

drivers/hsi/clients/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44

55
obj-$(CONFIG_NOKIA_MODEM) += nokia-modem.o
66
obj-$(CONFIG_SSI_PROTOCOL) += ssi_protocol.o
7+
obj-$(CONFIG_CMT_SPEECH) += cmt_speech.o
78
obj-$(CONFIG_HSI_CHAR) += hsi_char.o

0 commit comments

Comments
 (0)