aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core.h3
-rw-r--r--dummy/dummy.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/core.h b/core.h
index ec44081..b7c250a 100644
--- a/core.h
+++ b/core.h
@@ -32,7 +32,8 @@
* Each Audio Path registers this at avirt_audiopath_register time.
* It is then called by the core once AVIRT has been configured
*/
-typedef int (*avirt_audiopath_configure)(struct config_group *stream_group,
+typedef int (*avirt_audiopath_configure)(struct snd_card *card,
+ struct config_group *stream_group,
unsigned int stream_count);
/**
diff --git a/dummy/dummy.c b/dummy/dummy.c
index 8808e8e..b77301f 100644
--- a/dummy/dummy.c
+++ b/dummy/dummy.c
@@ -231,14 +231,14 @@ static struct snd_pcm_ops dummyap_pcm_ops = {
/*******************************************************************************
* Dummy Audio Path AVIRT registration
******************************************************************************/
-int dummy_configure(struct config_group *avirt_stream_group,
+int dummy_configure(struct snd_card *card,
+ struct config_group *avirt_stream_group,
unsigned int stream_count)
{
// Do something with streams
struct list_head *entry;
- list_for_each(entry, &avirt_stream_group->cg_children)
- {
+ list_for_each (entry, &avirt_stream_group->cg_children) {
struct config_item *item =
container_of(entry, struct config_item, ci_entry);
struct avirt_stream *stream =