[alsa-devel] [TINYCOMPRESS][PATCH 1/1] compress: no need to set metadata before calling next_track

Richard Fitzgerald rf at opensource.wolfsonmicro.com
Wed Feb 26 15:29:28 CET 2014

The metadata is mainly for MP3 gapless playback, since
the MP3 audio stream does not contain enough information
to enable gapless. Other audio formats do not necessarily
require any additional metadata so we should allow next_track
to be called without any metadata.

Signed-off-by: Zhao Weijia <weijia.zhao at capelabs.com>
Signed-off-by: Richard Fitzgerald <rf at opensource.wolfsonmicro.com>
 compress.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/compress.c b/compress.c
index 15dfdb7..0c9ecd2 100644
--- a/compress.c
+++ b/compress.c
@@ -534,8 +534,6 @@ int compress_next_track(struct compress *compress)
 	if (!is_compress_running(compress))
 		return oops(compress, ENODEV, "device not ready");
-	if (!compress->gapless_metadata)
-		return oops(compress, EPERM, "metadata not set");
 	if (ioctl(compress->fd, SNDRV_COMPRESS_NEXT_TRACK))
 		return oops(compress, errno, "cannot set next track\n");
 	compress->next_track = 1;

More information about the Alsa-devel mailing list