I have made changes to my system to accomodate my specific needs using stuff I’ve found on forums and somehow got it all to work, without really understanding HOW it works.
What it does is it creates an audio loopback output for streaming. It works perfectly, but what I am wanting (hoping) to do is to have kodi ALSO send audio to the analog output (the 3.5mm jack).
That gives me ALSA: Loopback(loopin), LOOPBACK PCM in Kodi’s audio section
Is there something I can add to this (or somewhere else) that will also pipe the audio to the 3.5mm jack? Similar to how you can select HDMI and Analog audio together in Kodi. Or any other way, really.
One other thing that might be relevant. I am running 17.6 Dec 31 2018 and I can’t upgrade.
I’ve been looking into this since the option to have HDMI and analogue at the same time disappeared. On 19.3 it’s not easy. On 17.6 you should just be able to add two more channels to your multi pcm, but I haven’t found time to fire up 17.6 to see what the slave would be for analogue.
I don’t think it’s possible. On versions previous to Kodi 19, output can be directed to the chip direct, which supports both HDMI and analogue, or through ALSA, but there’s no ALSA driver for the analogue output. So if you are using ALSA, you can’t use the analogue jack.
Your link is to a thread on V19. The OP is on 17.6 which is different.
I would love to post the debug logs, but I am not sure how to do that. I’m sorry, I thought I was clear. When I add the above to asoundrc, it gives me a loopback audio, which I can select in Kodi as the default audio device. But no other local audio. Not through the 3.5mm jack or through HDMI. This is an internet radio station, which works perfectly. But I need a way to pipe the same audio stream through another (3.5 jack or HDMI) output, which feeds the FM transmitter I have. Currently I have to use a second Pi to feed the FM transmitter. If I could get the audio to also come through the analog or HDMI, then I would only need one Pi. There are a whole list of things it would improve by doing this.
Gotit. The .asoundrc you posted should in theory achieve what you want. I thought you had HDMI output already and just wanted to add analogue. There must be a ‘mistake’ in that file. ALSA is very finicky. What I notice so far:
it should not be necessary to make the file as root - that may be counter-productive
the bit that starts pcm.!default - I don’t think that has any effect
I suspect you need a plug plug-in for the HDMI output to make sure it receives the right type of signal
… but I guess you are not seeing ‘multi’ then, or ‘output’ in that menu?
For debug logs, so we can confirm my diagnosis:
To get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.
Depending on the used skin you have to set the settings-level to standard or higher, in summary:
enable debug logging at settings->system->logging
reboot the OSMC device twice(!)
reproduce the issue
upload the log set (all configs and logs!) either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A
publish the provided URL from the log set upload, here
Thanks for your understanding. We hope that we can help you get up and running again shortly.
I’ve been trying to get this working for years. So anytime you have a minute. And I appreciate your help. I will still upload the debug logs if you’d like, but it’s not really malfunctioning. I’m just trying to add another pipe. But if they will help, I will.