On my Pi2B, numid=3 is the volume control, numid=4 is the mute switch, so this sort of thing might be better:
amixer cset numid=3 56231,56231
amixer cset numid=4 1
Check with amixer controls
Having said that, I think Kodi doesn’t use alsa on the Pi for hdmi or analogue, but try it. You shouldn’t actually need alsa at all - the only alsa sound sink should be the BT output device. from kodi.log:
02:41:19.391 T:1959120896 NOTICE: Found 2 Lists of Devices
02:41:19.391 T:1959120896 NOTICE: Enumerated PI devices:
02:41:19.391 T:1959120896 NOTICE: Device 1
02:41:19.392 T:1959120896 NOTICE: m_deviceName : HDMI
02:41:19.392 T:1959120896 NOTICE: m_displayName : HDMI
02:41:19.392 T:1959120896 NOTICE: m_displayNameExtra:
02:41:19.392 T:1959120896 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
02:41:19.392 T:1959120896 NOTICE: m_channels : FL,FR
02:41:19.392 T:1959120896 NOTICE: m_sampleRates : 8000,11025,16000,22050,24000,32000,44
100,48000,88200,96000,176400,192000
02:41:19.392 T:1959120896 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16N
E,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_RAW
02:41:19.392 T:1959120896 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_EAC3,STRE
AM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_512
02:41:19.392 T:1959120896 NOTICE: Device 2
02:41:19.392 T:1959120896 NOTICE: m_deviceName : Analogue
02:41:19.392 T:1959120896 NOTICE: m_displayName : Analogue
02:41:19.392 T:1959120896 NOTICE: m_displayNameExtra:
02:41:19.392 T:1959120896 NOTICE: m_deviceType : AE_DEVTYPE_PCM
02:41:19.392 T:1959120896 NOTICE: m_channels : FL,FR
02:41:19.392 T:1959120896 NOTICE: m_sampleRates : 48000
02:41:19.393 T:1959120896 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16L
E,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
02:41:19.393 T:1959120896 NOTICE: m_streamTypes : No passthrough capabilities
02:41:19.393 T:1959120896 NOTICE: Device 3
02:41:19.393 T:1959120896 NOTICE: m_deviceName : Both
02:41:19.393 T:1959120896 NOTICE: m_displayName : HDMI and Analogue
02:41:19.393 T:1959120896 NOTICE: m_displayNameExtra:
02:41:19.393 T:1959120896 NOTICE: m_deviceType : AE_DEVTYPE_PCM
02:41:19.393 T:1959120896 NOTICE: m_channels : FL,FR
02:41:19.393 T:1959120896 NOTICE: m_sampleRates : 48000
02:41:19.393 T:1959120896 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16L
E,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
02:41:19.393 T:1959120896 NOTICE: m_streamTypes : No passthrough capabilities
02:41:19.393 T:1959120896 NOTICE: Enumerated ALSA devices:
02:41:19.393 T:1959120896 NOTICE: Device 1
02:41:19.393 T:1959120896 NOTICE: m_deviceName : pulse
02:41:19.393 T:1959120896 NOTICE: m_displayName : OSMC streaming to Bluetooth speaker /
headphones
02:41:19.393 T:1959120896 NOTICE: m_displayNameExtra:
02:41:19.393 T:1959120896 NOTICE: m_deviceType : AE_DEVTYPE_PCM
02:41:19.394 T:1959120896 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNK
NOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8
02:41:19.394 T:1959120896 NOTICE: m_sampleRates : 5512,8000,11025,16000,22050,32000,441
00,48000,64000,88200,96000,176400,192000
02:41:19.394 T:1959120896 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE,AE_FMT_U8
02:41:19.394 T:1959120896 NOTICE: m_streamTypes : No passthrough capabilities