summaryrefslogtreecommitdiffstats
path: root/dummy
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-25 14:05:10 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:48 +1100
commit6e5b92cb45996adaa309b9534a53ed81989986de (patch)
treee37af3e861121794f896dac70a86ebd90f5208ce /dummy
parent92492a28f45725d128edc3cb4fba47b08446c7c4 (diff)
Remove unused MODULE_SUPPORTED_DEVICE macros, removed obsolete comments
Added debug macros for Dummy AP Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'dummy')
-rw-r--r--dummy/dummy.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/dummy/dummy.c b/dummy/dummy.c
index 2841585..596838d 100644
--- a/dummy/dummy.c
+++ b/dummy/dummy.c
@@ -20,6 +20,12 @@ MODULE_AUTHOR("Mark Farrugia <mark.farrugia@fiberdyne.com.au>");
MODULE_DESCRIPTION("Dummy Audio Path for AVIRT");
MODULE_LICENSE("GPL v2");
+#define AP_UID "ap_dummy"
+
+#define AP_INFOK(fmt, args...) DINFO(AP_UID, fmt, ##args)
+#define AP_PRINTK(fmt, args...) DDEBUG(AP_UID, fmt, ##args)
+#define AP_ERRORK(fmt, args...) DERROR(AP_UID, fmt, ##args)
+
#define DUMMY_SAMPLE_RATE 48000
#define DUMMY_BLOCKSIZE 512
#define DUMMY_PERIODS_MIN 1
@@ -247,8 +253,8 @@ int dummy_configure(struct snd_card *card,
container_of(entry, struct config_item, ci_entry);
struct avirt_stream *stream =
avirt_stream_from_config_item(item);
- pr_info("%s: stream name:%s device:%d channels:%d\n", __func__,
- stream->name, stream->device, stream->channels);
+ AP_INFOK("stream name:%s device:%d channels:%d", stream->name,
+ stream->device, stream->channels);
}
return 0;