[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New wheezy and problems setting up alsa for mpd




On 9 January 2013 12:36, Chris Bannister <cbannister@slingshot.co.nz> wrote:
On Wed, Jan 09, 2013 at 12:14:42PM +0000, Sharon Kimble wrote:
> On 9 January 2013 03:07, Chris Bannister <cbannister@slingshot.co.nz> wrote:
> > As I have no experience with mpd (yet) I don't know what may be causing
> > this, but ...
> >
> > * Can you play local files with mpd/ncmpcpp?
> >
> No
>
> > * Can you play streaming radio on mpd from another url?
> >
> No
>
> > * Is it only the mpd/ncmpcpp combination, IOW, what about trying another
> >   client.
> >
> As the client is only the front-end for mpd, and mpd itself isn't
> working then no other client works, and I've tried several.
> I've also done this ;-
> cat /proc/asound/cards
>  0 [Generic        ]: HDA-Intel - HD-Audio Generic
>                       HD-Audio Generic at 0xfeb44000 irq 43
>  1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
>                       HD-Audio Generic at 0xfeb40000 irq 16

What about:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
 
And 'alsamixer' shows that card 1, the ALC662 is the default card. 

Accordingly this is now my .asoundrc
pcm.mpd {
  type hw
  card 1 
}

 

> This is from the mpd log ;-
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM Generic_1
> Jan 09 12:05 : output: Failed to open "MPD ALSA" [alsa]: Failed to open
> ALSA device "Generic_1": No such file or directory
> Jan 09 12:05 : player_thread: problems opening audio device while playing
> "Ave Maria - Sacred Arias and Choruses/01 Various - Bach - Jesu bleibet
> meine Freude.mp3"

Googling:

mpd 2 sound cards
Web Results 1 - 10 of about 122,000 for mpd 2 sound cards. (0.35 seconds)

In particular, this post looks interesting.

https://bbs.archlinux.org/viewtopic.php?id=102677

> Which leads me to think that mpd isn't finding the sound card, but I don't
> know how else to enter it.

Let's hope its in one of those google posts, the other people who use
mpd are keeping suspiciously quiet. hint, hint hint :)

User is in these groups 'boztu cdrom floppy audio dip video plugdev scanner bluetooth netdev ' so no problem there then. 

This page seems most useful as they have the same cards as me http://ubuntuforums.org/showthread.php?t=1885433

And this is now my asound.conf ;=
pcm.!default {
  type plug
  slave {
    pcm "hw:1,0" #delete the first hash for sound over analog
#    pcm "hw:1,1" #delete the first hash for sound over optical
#    pcm "hw:0,3" #delete the first hash for sound over hdmi
    rate 48000
  }
}

speaker-test

speaker-test 1.0.25

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy

but thats because I'm listening to BBC Radio 4 Extra on qmmp.

I've now rebooted and still get no sound from mpd

cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.24.

 lspci | egrep -i audio 
00:01.1 Audio device: Advanced Micro Devices [AMD] nee ATI BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series]
00:14.2 Audio device: Advanced Micro Devices [AMD] FCH Azalia Controller (rev 01)

Running 'alsamixer' as root shows that the default sound card is HD-audio generic, Chip ATI R6xx HDMI Item S/PDIF and a value of 0. 

root@London:/home/boztu# arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 2: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Theres a lot of information there, I've tried to include everything that may be useful in the hope that someone can tell me what to do, as I'm totally at a loss!

Thank you
Sharon.
--
A taste of linux = http://www.sharons.org.uk/taste/index.html
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
Debian Wheezy, LXDE 2 LibreOffice 3.5.4.2
Registered Linux user 334501




Reply to: