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; }