Author Topic: Clementine Cannot Open Audio Playback Device?[SOLVED]  (Read 352 times)

Offline rgradle

  • New Friend
  • *
  • Posts: 9
Clementine Cannot Open Audio Playback Device?[SOLVED]
« on: January 25, 2013, 05:51:30 PM »
I have an ASUS F2A85-V Pro motherboard which has on-board sound and on-board HDMI.  I am running LXDE fully updated.  The sound will not work.  I believe the reason is because ALSA has set the HDMI output as the default.  I cannot find a way to change that.

I have run alsaconf as root.  That process finishes OK.  When I then run alsamixer, the reference is to card ¨HD-Audio Generic¨ and chip ¨ATI R6xx HDMI¨ and alsamixer says ¨This sound device does not have any controls.¨

PCC->Hardware->Soundcard shows the Hudson Azalia controller and one device (device 9902).

Contents of relevant files:
/proc/asound/cards
0 [Generic        ]: HDA-Intel - HD-Audio Generic
                     HD-Audio Generic at 0xfeb44000 irq 61
1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                     HD-Audio Generic at 0xfeb40000 irq 16

/proc/asound/pcm
00-03: HDMI 0 : HDMI 0 : playback 1
00-07: HDMI 1 : HDMI 1 : playback 1
00-08: HDMI 2 : HDMI 2 : playback 1
00-09: HDMI 3 : HDMI 3 : playback 1
01-00: ALC892 Analog : ALC892 Analog : playback 1 : capture 1
01-01: ALC892 Digital : ALC892 Digital : playback 1
01-02: ALC892 Analog : ALC892 Analog : capture 1

ALSA is using the snd_hda_intel driver.  According to the mb literature, the chipset is HDA compliant. I am not using PulseAudio.

Because only one audio device is identified in PCC, I do not understand how to differentiate between the Analog and HDMI outputs to set the default.

Any direction you can provide will be greatly appreciated.

« Last Edit: January 26, 2013, 01:34:18 PM by rgradle »

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1483
  • In theory, theory=practice, in practice ???
Re: How to Set ALSA Default Device?
« Reply #1 on: January 25, 2013, 08:46:49 PM »
See if /etc/asound.state makes any sense to you.
Should show if HDMI is active.
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10664
  • MLUs Forever!
Re: How to Set ALSA Default Device?
« Reply #2 on: January 26, 2013, 03:45:46 AM »
This *might* be useful .....  worth a try at least .....

create a hidden file   ~/.asoundrc

make the contents of the file

Code: [Select]
pcm.!default {
type hw
card 1
}

ctl.!default {
type hw
card 1
}



aplay -l

should give you the card number you wish to use as default.

Example of my cards


Quote
$ aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC1200 Analog [ALC1200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC1200 Digital [ALC1200 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


card 1: NVidia_1 [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

card 2: Z205 [ Logitech Z205], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

As can be seen, card 0 is the analogue sound, card 1 is the HDMI and card 2 is a USB connected set of speakers.

In my case I would set card 0 as the default.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline rgradle

  • New Friend
  • *
  • Posts: 9
Re: How to Set ALSA Default Device?
« Reply #3 on: January 26, 2013, 09:50:53 AM »
Thank you for the suggestions.

Quote
See if /etc/asound.state makes any sense to you.
Should show if HDMI is active.

The asound.state file has 5 controls that refer to IEC958.  Control.30 has the name ¨IEC958 playback default¨ and has a value of ¨04¨ followed by 350 zeroes.  Controls 28 and 29 similarly have values that are followed by 348 and 350 zeroes, respectively.  Controls 31 and 32 have values of ¨false¨.

Quote
This *might* be useful .....  worth a try at least .....
create a hidden file   ~/.asoundrc
make the contents of the file

Code: [Select]
pcm.!default {
type hw
card 1
}

ctl.!default {
type hw
card 1
}

aplay -l

should give you the card number you wish to use as default.

I created the file, then rebooted. 

aplay -L produced the following results:

default:CARD=Generic_1
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC892 Analog
    Default Audio Device

Still, no sound.  Clementine reported ¨Could Not Open Audio Device For Playback¨

Searched on Forum and found reference to similar issue with Clementine that was resolved by choosing a different Gstreamer audio engine.  Changed to ¨SDL audio sink¨ and the sound now works.

Deleted the .asoundrc file, rebooted.  Clementine still works.

Thanks again for the help.  I will mark this solved.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10664
  • MLUs Forever!
Clementine problem
« Reply #4 on: January 26, 2013, 10:37:44 AM »
You might change the heading in the first post to reflect the actual problem ........  that Clementine was not behaving properly and not that there was an Alsa problem  ;)

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline rgradle

  • New Friend
  • *
  • Posts: 9
Re: Clementine Cannot Open Audio Playback Device?[SOLVED]
« Reply #5 on: January 26, 2013, 01:35:04 PM »
OK. Done.

Thanks again!