You are not logged in.
Hi. I'm having trouble trying to play a video while my Android emulator is opened. Here is some info:
$ lspci | grep -i audio
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
$ cat /etc/asound.conf
pcm.!default {
type hw
card Generic_1
}
ctl.!default {
type hw
card Generic_1
}
$ fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/pcmC1D0c: nt 13235 F...m emulator64-x86
/dev/snd/pcmC1D0p: nt 13235 F...m emulator64-x86I'm using snd_hda_intel module with Alsa on a Lenovo G585 laptop. How can i fix this?
Last edited by Juszr (2014-04-02 18:49:40)
Offline
Read the last paragraph.
Offline
I've wrote the other way and it didn't work:
$ cat /etc/asound.conf
pcm.!default {
type plug
slave.pcm {
@func getenv
vars [ ALSAPCM ]
default "hw:Generic_1"
}
}
$ speaker-test -c2 -f=cd
speaker-test 1.0.27.2
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busyLast edited by Juszr (2014-04-02 18:18:36)
Offline
Instead of playing with asound.conf, do this: https://bbs.archlinux.org/viewtopic.php … 3#p1344743
Offline
This is the last paragraph I was refering to:
Simply setting a type hw as default card is equivalent to addressing hardware directly, which leaves the device unavailable to other applications. This method is only recommended if it is a part of a more sophisticated setup ~/.asoundrc or if user deliberately wants to address sound card directly (digital output through eic958 or dedicated music server for example).
Read the wiki up to this point, then it should be clear. You can use one of the ways stated, using an environment variable is useful if you want to have the possibility of changing default device on the fly (for a specific application that does not have an option to select audio device). Otherwise in your case just use defaults node.
Offline
Instead of playing with asound.conf, do this: https://bbs.archlinux.org/viewtopic.php … 3#p1344743
On a modprobe... file? Didn't work.
Last edited by Juszr (2014-04-02 18:38:38)
Offline
On a modprobe... file? Didn't work.
That's not much to go on. Did you remove the asound.conf file? Did the order of audio cards change as it should, making FCH Azalia Controller the default instead of HDMI?
There is another method of changing the default audio card, I'll go search for it, but the one I linked to has never failed to work.
Offline
I made a mistake (syntax)
. It's working, thanks!
-Removing asound.conf and adding that to a new module file (and of course, restarting module).
Last edited by Juszr (2014-04-02 18:48:32)
Offline