[Background]
I have a kvm guest that runs as my audio server. I'm using snapcast to push audio around the house to raspberry pi/hifiberry nodes, specifically using the librespot plug-in. I'm now trying to add Google Cast support in the form of a Chromecast Audio plugged into the line-in of my host motherboard.
[/Background]
I've tried doing a PCI passthrough on my in-built soundcard, but I don't think my motherboard supports such a thing as virt-manager complained bitterly. I next briefly looked into getting a USB soundcard w/ line-in I could passthrough, but this seemed to be a minefield of compatibility issues just to get one working against the host, let alone the guest. I thought I'd finally solved it by using https://github.com/b-fitzpatrick/cpiped to capture line-in audio on the host and redirect the results to a fifo pipe the guest listened to using 9p and trans=virtio, however, it appears named pipes aren't supported on 9p using virtio as I wasn't seeing any data appear at the guest end of the pipe.
So... does anyone have any ideas what my options are regarding getting line-in audio to a virtualised guest? It feels like this should be able to work using KVM and pipes but my KVM-fu just isn't good enough!
I have a kvm guest that runs as my audio server. I'm using snapcast to push audio around the house to raspberry pi/hifiberry nodes, specifically using the librespot plug-in. I'm now trying to add Google Cast support in the form of a Chromecast Audio plugged into the line-in of my host motherboard.
[/Background]
I've tried doing a PCI passthrough on my in-built soundcard, but I don't think my motherboard supports such a thing as virt-manager complained bitterly. I next briefly looked into getting a USB soundcard w/ line-in I could passthrough, but this seemed to be a minefield of compatibility issues just to get one working against the host, let alone the guest. I thought I'd finally solved it by using https://github.com/b-fitzpatrick/cpiped to capture line-in audio on the host and redirect the results to a fifo pipe the guest listened to using 9p and trans=virtio, however, it appears named pipes aren't supported on 9p using virtio as I wasn't seeing any data appear at the guest end of the pipe.
So... does anyone have any ideas what my options are regarding getting line-in audio to a virtualised guest? It feels like this should be able to work using KVM and pipes but my KVM-fu just isn't good enough!