summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/audio_gb.c
diff options
context:
space:
mode:
authorMark Greer <mgreer@animalcreek.com>2016-08-02 20:30:28 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2016-08-03 10:59:13 +0200
commit8f60ce76a4eb0911ddd5833badd0d27bb5dfb894 (patch)
treeea80d5d0b07dd5426fae6e59d444a64c71113dfb /drivers/staging/greybus/audio_gb.c
parentccc57e20d1cc54b6536a4e63f6da91f42b65000f (diff)
greybus: audio: Remove GET_TX/RX_DELAY message types
The 'GB_AUDIO_TYPE_GET_TX_DELAY' and 'GB_AUDIO_TYPE_GET_RX_DELAY' are no longer a part of the Greybus Audio Device Class Protocol so remove support for them. The message numbers are not coalesced to prevent compatibility issues between the AP and the module. Testing Done: Played music using a speaker module Signed-off-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/audio_gb.c')
-rw-r--r--drivers/staging/greybus/audio_gb.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/staging/greybus/audio_gb.c b/drivers/staging/greybus/audio_gb.c
index 167683d74f1a..a2f1c92e7445 100644
--- a/drivers/staging/greybus/audio_gb.c
+++ b/drivers/staging/greybus/audio_gb.c
@@ -161,26 +161,6 @@ int gb_audio_gb_set_tx_data_size(struct gb_connection *connection,
}
EXPORT_SYMBOL_GPL(gb_audio_gb_set_tx_data_size);
-int gb_audio_gb_get_tx_delay(struct gb_connection *connection,
- uint16_t data_cport, uint32_t *delay)
-{
- struct gb_audio_get_tx_delay_request req;
- struct gb_audio_get_tx_delay_response resp;
- int ret;
-
- req.data_cport = cpu_to_le16(data_cport);
-
- ret = gb_operation_sync(connection, GB_AUDIO_TYPE_GET_TX_DELAY,
- &req, sizeof(req), &resp, sizeof(resp));
- if (ret)
- return ret;
-
- *delay = le32_to_cpu(resp.delay);
-
- return 0;
-}
-EXPORT_SYMBOL_GPL(gb_audio_gb_get_tx_delay);
-
int gb_audio_gb_activate_tx(struct gb_connection *connection,
uint16_t data_cport)
{
@@ -218,26 +198,6 @@ int gb_audio_gb_set_rx_data_size(struct gb_connection *connection,
}
EXPORT_SYMBOL_GPL(gb_audio_gb_set_rx_data_size);
-int gb_audio_gb_get_rx_delay(struct gb_connection *connection,
- uint16_t data_cport, uint32_t *delay)
-{
- struct gb_audio_get_rx_delay_request req;
- struct gb_audio_get_rx_delay_response resp;
- int ret;
-
- req.data_cport = cpu_to_le16(data_cport);
-
- ret = gb_operation_sync(connection, GB_AUDIO_TYPE_GET_RX_DELAY,
- &req, sizeof(req), &resp, sizeof(resp));
- if (ret)
- return ret;
-
- *delay = le32_to_cpu(resp.delay);
-
- return 0;
-}
-EXPORT_SYMBOL_GPL(gb_audio_gb_get_rx_delay);
-
int gb_audio_gb_activate_rx(struct gb_connection *connection,
uint16_t data_cport)
{