[Wandboard Quad] Storing ALSA state

This forum is for supported devices using an ARMv7 Freescale SoC.

[Wandboard Quad] Storing ALSA state

Postby JoKo » Sun Jun 15, 2014 10:00 pm

Hello,

It appears that it is not possible to store the ALSA sound levels on my installation. Running $this->bbcode_second_pass_quote('', 'a')lsactl -f /var/lib/alsa/asound.state store
reports the following:
$this->bbcode_second_pass_quote('', 'a')lsactl: get_control:256: Cannot read control '3,0,0,IEC958 Capture Default,0': Resource temporarily unavailable


IEC958 is for S/PDIF... Since I don't use it, is there any way to disable it so that I could store the sound levels properly?


Thanks in advance!
JoKo
 
Posts: 15
Joined: Sun Jan 19, 2014 2:42 pm

Re: [Wandboard Quad] Storing ALSA state

Postby opotonil » Mon Jun 16, 2014 7:10 pm

opotonil
 
Posts: 44
Joined: Sat Feb 08, 2014 1:17 pm

Re: [Wandboard Quad] Storing ALSA state

Postby JoKo » Mon Jun 16, 2014 9:54 pm

I did try, but it is unclear to me which module is responsible for S/PDIF. The card's name which causes supposedly the issue is imxspdif and I don't mind disabling it, providing the sound levels are stored this way.
JoKo
 
Posts: 15
Joined: Sun Jan 19, 2014 2:42 pm

Re: [Wandboard Quad] Storing ALSA state

Postby opotonil » Tue Jun 17, 2014 6:01 pm

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
opotonil
 
Posts: 44
Joined: Sat Feb 08, 2014 1:17 pm

Re: [Wandboard Quad] Storing ALSA state

Postby JoKo » Wed Jun 18, 2014 9:54 am

Many thanks for your help, opotonil, but it appears that the module snd_soc_imx_spdif is not loaded on my system.

$this->bbcode_second_pass_code('', '% sudo rmmod snd_soc_imx_spdif
rmmod: ERROR: Module snd_soc_imx_spdif is not currently loaded')

And of course, the problem still persists:
$this->bbcode_second_pass_code('', '% sudo alsactl -f /var/lib/alsa/asound.state store
alsactl: get_control:256: Cannot read control '3,0,0,IEC958 Capture Default,0': Resource temporarily unavailable')

I am using currently linux-wandboard 3.10.17-2-ARCH and have the following modules:
$this->bbcode_second_pass_code('', '% lsmod
Module Size Used by
rpcsec_gss_krb5 19941 0
dwc3 37232 0
brcmfmac 186683 0
brcmutil 4284 1 brcmfmac
snd_usb_audio 89881 0
mxc_v4l2_capture 21517 0
ipu_bg_overlay_sdc 3936 1 mxc_v4l2_capture
snd_usbmidi_lib 15433 1 snd_usb_audio
ipu_still 1728 1 mxc_v4l2_capture
snd_hwdep 4745 1 snd_usb_audio
ipu_prp_enc 4496 1 mxc_v4l2_capture
snd_rawmidi 15039 1 snd_usbmidi_lib
ipu_csi_enc 2874 1 mxc_v4l2_capture
ipu_fg_overlay_sdc 4727 1 mxc_v4l2_capture
ov5640_camera_mipi 20765 0
evbug 1594 0
dwc3_pci 2167 0')
JoKo
 
Posts: 15
Joined: Sun Jan 19, 2014 2:42 pm

Re: [Wandboard Quad] Storing ALSA state

Postby opotonil » Wed Jun 18, 2014 11:44 am

I am using kernel linux-armv7. Your kernel seems as has compiled "snd_soc_imx_spdif" in kernel, not as module.
opotonil
 
Posts: 44
Joined: Sat Feb 08, 2014 1:17 pm

Re: [Wandboard Quad] Storing ALSA state

Postby JoKo » Wed Jun 18, 2014 4:32 pm

I see. Is there any way to disable a driver which was not compiled as a module in Linux?
JoKo
 
Posts: 15
Joined: Sun Jan 19, 2014 2:42 pm

Re: [Wandboard Quad] Storing ALSA state

Postby WarheadsSE » Wed Jun 18, 2014 4:52 pm

perhaps via blacklist, but if you need us to change this for some reason, a PR to github is warranted
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Freescale

Who is online

Users browsing this forum: No registered users and 8 guests