v16 controlling volume through ALSA device
#1
HI

We are trying to test Kodi playback on our own i2s-codec interface to Raspberry Pi Model 3. I am using standard raspbian image and running kodi over it. We developed an ALSA driver for our device and have been successful in doing a Kodi playback through our codec speaker output by making it as ALSA default device.

Now I further want to control volume (up/down/mute) through kodi on our device during playback. Could you tell me if kodi provide support to do such control on ALSA device ? and if yes, how? Do we need any support in our ALSA codec driver to enable these controls.

I know that every ALSA codec device has to implement mixer controls for such functionalities so I can add such controls in my driver. However, what I dont know how Kodi invokes them ? what should be mixer control name for playback volume up / down / mute

Could anyone please help me here?

Thanks
Reply
#2
I don't believe kodi will adjust volume through mixer settings.
It will scale the PCM values it is outputting.
Reply
#3
Thanks that helped. it working without any mixer support
Reply

Logout Mark Read Team Forum Stats Members Help
controlling volume through ALSA device0