armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
4.19k stars 2.28k forks source link

alsa #139

Closed norrest closed 8 years ago

norrest commented 8 years ago

Hi, I used Cubieboard a10 and uname -a Linux cubieboard 4.2.3-sunxi #2 SMP Sun Oct 11 14:12:18 CEST 2015 armv7l GNU/Linux But i do not find alsa )) cat /proc/asound/version cat: /proc/asound/version: No such file or directory

igorpecovnik commented 8 years ago

Audio come with kernel 4.4, if you use tools choose DEV branch when building kernel. And it's possible that you also need to enable it in DTS.

norrest commented 8 years ago

Thank you! And if I can select another kernel during run install script? About 4.2.3 by default (for 4..) not really suitable?

igorpecovnik commented 8 years ago

select DEV and it will download 4.4 .. Its working, tested on Cubie a10 today.

norrest commented 8 years ago

Yes! cat /proc/asound/version Advanced Linux Sound Architecture Driver Version k4.4.0-sunxi. THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

norrest commented 8 years ago

I must to reopen issue! (( I found on kernel.org https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.tar.xz unpack, and in /include/uapi/sound/asound.h

define SNDRV_PCM_FORMAT_DSD_U8 ((__force snd_pcm_formatt) 48) /* DSD, 1-byte samples DSD (x8) /

define SNDRV_PCM_FORMAT_DSD_U16_LE ((__force snd_pcm_formatt) 49) / DSD, 2-byte samples DSD (x16), little endian _/

define SNDRV_PCM_FORMAT_DSD_U32_LE ((__force snd_pcm_formatt) 50) / DSD, 4-byte samples DSD (x32), little endian _/

define SNDRV_PCM_FORMAT_DSD_U16_BE ((__force snd_pcm_formatt) 51) / DSD, 2-byte samples DSD (x16), big endian _/

define SNDRV_PCM_FORMAT_DSD_U32_BE ((__force snd_pcm_formatt) 52) / DSD, 4-byte samples DSD (x32), big endian */

define SNDRV_PCM_FORMAT_LAST SNDRV_PCM_FORMAT_DSD_U32_BE

but in installed ARMBIAN last records is not present

/usr/include/sound cat asound.h | grep DSD

define SNDRV_PCM_FORMAT_DSD_U8 ((snd_pcm_formatt) 48) /* DSD, 1-byte samples DSD (x8) /

define SNDRV_PCM_FORMAT_DSD_U16_LE ((snd_pcm_formatt) 49) / DSD, 2-byte samples DSD (x16), little endian */

define SNDRV_PCM_FORMAT_LAST SNDRV_PCM_FORMAT_DSD_U16_LE

It is for me critical, because i try to work with MPD-DSD

https://github.com/lintweaker/xmos-native-dsd/tree/master/SRPMS/patches/kernel

which is already working in the new kernels, without the use of these patches! The last kernel already included them in yourself!

Thank YOU!

norrest commented 8 years ago

I post this https://github.com/lintweaker/mpd-dsd-019/issues/12 And He say /usr/include/sound/asound.h should come from kernel headers package matching your kernel version. Maybe you can try reinstalling it. On ARM systems getting the correct version can be difficult

norrest commented 8 years ago

Maybe i use wrong repository? I delete linux-libc-dev:armhf 3.16.7-ckt20-1+deb8u2 but it again dpkg -l 'linux-*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-====================================-=======================-=======================-============================================================================= un linux-doc-4.4.0 (no description available) ii linux-dtb-dev-sunxi 4.83 armhf Linux DTB, version 4.4.0-sunxi ii linux-firmware-image-dev-sunxi 4.83 armhf Linux kernel firmware, version 4.4.0-sunxi un linux-headers (no description available) un linux-headers-3.0 (no description available) ii linux-headers-4.4.0-040400 4.4.0-040400.2016011019 all Header files related to Linux kernel version 4.4.0 ii linux-headers-4.4.0-040400-generic 4.4.0-040400.2016011019 armhf Linux kernel headers for version 4.4.0 on 64 bit x86 SMP ii linux-headers-dev-sunxi 4.83 armhf Linux kernel headers for 4.4.0-sunxi on armhf un linux-image (no description available) un linux-image-2.6 (no description available) un linux-image-3.0 (no description available) ii linux-image-4.4.0-040400-generic 4.4.0-040400.2016011019 armhf Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii linux-image-dev-sunxi 4.83 armhf Linux kernel, version 4.4.0-sunxi un linux-initramfs-tool (no description available) ii linux-jessie-root-cubieboard 4.83 armhf Root file system tweaks for cubieboard un linux-kernel-headers (no description available) un linux-kernel-log-daemon (no description available) ii linux-libc-dev:armhf 3.16.7-ckt20-1+deb8u2 armhf Linux support headers for userspace development un linux-modules-4.4.0-sunxi (no description available) un linux-source-4.4.0 (no description available) un linux-tools (no description available)

norrest commented 8 years ago

Also i try to install 4.4.0-040400.2016011019 deb (kernel + header) itis do not help (

igorpecovnik commented 8 years ago

I have no detail knowledge on this issue. Sound function just came to mainline so things are probably not yet developed to full degree?

norrest commented 8 years ago

Thank you!