The list of playback hardware devices is unclear about the module:
$this->bbcode_second_pass_code('', '
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: imx6wandboardsg [imx6-wandboard-sgtl5000], device 0: HiFi sgtl5000-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
')
But list of loaded modules is more clear:
$this->bbcode_second_pass_code('', '
# lsmod | grep -i spdif
snd_soc_imx_spdif 1983 0
snd_soc_fsl_spdif 8691 2
imx_pcm_dma 1231 2 snd_soc_fsl_ssi,snd_soc_fsl_spdif
snd_soc_core 160927 7 imx_pcm_dma,snd_soc_sgtl5000,snd_soc_imx_sgtl5000,snd_soc_imx_spdif,snd_soc_fsl_ssi,snd_soc_fsl_spdif
')
I have tried with "snd_soc_imx_spdif":
$this->bbcode_second_pass_code('', '
# rmmod snd_soc_imx_spdif
# alsactl -f /var/lib/alsa/asound.state store
')
The result:
$this->bbcode_second_pass_code('', '
# cat /var/lib/alsa/asound.state
state.imx6wandboardsg {
control.1 {
iface MIXER
name 'PCM Playback Volume'
value.0 144
value.1 144
comment {
access 'read write'
type INTEGER
count 2
range '0 - 192'
}
}
...
')
For do it persistent:
https://wiki.archlinux.org/index.php/ke ... acklisting