diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-31 18:41:33 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-31 18:41:33 +1100 |
commit | 0765c6c497379a9f850d15be3b3cbdaba59fe7fc (patch) | |
tree | 9059ea9d2e62080e4a55f8f30868d6f72485e5f8 /loopback/loopback.c | |
parent | 80973a617ada9181a40a69e25b7f23e7c02bc545 (diff) |
Remove coreinfo, absorb version info into core
Since coreinfo only has version info, and this is not being used
at all, we can absorb the version info into the private
avirt_core structure.
We could in future implement a function to retrieve the version,
when, and if, it is required.
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'loopback/loopback.c')
-rw-r--r-- | loopback/loopback.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/loopback/loopback.c b/loopback/loopback.c index b4a82e5..c3e06be 100644 --- a/loopback/loopback.c +++ b/loopback/loopback.c @@ -46,7 +46,6 @@ MODULE_LICENSE("GPL"); #define NO_PITCH 100000 -static struct snd_avirt_coreinfo *coreinfo; static struct loopback *loopback; struct loopback_pcm; @@ -1093,9 +1092,9 @@ static int __init alsa_card_loopback_init(void) { int err = 0; - err = snd_avirt_audiopath_register(&loopbackap_module, &coreinfo); - if ((err < 0) || (!coreinfo)) { - AP_ERRORK("coreinfo is NULL!"); + err = snd_avirt_audiopath_register(&loopbackap_module); + if (err < 0) { + AP_ERRORK("Failed to register with AVIRT"); return err; } |