summaryrefslogtreecommitdiffstats
path: root/core.c
diff options
context:
space:
mode:
authorJames O'Shannessy <james.oshannessy@fiberdyne.com.au>2018-10-02 15:55:55 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:29 +1100
commit55d9a9f22aa909449925da9cb2e8de4d5a41bdfb (patch)
treef07b99a5b5955128e3a48aa25e3a2a97013eceb5 /core.c
parentbc249f293cab17c0dcde886fccc26deb0dfca33c (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 'core.c')
-rw-r--r--core.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/core.c b/core.c
index 875e844..479b93e 100644
--- a/core.c
+++ b/core.c
@@ -19,6 +19,12 @@ MODULE_AUTHOR("MFARRUGI <mark.farrugia@fiberdyne.com.au>");
MODULE_DESCRIPTION("A configurable virtual soundcard");
MODULE_LICENSE("GPL v2");
+#define AP_LOGNAME "CORE"
+
+#define D_INFOK(fmt, args...) DINFO(AP_LOGNAME, fmt, ##args)
+#define D_PRINTK(fmt, args...) DPRINT(AP_LOGNAME, fmt, ##args)
+#define D_ERRORK(fmt, args...) DERROR(AP_LOGNAME, fmt, ##args)
+
#define SND_AVIRTUAL_DRIVER "snd_avirt"
#define MAX_PCM_DEVS 8
#define MAX_AUDIOPATHS 4
@@ -350,8 +356,8 @@ int avirt_register_audiopath(struct avirt_audiopath *audiopath,
audiopath_obj->path = audiopath;
audiopath->context = audiopath_obj;
- pr_info("Registered new Audio Path: %s\n", audiopath->name);
- pr_info("\tBlocksize: %d, Periods: %d\n", audiopath->blocksize,
+ D_INFOK("Registered new Audio Path: %s", audiopath->name);
+ D_INFOK("\tBlocksize: %d, Periods: %d", audiopath->blocksize,
audiopath->hw->periods_max);
list_add_tail(&audiopath_obj->list, &audiopath_list);
@@ -405,9 +411,9 @@ static void avirt_unregister_all(void)
static int __init core_init(void)
{
int err;
-
- pr_info("Alsa Virtual Sound Driver avirt-%d.%d.%d\n",
- coreinfo.version[0], coreinfo.version[1], coreinfo.version[2]);
+ D_INFOK("Starting new core\n\n\n\n");
+ D_INFOK("Alsa Virtual Sound Driver avirt-%d.%d.%d", coreinfo.version[0],
+ coreinfo.version[1], coreinfo.version[2]);
// Initialize audiopaths linked list
INIT_LIST_HEAD(&audiopath_list);
@@ -466,7 +472,7 @@ static void __exit core_exit(void)
class_destroy(core.avirt_class);
avirt_unregister_all();
-
+ D_INFOK("Exit begin!");
pr_info("playback_num: %d, capture_num: %d\n", playback_num,
capture_num);