[alsa-devel] Fwd: Issue on Linux 4.12-rc7 on iMX6 based board [SOLVED]

gianluca gianlucarenzi at eurekelettronica.it
Mon Jul 3 13:08:32 CEST 2017


What did I do to fix this issue:

1- apt purge alsa-utils
2- apt install alsa-utils

Now everything is working as expected. Maybe some misconfigured stuff to 
have a (strangely enough) high value for property mixer and other stuff...

> # amixer
> Simple mixer control 'Headphone',0
>   Capabilities: pvolume pswitch pswitch-joined
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 127
>   Mono:
>   Front Left: Playback 63 [50%] [-20.00dB] [on]
>   Front Right: Playback 63 [50%] [-20.00dB] [on]
> Simple mixer control 'Headphone Mux',0
>   Capabilities: enum
>   Items: 'DAC' 'LINE_IN'
>   Item0: 'DAC'
> Simple mixer control 'Headphone Playback ZC',0
>   Capabilities: pswitch pswitch-joined
>   Playback channels: Mono
>   Mono: Playback [on]
> Simple mixer control 'PCM',0
>   Capabilities: pvolume
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 192
>   Mono:
>   Front Left: Playback 154 [80%]
>   Front Right: Playback 154 [80%]
> Simple mixer control 'Lineout',0
>   Capabilities: pvolume pswitch pswitch-joined
>   Playback channels: Front Left - Front Right
>   Limits: Playback 0 - 31
>   Mono:
>   Front Left: Playback 18 [58%] [-6.50dB] [on]
>   Front Right: Playback 18 [58%] [-6.50dB] [on]
> Simple mixer control 'Mic',0
>   Capabilities: volume volume-joined
>   Playback channels: Mono
>   Capture channels: Mono
>   Limits: 0 - 3
>   Mono: 0 [0%] [0.00dB]
> Simple mixer control 'Capture',0
>   Capabilities: cvolume
>   Capture channels: Front Left - Front Right
>   Limits: Capture 0 - 15
>   Front Left: Capture 12 [80%]
>   Front Right: Capture 12 [80%]
> Simple mixer control 'Capture Attenuate Switch (-6dB)',0
>   Capabilities: pswitch pswitch-joined
>   Playback channels: Mono
>   Mono: Playback [off]
> Simple mixer control 'Capture Mux',0
>   Capabilities: enum
>   Items: 'MIC_IN' 'LINE_IN'
>   Item0: 'MIC_IN'
> Simple mixer control 'Capture ZC',0
>   Capabilities: pswitch pswitch-joined
>   Playback channels: Mono
>   Mono: Playback [on]
> root at edelin:~#

...and everything is working good!


On 07/03/2017 11:36 AM, gianluca wrote:
> Now I did some great steps ahead! ;-)
>
> I can assume there is some misconfigured alsa stuff in my debootstrapped
> armhf jessie distro!!!
>
> First step: from Barebox bootloader I tried to move on/off all pins
> connected to the SGTL5000 from SoC iMX6. They are moving good, so I can
> assume _NO_HARDWARE_ issue.
>
> Second step: burn a ubuntu armhf image (boundary-devices-jessie) to
> match up my system-boot (/etc/fstab and /etc/inittab), adding the
> /lib/modules/4.12-rc7/ directory and drivers, and add the uImage for
> 4.12-rc7 on the sdcard.
>
> Third step: burn on the sdcard the Barebox bootloader instead of the
> (unrunningble) u-boot for another board (Nitrogen).
>
> Fourth step: turn on my board with this sdcard.
>
> Sound is working. The levels of the capabilities (PCM, MIC, DAC, ...)
> are settable and they are working fine.
>
> I can play and I can record. The only thing is the driver can use only
> S24_LE as frequeny for recording but afterall everything is working as
> expected.
>
> Now the biggest question:
>
> WTF are working alsa or its configuration in a deboostrapped armhf
> distribution? Actually this distro was upgraded two times:
>
> 1- Wheezy armel
> 2- Wheezy armel + armhf
> 3- Wheezy armhf
> 4- Jessie armhf
> 5- apt get dist-upgrade...
>
> Something in between was wrong with alsa. Any help or configuration file
> to fix this issue???
>
>> # aplay -L
>> null
>>     Discard all samples (playback) or generate zero samples (capture)
>> default:CARD=imx6ek360sgtl50
>>     imx6-ek360-sgtl5000,
>>     Default Audio Device
>> sysdefault:CARD=imx6ek360sgtl50
>>     imx6-ek360-sgtl5000,
>>     Default Audio Device
>> dmix:CARD=imx6ek360sgtl50,DEV=0
>>     imx6-ek360-sgtl5000,
>>     Direct sample mixing device
>> dsnoop:CARD=imx6ek360sgtl50,DEV=0
>>     imx6-ek360-sgtl5000,
>>     Direct sample snooping device
>> hw:CARD=imx6ek360sgtl50,DEV=0
>>     imx6-ek360-sgtl5000,
>>     Direct hardware device without any conversions
>> plughw:CARD=imx6ek360sgtl50,DEV=0
>>     imx6-ek360-sgtl5000,
>>     Hardware device with all software conversions
>
>>
>>
>> # aplay -l
>> **** List of PLAYBACK Hardware Devices ****
>> card 0: imx6ek360sgtl50 [imx6-ek360-sgtl5000], device 0: HiFi
>> sgtl5000-0 []
>>   Subdevices: 1/1
>>   Subdevice #0: subdevice #0
>> root at nitrogen:~# arecord -l
>> **** List of CAPTURE Hardware Devices ****
>> card 0: imx6ek360sgtl50 [imx6-ek360-sgtl5000], device 0: HiFi
>> sgtl5000-0 []
>>   Subdevices: 1/1
>>   Subdevice #0: subdevice #0
>
>
> May I have a simple configuration file for this?
>
>
> On 06/29/2017 06:28 PM, gianluca wrote:
>> On 06/29/2017 04:30 PM, Fabio Estevam wrote:
>>> On Thu, Jun 29, 2017 at 11:24 AM, gianluca
>>> <gianlucarenzi at eurekelettronica.it> wrote:
>>>
>>>> So, are they good?
>>>
>>> If your hardware really uses these pins, then yes :-)
>>>
>>
>> Now looking at other boards where our hardware-guy took the inspiration
>> (i.e. iMX6 Rex from Fedevel) the device-tree is the same as mine.
>>
>>> MX6QDL_PAD_GPIO_0__CCM_CLKO1        0x030b0
>>
>> 0x130b0 or 0x030b0 the only difference is the PAD_CTL_HYS      (1 << 16)
>>
>> Maybe more strong to noise, but basically they are the same.
>>
>> But I found an issue when playing data from aplay without specifing the
>> device or specifying one:
>>
>>> # aplay /usr/share/sounds/alsa/Front_Center.wav
>>> Playing WAVE 'Front_Center.wav' : Signed 16 bit Little Endian, Rate
>>> 48000 Hz, Mono
>>
>> or
>>
>>> # aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Right.wav
>>> Playing WAVE 'Front_Center.wav' : Signed 16 bit Little Endian, Rate
>>> 48000 Hz, Mono
>>> aplay: set_params:1233: Sample format non available
>>> Available formats:
>>> - S24_LE
>>
>> Maybe some ALSA misconfigured????
>>
>> This distro is a bootstrapped jessie Debian 8, so some configuration
>> could be missing or not-so-good-configured.
>>
>
> Regards,


-- 
Eurek s.r.l.                          |
Electronic Engineering                | http://www.eurek.it
via Celletta 8/B, 40026 Imola, Italy  | Phone: +39-(0)542-609120
p.iva 00690621206 - c.f. 04020030377  | Fax:   +39-(0)542-609212


More information about the Alsa-devel mailing list