diff options
Diffstat (limited to 'sound/soc/intel/atom/sst-mfld-platform-pcm.c')
-rw-r--r-- | sound/soc/intel/atom/sst-mfld-platform-pcm.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index 683e50116152..0487cfaac538 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c | |||
@@ -368,23 +368,6 @@ static void sst_media_close(struct snd_pcm_substream *substream, | |||
368 | kfree(stream); | 368 | kfree(stream); |
369 | } | 369 | } |
370 | 370 | ||
371 | static inline unsigned int get_current_pipe_id(struct snd_soc_dai *dai, | ||
372 | struct snd_pcm_substream *substream) | ||
373 | { | ||
374 | struct sst_data *sst = snd_soc_dai_get_drvdata(dai); | ||
375 | struct sst_dev_stream_map *map = sst->pdata->pdev_strm_map; | ||
376 | struct sst_runtime_stream *stream = | ||
377 | substream->runtime->private_data; | ||
378 | u32 str_id = stream->stream_info.str_id; | ||
379 | unsigned int pipe_id; | ||
380 | |||
381 | pipe_id = map[str_id].device_id; | ||
382 | |||
383 | dev_dbg(dai->dev, "got pipe_id = %#x for str_id = %d\n", | ||
384 | pipe_id, str_id); | ||
385 | return pipe_id; | ||
386 | } | ||
387 | |||
388 | static int sst_media_prepare(struct snd_pcm_substream *substream, | 371 | static int sst_media_prepare(struct snd_pcm_substream *substream, |
389 | struct snd_soc_dai *dai) | 372 | struct snd_soc_dai *dai) |
390 | { | 373 | { |
@@ -529,7 +512,7 @@ static struct snd_soc_dai_driver sst_platform_dai[] = { | |||
529 | }, | 512 | }, |
530 | { | 513 | { |
531 | .name = "compress-cpu-dai", | 514 | .name = "compress-cpu-dai", |
532 | .compress_dai = 1, | 515 | .compress_new = snd_soc_new_compress, |
533 | .ops = &sst_compr_dai_ops, | 516 | .ops = &sst_compr_dai_ops, |
534 | .playback = { | 517 | .playback = { |
535 | .stream_name = "Compress Playback", | 518 | .stream_name = "Compress Playback", |