September 18, 2019, 07:34:20 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Buster, Xenial and Bionic - updated 6.7.2019

Started by slovenia, December 24, 2013, 03:23:11 pm

Previous topic - Next topic

soundcheck


Take away the (any) .asoundrc first and reboot.

I have the newest kernel running:


root@cubie:~# aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: sunxisndspdif [sunxi-sndspdif], Gerät 0: SUNXI-SPDIF sndspdif-0 []
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 3: UCX23639700 [Fireface UCX (23639700)], Gerät 0: USB Audio [USB Audio]
  Sub-Geräte: 0/1
  Sub-Gerät #0: subdevice #0
root@cubie:~# uname -a
Linux cubie 3.4.91-sun7i+ #1 SMP PREEMPT Tue Jun 10 15:32:46 CEST 2014 armv7l GNU/Linux


Key is that aplay shows the device before you start trying to play anything over it.

Everything looks OK over here.




schmidtm

Hi soundcheck and thanks for the super-fast reply. I did as you proposed (there were not alsa user-config files left) but to no avail:

schmidtm@cubie:~$ who
schmidtm pts/0        2014-06-11 16:58 (192.168.2.3)
schmidtm@cubie:~$ uptime
16:59:24 up 2 min,  1 user,  load average: 0.03, 0.05, 0.03
schmidtm@cubie:~$ uname -a
Linux cubie 3.4.91-sun7i+ #1 SMP PREEMPT Fri May 30 12:11:04 CEST 2014 armv7l GNU/Linux
schmidtm@cubie:~$ aplay -l
aplay: device_list:252: no soundcards found...

Should i remove alsa-base and alsa-utils? Or should i start-over again by re-installing the image? I this case i loose all my compilers, libs, emacs configs and the like. Any ideas?

cheers,

Matthias

soundcheck

Hmmh.
Maybe try aplay -l as root with sudo su.
Or you could also try a different app such as ecasound or sox.

Never seen a mismatch between /proc/asound/cards and aplay -l


tola5

Quote from: tola5 on June 11, 2014, 03:05:58 am
Hi have use you Nice Worning for some time but suddenly it dont World so I take the opportunity for the update to the latest :D but nok my 30gb SD are not ben resize egen it boot so it are only 1gb some who have tried it ? Are it just to take it to a vm machine
and do it

World now expant it on af vituel ubuntu on my PC

schmidtm

I can not believe this ... Aplay works fine running as root, see:

root@cubie:/home/schmidtm/prj/alsa-test# id
uid=0(root) gid=0(root) groups=0(root)

root@cubie:/home/schmidtm/prj/alsa-test# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sunxisndspdif [sunxi-sndspdif], device 0: SUNXI-SPDIF sndspdif-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: sunxisndi2s [sunxi-sndi2s], device 0: SUNXI-I2S sndi2s-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@cubie:/home/schmidtm/prj/alsa-test# aplay -c 2 -f cd -t wav --device=hw:1 icecream.wav
Playing WAVE 'icecream.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

How come? Packages with broken permissions? This gotta be addressed by somebody ...

Anyway: Thank you very much to lead me in the right direction!

cheers,

Matthias

slovenia

Quote from: schmidtm on June 11, 2014, 06:16:40 pm
I can not believe this ... Aplay works fine running as root, see:

root@cubie:/home/schmidtm/prj/alsa-test# id
uid=0(root) gid=0(root) groups=0(root)

root@cubie:/home/schmidtm/prj/alsa-test# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sunxisndspdif [sunxi-sndspdif], device 0: SUNXI-SPDIF sndspdif-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: sunxisndi2s [sunxi-sndi2s], device 0: SUNXI-I2S sndi2s-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@cubie:/home/schmidtm/prj/alsa-test# aplay -c 2 -f cd -t wav --device=hw:1 icecream.wav
Playing WAVE 'icecream.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

How come? Packages with broken permissions? This gotta be addressed by somebody ...

Anyway: Thank you very much to lead me in the right direction!

cheers,

Matthias


Don't know why this happen.  :-[ Issue acknowledged.

I am not doing anything unusual regarding audio install:
https://github.com/igorpecovnik/Cubietruck-Debian

How is this issue on Jessie for example if someone can try out?
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

soundcheck

A question/remark to the kernel  .config in build.sh

Isn't below command obsolete:

make $CTHREADS make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig

You copy your own kernel.config to .config and that overwrites the result of above !?!?

I'd comment it out, remove it or introduce an "if", that if your "kernel.config" is not available the "make ... sun7i_defconfig" should be executed.

Cheers

jademonkee

I just performed the 1.7 -> 1.8 upgrade (then a reboot), followed by the 1.8 > 1.9 upgrade (reboot), followed by the kernel upgrade (reboot).
However, most of my services no longer start automatically (eg samba, logitechmediaserver)
I have a backed up image of my working 1.7 install.
As far as I can tell, the:
/etc/init.d/.depend.boot
/etc/init.d/.depend.start
/etc/init.d/.depend.stop
Files in the 1.7 -> 1.8 upgrade have overwritten my versions.
Sure, I can extract the files from the image, then overwrite them again..
But is there a way to just have them re-generate automatically (so I don't risk missing anything)
Or is there a recommended way to merge the changes made during the upgrade?
Many thanks for your help (from an eager Linux beginner).
Regards,
Simon

soundcheck


What does it take to get the Logitechmediaserver going on this Debian image??

Has somebody written up a brief HowTo by chance?

Thx

joaofl


castalla

Quote from: soundcheck on June 12, 2014, 08:22:22 am

What does it take to get the Logitechmediaserver going on this Debian image??

Has somebody written up a brief HowTo by chance?

Thx


Easy!

1. wget http://downloads.slimdevices.com/nightly/7.8/sc/3871f55/logitechmediaserver_7.8.1~1402481566_all.deb

2. dpkg -i logitechmediaserver_7.8.1~1402481566_all.deb



slovenia

Quote from: jademonkee on June 12, 2014, 08:13:17 am
I just performed the 1.7 -> 1.8 upgrade (then a reboot), followed by the 1.8 > 1.9 upgrade (reboot), followed by the kernel upgrade (reboot).
However, most of my services no longer start automatically (eg samba, logitechmediaserver)
I have a backed up image of my working 1.7 install.
As far as I can tell, the:
/etc/init.d/.depend.boot
/etc/init.d/.depend.start
/etc/init.d/.depend.stop
Files in the 1.7 -> 1.8 upgrade have overwritten my versions.
Sure, I can extract the files from the image, then overwrite them again..
But is there a way to just have them re-generate automatically (so I don't risk missing anything)
Or is there a recommended way to merge the changes made during the upgrade?
Many thanks for your help (from an eager Linux beginner).
Regards,
Simon


It is possible to create proper automatic update system but this takes extra work/time which I can't find for various reasons :'(

My upgrade files are as is ...  more as a guidance. I know they are not properly prepared - It could be said: "for advanced users only / risky". ::)
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

soundcheck

Quote from: castalla on June 12, 2014, 11:56:25 am

Easy!

1. wget http://downloads.slimdevices.com/nightly/7.8/sc/3871f55/logitechmediaserver_7.8.1~1402481566_all.deb

2. dpkg -i logitechmediaserver_7.8.1~1402481566_all.deb




Easy!?!??  ::)

It's not working for me. LMS goes into cyclic restart. I also tried 7.9.1-nightly and the Raspberry Pi instructions you guys refered to in another thread over here.
No luck so far.

I'm running jessie btw.


castalla

Quote from: soundcheck on June 13, 2014, 07:00:06 am
Quote from: castalla on June 12, 2014, 11:56:25 am

Easy!

1. wget http://downloads.slimdevices.com/nightly/7.8/sc/3871f55/logitechmediaserver_7.8.1~1402481566_all.deb

2. dpkg -i logitechmediaserver_7.8.1~1402481566_all.deb




Easy!?!??  ::)

It's not working for me. LMS goes into cyclic restart. I also tried 7.9.1-nightly and the Raspberry Pi instructions you guys refered to in another thread over here.
No luck so far.

I'm running jessie btw.


Strange.   You need to look at the server log to see if there's a clue to why it's restarting. 

There's no longer any need to make the Pi changes as later 7.8.1 versions are self-contained.

soundcheck

@castalla

I think I have a perl issue. When running: /usr/sbin/squeezeboxserver

I'll get


The following modules failed to load: DBI EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::XS Sub::Name


On jessie I have perl 5.18.2


perl -version

This is perl 5, version 18, subversion 2 (v5.18.2) built for arm-linux-gnueabihf-thread-multi-64int
(with 41 registered patches, see perl -V for more detail)



What perl are you running?