[PATCH 3/5] cplay: remove dead code check_codec_format_supported()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The check_codec_format_supported() was added but never used so remove
it and eliminate unused function warning

cplay.c:103:20: warning: ‘codec_name_from_id’ defined but not used [-Wunused-function]

We can take from git if user appears

Signed-off-by: Vinod Koul <vinod.koul@xxxxxxxxx>
---
CC: Katsuhiro Suzuki <suzuki.katsuhiro@xxxxxxxxxxxxx>

 src/utils/cplay.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/utils/cplay.c b/src/utils/cplay.c
index b02644a3f2ea..d2c60f976c6c 100644
--- a/src/utils/cplay.c
+++ b/src/utils/cplay.c
@@ -165,15 +165,6 @@ static int parse_mp3_header(struct mp3_header *header, unsigned int *num_channel
 	return 0;
 }
 
-static int check_codec_format_supported(unsigned int card, unsigned int device, struct snd_codec *codec)
-{
-	if (is_codec_supported(card, device, COMPRESS_IN, codec) == false) {
-		fprintf(stderr, "Error: This codec or format is not supported by DSP\n");
-		return -1;
-	}
-	return 0;
-}
-
 static int print_time(struct compress *compress)
 {
 	unsigned int avail;
-- 
2.7.4

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux