diff options
author | James O'Shannessy <james.oshannessy@fiberdyne.com.au> | 2018-10-02 15:55:55 +1000 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:29 +1100 |
commit | 55d9a9f22aa909449925da9cb2e8de4d5a41bdfb (patch) | |
tree | f07b99a5b5955128e3a48aa25e3a2a97013eceb5 /alsa-pcm.c | |
parent | bc249f293cab17c0dcde886fccc26deb0dfca33c (diff) |
Loopback progress
Loopback currently reads from dma_area but the initial copy from playback to capture has not been implemented.
Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
Diffstat (limited to 'alsa-pcm.c')
-rw-r--r-- | alsa-pcm.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -59,8 +59,12 @@ static int configure_pcm(struct snd_pcm_substream *substream) CHK_NULL(group); // Check if substream id is valid - if (substream->pcm->device >= group->devices) + pr_info("%d substream is < %d", substream->pcm->device, group->devices); + if (substream->pcm->device >= group->devices) { + pr_err("%s %d substream id is invalid expecting %d", __func__, + substream->pcm->device, group->devices); return -1; + } // Setup remaining hw properties config = &group->config[substream->pcm->device]; @@ -158,7 +162,7 @@ static int pcm_hw_params(struct snd_pcm_substream *substream, } // Do additional Audio Path 'hw_params' callback - // DO_AUDIOPATH_CB(hw_params, substream, hw_params); + DO_AUDIOPATH_CB(hw_params, substream, hw_params); return 0; } @@ -178,7 +182,7 @@ static int pcm_hw_free(struct snd_pcm_substream *substream) CHK_ERR(snd_pcm_lib_free_vmalloc_buffer(substream)); // Do additional Audio Path 'hw_free' callback - // DO_AUDIOPATH_CB(hw_free, substream); + DO_AUDIOPATH_CB(hw_free, substream); return 0; } |