From 69e26d6a55c8a1536f4453f242d314332e72a5cb Mon Sep 17 00:00:00 2001 From: Preston Baxter Date: Wed, 31 Jul 2024 00:00:12 -0500 Subject: [PATCH] tmp --- .gitignore | 1 + aes67.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index 746c3bf..e2057c3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ *.mod.c *.symvers *.cache +*.o.d diff --git a/aes67.c b/aes67.c index e5683e1..9f1c651 100644 --- a/aes67.c +++ b/aes67.c @@ -5,6 +5,8 @@ * */ #include +#include +#include #include #include #include @@ -38,9 +40,14 @@ MODULE_LICENSE("GPL"); /* Definistion of AES67 Virtual SoundCard */ struct aes67 { + /* ALSA Soundcard*/ struct snd_card *card; + /* PCM Device Soundcard*/ struct snd_pcm *pcm; + /* Linux Device */ struct device *dev; + /* Socket */ + struct socket *socket; }; //Forward declarations @@ -189,8 +196,13 @@ static struct snd_pcm_hardware snd_aes67_capture_hw = { static int snd_aes67_playback_open(struct snd_pcm_substream *substream) { struct aes67 *virtcard = snd_pcm_substream_chip(substream); + struct socket *sock = virtcard->socket; struct snd_pcm_runtime *runtime = substream->runtime; + int err; + + err = sock_create_kern(); + runtime->hw = snd_aes67_playback_hw; return 0; }