ALSA: compress: Pass id string to snd_compress_new
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 25 Nov 2015 13:00:24 +0000 (13:00 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 30 Nov 2015 10:44:59 +0000 (11:44 +0100)
commite5241a8c4b22b678dd9b07527ba9f178f02e160e
tree704b5b132505dd924894f746f1e798b8e5322719
parent3174272474862c545d0cb7bf17b25a0f75800966
ALSA: compress: Pass id string to snd_compress_new

Make snd_compress_new take an id string (like snd_pcm_new).
This string can be included in the procfs info.

This patch also updates soc_new_compress() to create an ID
based on the stream and dai name, as done for PCM streams.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/compress_driver.h
sound/core/compress_offload.c
sound/soc/soc-compress.c