summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-08 12:03:56 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:39 +1100
commit85510ff4540c13609b3ec749a80638ae502fd098 (patch)
tree1da39b161a3a9d6eb3ac130836f5964349b86093
parent470fdcb5f773ab45f715a665af6cb35a79ef38ce (diff)
Add card to the configure callback
The loopback audio path might need to add it's own controls. Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
-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 =