aboutsummaryrefslogtreecommitdiffstats
path: root/alsa-pcm.c
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-07 22:00:10 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:38 +1100
commit0acef1799beace4dd38d41bda9df77e84a5fe398 (patch)
treea7d85c3b49db82b2cd1789b49c8860a562a4805b /alsa-pcm.c
parentf834eb7b0799a4678639d2a9f71c1dc4352469ce (diff)
Remove blocksize from audiopath
This is no longer needed in AVIRT, since it is only actually used for the ADSP Audio Path. Clean up white space, add function documentation, remove out of place debug prints Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'alsa-pcm.c')
-rw-r--r--alsa-pcm.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/alsa-pcm.c b/alsa-pcm.c
index 5a30aff..958ccbb 100644
--- a/alsa-pcm.c
+++ b/alsa-pcm.c
@@ -49,7 +49,7 @@ static int pcm_open(struct snd_pcm_substream *substream)
struct avirt_audiopath *audiopath;
struct avirt_stream *stream;
struct snd_pcm_hardware *hw;
- unsigned int bytes_per_sample = 0, blocksize = 0, chans = 0;
+ unsigned int chans = 0;
char *uid = "ap_fddsp"; // TD MF: Make this dynamic!
audiopath = avirt_audiopath_get(uid);
@@ -57,20 +57,9 @@ static int pcm_open(struct snd_pcm_substream *substream)
uid);
substream->private_data = audiopath;
- blocksize = audiopath->blocksize;
-
// Copy the hw params from the audiopath to the pcm
hw = &substream->runtime->hw;
memcpy(hw, audiopath->hw, sizeof(struct snd_pcm_hardware));
- pr_info("%s %d %d", __func__, blocksize, hw->periods_max);
-
- if (hw->formats == SNDRV_PCM_FMTBIT_S16_LE) {
- bytes_per_sample = 2;
- } else {
- pr_err("[%s] PCM only supports SNDRV_PCM_FMTBIT_S16_LE",
- __func__);
- return -EINVAL;
- }
stream = __avirt_stream_find_by_device(substream->pcm->device);
if (IS_ERR_VALUE(stream) || !stream)