Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b138c1e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ALSA: compress: Add snd_compress_free()"

parents df9a3cdf ab8dd73a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@ int snd_compress_register(struct snd_compr *device);
int snd_compress_deregister(struct snd_compr *device);
int snd_compress_new(struct snd_card *card, int device,
			int type, const char *id, struct snd_compr *compr);
void snd_compress_free(struct snd_card *card, struct snd_compr *compr);

/* dsp driver callback apis
 * For playback: driver should call snd_compress_fragment_elapsed() to let the
+11 −0
Original line number Diff line number Diff line
@@ -1095,6 +1095,17 @@ int snd_compress_new(struct snd_card *card, int device,
}
EXPORT_SYMBOL_GPL(snd_compress_new);

/*
 * snd_compress_free: free compress device
 * @card: sound card pointer
 * @compr: compress device pointer
 */
void snd_compress_free(struct snd_card *card, struct snd_compr *compr)
{
	snd_device_free(card, compr);
}
EXPORT_SYMBOL(snd_compress_free);

static int snd_compress_add_device(struct snd_compr *device)
{
	int ret;