summaryrefslogtreecommitdiffstats
path: root/alsa-pcm.c
diff options
context:
space:
mode:
authorJames O'Shannessy <james.oshannessy@fiberdyne.com.au>2018-09-19 16:26:40 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:28 +1100
commitb46cfdf55851280f0c90c7b54ba041932ddfa397 (patch)
tree75d57248b31744276a64d26c1a646ccb22dfb9bc /alsa-pcm.c
parent7bbfc5e47a58851dbb56da1c4b77e534ca00c782 (diff)
Changes to loopback
Added more detailed printing to loopback, alsa-pcm. Updated load and unload functions Signed-off-by: James O'Shannessy <james.oshannessy@fiberdyne.com.au>
Diffstat (limited to 'alsa-pcm.c')
-rw-r--r--alsa-pcm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/alsa-pcm.c b/alsa-pcm.c
index 342188b..0f623f6 100644
--- a/alsa-pcm.c
+++ b/alsa-pcm.c
@@ -10,6 +10,9 @@
#include "core.h"
#include "alsa.h"
+#define DINFO(fmt, args...) \
+ printk(KERN_INFO "[CORE] %d:%s " fmt "\n", __LINE__, __func__, ##args)
+
#define DO_AUDIOPATH_CB(callback, substream, ...) \
do { \
struct avirt_audiopath *ap; \
@@ -86,6 +89,7 @@ static int configure_pcm(struct snd_pcm_substream *substream)
*/
static int pcm_open(struct snd_pcm_substream *substream)
{
+ DINFO("");
// Setup the pcm device based on the configuration assigned
CHK_ERR_V(configure_pcm(substream), "Failed to setup pcm device");
@@ -105,6 +109,7 @@ static int pcm_open(struct snd_pcm_substream *substream)
*/
static int pcm_close(struct snd_pcm_substream *substream)
{
+ DINFO("");
// Do additional Audio Path 'close' callback
DO_AUDIOPATH_CB(close, substream);
@@ -191,6 +196,8 @@ static int pcm_prepare(struct snd_pcm_substream *substream)
struct avirt_alsa_dev_group *group;
struct snd_pcm_runtime *runtime = substream->runtime;
+ DINFO("");
+
group = avirt_alsa_get_dev_group(substream->stream);
CHK_NULL(group);
@@ -219,6 +226,8 @@ static int pcm_trigger(struct snd_pcm_substream *substream, int cmd)
{
struct avirt_alsa_dev_group *group;
+ DINFO("");
+
group = avirt_alsa_get_dev_group(substream->stream);
CHK_NULL(group);