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

Re: [SOLVED] New wheezy and problems setting up alsa for mpd



On 9 January 2013 18:58, Sharon Kimble <skimble04@gmail.com> wrote:
>
> On 9 January 2013 18:36, Sharon Kimble <skimble04@gmail.com> wrote:
>>
>> On 9 January 2013 17:48, Pertti Kosunen <pertti.kosunen@pp.nic.fi> wrote:
>>>
>>> On 9.1.2013 16:37, Sharon Kimble wrote:
>>>>
>>>> I've done a 'apt-cache search mpd plugins' which showed nothing relating
>>>> to mpd and plugins, so I cant really answer this. How can I tell please?
>>>
>>>
>>> /etc/mpd.conf:
>>> input {
>>>         plugin "curl"
>>> }
>>
>>
>> This is already in the default conf, so I've just left it alone.
>>>
>>>
>>> You should fix the other error first.
>>>
>>> # View output devices:
>>> aplay -L
>>>
>>> ...
>>> hdmi:CARD=HDMI,DEV=0
>>>     HDA ATI HDMI, HDMI 0
>>>     HDMI Audio Output
>>> ...
>>>
>>> /etc/mpd.conf:
>>> audio_output {
>>>         type            "alsa"
>>>         name            "AMD HDMI Output"
>>>         device          "hdmi:CARD=HDMI,DEV=0"
>>> ...
>>> }
>>
>>
>> .mpd/mpd.conf
>> audio_output {
>> type            "alsa"
>>         name            "AMD HDMI Output"
>>         device          "hdmi:CARD=HDMI,DEV=0"
>> # format "44100:16:2" optional
>> # mixer_device "default" optional
>> # mixer_control "PCM" optional
>> # mixer_index "0" optional
>> }
>>
>> root@London:/home/boztu# service mpd restart
>> [ ok ] Stopping Music Player Daemon: mpd.
>> [ ok ] Starting Music Player Daemon: mpd.
>>
>> When I start 'ncmpcpp' it starts up okay and shows 'AMD HDMI Output' in its "Outputs" screen, but also shows "Volume: n/a" and it cant be adjusted. When I try to play some music from it, or a radio stream, nothing happens and the arrow showing its music position does not move, it just shows static. There is no sound output as well.
>>>
>>>
>>> Try putting "aplay -L" listed device in mpd.conf.
>>
>>
>> I've done nothing with this, I've been trying the above first.
>>
>> Thanks for this
>> Sharon.  
>>>
>>> --
>
>  Jan 09 18:17 : output: Failed to open "AMD HDMI Output" [alsa]: Failed to open ALSA device "hdmi:CARD=HDMI,DEV=0": No such device
> Jan 09 18:17 : player_thread: problems opening audio device while playing "Ave Maria - Sacred Arias and Choruses/01 Various - Bach - Jesu bleibet meine Freude.mp3"
> ALSA lib confmisc.c:768:(parse_card) cannot find card 'HDMI'
> ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
> ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
> ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such device
> ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
> ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such device
> ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such device
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM hdmi:CARD=HDMI,DEV=0
> Jan 09 18:17 : output: Failed to open "AMD HDMI Output" [alsa]: Failed to open ALSA device "hdmi:CARD=HDMI,DEV=0": No such device
> Jan 09 18:17 : player_thread: problems opening audio device while playing "Ave Maria - Sacred Arias and Choruses/02 Various - Stölzel (attr. Bach) - Bist du bei mir.mp3"
>
> That's the most recent postings of the mpd.log I hope its useful.
>
> Thanks
> Sharon.
> --
>
After working with a friend of mine tonight, mpd has started working, so I'll document everything that was done for the archives.

#/etc/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
  }
}

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: 1/1
  Subdevice #0: subdevice #0

.asoundrc
pcm.mpd {
  type hw
  card 1 
}

the ALSA output in the mpd.conf
audio_output {
        type            "alsa"
  name "My ALSA Device"
device "hw:1,0"
#        mixer_type      "software"
#        mixer_device    "default"
#        mixer_control   "PCM"
}

And now its all working, apart from the lack of volume control in the client, but I can live with that.

Thank you to everybody who suggested solutions.

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: