As above, after adding the hifiberry overlay to config.txt and rebooting I get the above message.
I tried aplay -l and sudo aplay -l, both with the same results.
I re-downloaded the image and flashed again, fully updated and upgraded to the latest image, still have this problem.
I was following the thread here to try and get it working again.....
http://www.hifiberry.com/guides/configuring-linux-3-18-x/
Any help out there please?
S.
Thank you for the helpful reply.
The first 2 commands gave expected results, but the third one failed. I tried sudo apt-get install alsa-base && sudo apt-get install alsa-utils, but it does not work.
Then I tried this with the following result.
Code:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
fontconfig-config libaacs0 libass4 libbluray1 libcurl3-gnutls libenca0
libfontconfig1 libgif4 libmad0 libmpeg2-4 libnfs1 libplist1 libvorbisfile3
ttf-dejavu-core
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
xbian-package-xbmc-alsa
The following packages will be upgraded:
xbian-package-xbmc-alsa
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/30.3 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Create a snapshot of '/run/btrfs-snap/root/@' in '/run/btrfs-snap/root/@btrfs-auto-snap_apt-run-2015-06-12-1719'
Transaction commit: none (default)
Delete subvolume '/run/btrfs-snap/root/@last_good_known'
Create a snapshot of '/run/btrfs-snap/root/@btrfs-auto-snap_apt-run-2015-06-12-1719' in '/run/btrfs-snap/root/@last_good_known'
@btrfs-auto-snap_apt-run-2015-06-12-1719, 1 created snapshots, 0 destroyed snapshots, 0 warnings.
(Reading database ... 24738 files and directories currently installed.)
Preparing to replace xbian-package-xbmc-alsa 13.2-1416247325 (using .../xbian-package-xbmc-alsa_13.2-1416247325_armhf.deb) ...
Unpacking replacement xbian-package-xbmc-alsa ...
dpkg: dependency problems prevent configuration of xbian-package-xbmc-alsa:
xbian-package-xbmc-alsa depends on alsa-utils; however:
Package alsa-utils is not installed.
xbian-package-xbmc-alsa depends on alsa-base; however:
Package alsa-base is not installed.
dpkg: error processing xbian-package-xbmc-alsa (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
xbian-package-xbmc-alsa
E: Sub-process /usr/bin/dpkg returned an error code (1)
So something is not right. Is it correct that I need to install xbmc-alsa from the latest kodi releases (since then it goes from kodi14.2 to xbmc 13.2 with a message that an updated version is available) ?
Thanks
skywatch.
I just now tried myself without errors:
Terminal
# Install alsa-utils:
$ sudo apt-get install alsa-utils
The following NEW packages will be installed:
alsa-utils
Setting up alsa-utils (1.0.25-4) ...
# Test aplay:
$ aplay -l
aplay: device_list:252: no soundcards found...
# List loaded kernel modules and grep for sound:
$ lsmod | grep snd_bcm2835
# Load the sound kernel module:
$ sudo modprobe snd_bcm2835
# List loaded kernel modules and grep for sound:
$ lsmod | grep snd_bcm2835
snd_bcm2835 15307 0
snd_pcm 60644 4 snd_bcm2835,snd_soc_wm8804,snd_soc_core,snd_pcm_dmaengine
snd 38008 5 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_compress
# Test aplay:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
I had to do a modprobe to get the sound card driver loaded (see above).
To have the soundcard driver loaded at every boot (persistent) :
Terminal
sudo echo "snd_bcm2835" >> /etc/modules
Try to run below one first before trying to install anything:
Terminal
sudo apt-get update
And if still not working, drop the output for "sudo apt-get install alsa-utils" on pastebin and post link here please ?
http://pastebin.com/
Thanks for the help.
Here's the result from what you suggested....
Code:
xbian@xbian ~ $ sudo modprobe snd_bcm2835
xbian@xbian ~ $ sudo lsmod | grep snd_bcm2835
snd_bcm2835 15307 0
snd_pcm 60644 4 snd_bcm2835,snd_soc_wm8804,snd_soc_core,snd_pcm_dmaengine
snd 38008 5 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_compress
xbian@xbian ~ $ aplay -l
-bash: aplay: command not found
xbian@xbian ~ $ sudo apt-get install alsa-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
xbian-package-xbmc-alsa : Depends: alsa-base but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
xbian@xbian ~ $ aplay -l
-bash: aplay: command not found
I also note the comment about /etc/modules and was under the impression that this was no longer needed as you only have to add the device tree layer to /boot/config.txt, which I have done (with no success)......
And the output from install alsa-utils is as follows......
Code:
xbian@xbian ~ $ sudo apt-get install alsa-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
xbian-package-xbmc-alsa : Depends: alsa-base but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Thanks again.
skywatch.
Yeah your right, device tree layer is the way to go.
But you still have not run "sudo apt-get update" ?
And it looks like you installed "xbian-package-xbmc-alsa" yourself while not needed.
I dont have it installed on my Pi's:
Terminal
$ sudo dpkg -l xbian-package-xbmc-alsa
dpkg-query: no packages found matching xbian-package-xbmc-alsa
To remove:
Terminal
sudo apt-get remove xbian-package-xbmc-alsa
Fix install afterwards:
Terminal
sudo apt-get -f install
And try again:
Terminal
sudo apt-get install alsa-utils
Thank you.
I discovered something while doing this, and that is that.....
sudo apt-get install alsa-base && sudo apt-get install alsa-utils
is not the same as......
sudo apt-get install alsa-base alsa-utils
The first one didn't work at all, the second one did!
I also see that you are using snd_bcm2835 whereas I have always used snd_bcm2708. Is that an issue for an original pi model b?
I am out of time for this for now, but this evening or tomorrow morning I will make a fresh intstall and see how I get on. If possible can you post the steps needed to make this work on a fresh install using DT? Then we both know where we are! ;-)
Thanks once more,
skywatch
(13th Jun, 2015 11:24 PM)Skywatch Wrote: [ -> ]I also see that you are using snd_bcm2835 whereas I have always used snd_bcm2708. Is that an issue for an original pi model b?
Whatever works for you.
(13th Jun, 2015 11:24 PM)Skywatch Wrote: [ -> ]I am out of time for this for now, but this evening or tomorrow morning I will make a fresh intstall and see how I get on. If possible can you post the steps needed to make this work on a fresh install using DT? Then we both know where we are! ;-)
Dont know what you mean with "DT" but all steps I needed to do to get aplay to work, I posted before already:
Terminal
sudo apt-get install alsa-utils
sudo modprobe snd_bcm2835
aplay -l
It has occured to me that you might be using a USB DAC whereas I am (would be) using a I2S DAC.
Maybe that's the difference?
Anyway after yet another clean install I finally got alsa-utils to install and the sound card recognised. I tested it and got sound.
But there are issues......
The sound stutters badly every time the mouse is moved.
The sound stutters even worse when a music folder is scanning into the library.
It wasn't like this before, so a new problem I guess. I have posted it on github for the 'brainy people' to have a look into!
Thank you very much for the help, it is very much appreciated.
Skywatch.
A USB DAC?
Only DAC that I use is in me connected AV receiver via HDMI.
Aha! - That could be the reason as I use a DAC connected to the I2C pins on the pi.
Thanks anyway, at least I can listen to some music again now.
Skywatch
(14th Jun, 2015 12:00 AM)deHakkelaar Wrote: [ -> ] (13th Jun, 2015 11:24 PM)Skywatch Wrote: [ -> ]I also see that you are using snd_bcm2835 whereas I have always used snd_bcm2708. Is that an issue for an original pi model b?
Whatever works for you.
(13th Jun, 2015 11:24 PM)Skywatch Wrote: [ -> ]I am out of time for this for now, but this evening or tomorrow morning I will make a fresh intstall and see how I get on. If possible can you post the steps needed to make this work on a fresh install using DT? Then we both know where we are! ;-)
Dont know what you mean with "DT" but all steps I needed to do to get aplay to work, I posted before already:
Terminal
sudo apt-get install alsa-utils
sudo modprobe snd_bcm2835
aplay -l
xbian@xbian ~ $ sudo apt-get install alsa-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package alsa-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'alsa-utils' has no installation candidate
xbian@xbian ~ $ sudo modprobe snd_bcm2835
xbian@xbian ~ $ aplay -l
-bash: aplay: command not found
xbian@xbian ~ $
Can you all use code tags (also edit previous posts incoorporating them).
(14th Aug, 2015 11:45 PM)bonestaak Wrote: [ -> ]xbian@xbian ~ $ sudo apt-get install alsa-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package alsa-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'alsa-utils' has no installation candidate
Sorry, missed your reply.
That is very strange.
I have that "alsa-utils" package available on all my Pi's:
Terminal
xbian@pi ~ $ sudo apt-cache show alsa-utils
[sudo] password for xbian:
Package: alsa-utils
Version: 1.0.25-4
Architecture: armhf
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>
Installed-Size: 1941
Depends: lsb-base (>= 3.0-9), kmod, whiptail | dialog, libasound2 (>= 1.0.25), libc6 (>= 2.13-28), libgcc1 (>= 1:4.4.0), libncursesw5 (>= 5.6+20080119), libsamplerate0 (>= 0.1.7), libtinfo5
Recommends: alsa-base (>= 1.0.15), pciutils
Provides: audio-mixer
Homepage: http://www.alsa-project.org/
Priority: optional
Section: sound
Filename: pool/main/a/alsa-utils/alsa-utils_1.0.25-4_armhf.deb
Size: 1165258
SHA256: 063a64953df0a278fc10a0ebc552d36d423fa97d77574f220a198c3f054e96cb
SHA1: 7ecffacaef00b474964e625f5bc9653427193188
MD5sum: c613fff68710426173ec2b19a4e2e3ca
Description: Utilities for configuring and using ALSA
Included tools:
- amixer: command line mixer
- alsamixer: curses mixer
- amidi: read from and write to ALSA RawMIDI ports
- aplay, arecord: command line playback and recording
- aplaymidi, arecordmidi: command line MIDI playback and recording
- aconnect, aseqnet, aseqdump: command line MIDI sequencer control
.
ALSA is the Advanced Linux Sound Architecture.
Whats the output from below one:
Terminal
cat /etc/apt/sources.list
and:
Terminal
cat /etc/apt/sources.list.d/xbian.list
and:
Terminal
apt-cache search "alsa-"