diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-09-05 14:53:53 +1000 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:32 +1100 |
commit | 4e675e7d45af2fab1ab8d8a6e8d0c86bc4a2a960 (patch) | |
tree | 4a6d1390845f13eff77076fd0340f8f82e743cd1 /core.c | |
parent | 8be23a7c5fafd44296962620299569bf70529f3d (diff) |
Move ALSA info into coreinfo, for export to Audio Paths
Remove the avirt_alsa_driver
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'core.c')
-rw-r--r-- | core.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -65,7 +65,7 @@ static struct avirt_core { struct platform_device *platform_dev; } core; -static struct avirt_coreinfo coreinfo = { +struct avirt_coreinfo coreinfo = { .version = { 0, 0, 1 }, .pcm_buff_complete = pcm_buff_complete_cb, }; @@ -79,8 +79,8 @@ static LIST_HEAD(audiopath_list); */ static int avirt_probe(struct platform_device *devptr) { - // struct avirt_alsa_dev_config capture_config[MAX_PCM_DEVS]; - struct avirt_alsa_dev_config playback_config[MAX_PCM_DEVS]; + // struct avirt_alsa_devconfig capture_config[MAX_PCM_DEVS]; + struct avirt_alsa_devconfig playback_config[MAX_PCM_DEVS]; int err = 0, i = 0; if (playback_num == 0 && capture_num == 0) { @@ -88,13 +88,6 @@ static int avirt_probe(struct platform_device *devptr) return -EINVAL; } - coreinfo.playback_num = playback_num; - coreinfo.capture_num = capture_num; - - err = avirt_alsa_init(); - if (err < 0) - return err; - // Set up playback for (i = 0; i < playback_num; i++) { if (!playback_names[i]) { |