From c2f035a73b3a1e3d88d00424f3817b773d34dbbb Mon Sep 17 00:00:00 2001 From: Emil Chudzik Date: Tue, 5 Feb 2019 15:25:49 +0100 Subject: [PATCH] ssp: remove unused loopback mode method Signed-off-by: Emil Chudzik --- src/drivers/intel/baytrail/ssp.c | 14 -------------- src/drivers/intel/cavs/ssp.c | 14 -------------- src/drivers/intel/haswell/ssp.c | 14 -------------- 3 files changed, 42 deletions(-) diff --git a/src/drivers/intel/baytrail/ssp.c b/src/drivers/intel/baytrail/ssp.c index 489dbd60e..2d21b42c4 100644 --- a/src/drivers/intel/baytrail/ssp.c +++ b/src/drivers/intel/baytrail/ssp.c @@ -482,19 +482,6 @@ out: return ret; } -/* Digital Audio interface formatting */ -static inline int ssp_set_loopback_mode(struct dai *dai, uint32_t lbm) -{ - trace_ssp("ssp_set_loopback_mode()"); - spin_lock(&dai->lock); - - ssp_update_bits(dai, SSCR1, SSCR1_LBM, lbm ? SSCR1_LBM : 0); - - spin_unlock(&dai->lock); - - return 0; -} - /* start the SSP for either playback or capture */ static void ssp_start(struct dai *dai, int direction) { @@ -648,5 +635,4 @@ const struct dai_ops ssp_ops = { .pm_context_store = ssp_context_store, .pm_context_restore = ssp_context_restore, .probe = ssp_probe, - .set_loopback_mode = ssp_set_loopback_mode, }; diff --git a/src/drivers/intel/cavs/ssp.c b/src/drivers/intel/cavs/ssp.c index 68a1c51e6..48b99ff92 100644 --- a/src/drivers/intel/cavs/ssp.c +++ b/src/drivers/intel/cavs/ssp.c @@ -787,19 +787,6 @@ out: return ret; } -/* Digital Audio interface formatting */ -static inline int ssp_set_loopback_mode(struct dai *dai, uint32_t lbm) -{ - trace_ssp("ssp_set_loopback_mode()"); - spin_lock(&dai->lock); - - ssp_update_bits(dai, SSCR1, SSCR1_LBM, lbm ? SSCR1_LBM : 0); - - spin_unlock(&dai->lock); - - return 0; -} - /* start the SSP for either playback or capture */ static void ssp_start(struct dai *dai, int direction) { @@ -975,5 +962,4 @@ const struct dai_ops ssp_ops = { .pm_context_restore = ssp_context_restore, .probe = ssp_probe, .remove = ssp_remove, - .set_loopback_mode = ssp_set_loopback_mode, }; diff --git a/src/drivers/intel/haswell/ssp.c b/src/drivers/intel/haswell/ssp.c index 5b3e13a5e..419435e81 100644 --- a/src/drivers/intel/haswell/ssp.c +++ b/src/drivers/intel/haswell/ssp.c @@ -376,19 +376,6 @@ out: return ret; } -/* Digital Audio interface formatting */ -static inline int ssp_set_loopback_mode(struct dai *dai, uint32_t lbm) -{ - trace_ssp("ssp_set_loopback_mode()"); - spin_lock(&dai->lock); - - ssp_update_bits(dai, SSCR1, SSCR1_LBM, lbm ? SSCR1_LBM : 0); - - spin_unlock(&dai->lock); - - return 0; -} - /* start the SSP for either playback or capture */ static void ssp_start(struct dai *dai, int direction) { @@ -538,5 +525,4 @@ const struct dai_ops ssp_ops = { .pm_context_store = ssp_context_store, .pm_context_restore = ssp_context_restore, .probe = ssp_probe, - .set_loopback_mode = ssp_set_loopback_mode, };