El 13/08/12 15:04, Celejar escribió: > Use 'aplay -l' / 'aplay -L' to find the names of your cards. On my system: > > ~$ aplay -l > **** List of PLAYBACK Hardware Devices **** > card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 0: Intel [HDA Intel], device 1: AD198x Digital [AD198x Digital] > Subdevices: 1/1 > Subdevice #0: subdevice #0 > card 1: Device [USB Sound Device], device 0: USB Audio [USB Audio] > Subdevices: 0/1 > Subdevice #0: subdevice #0 > > So 'Intel' is one (the builtin Intel sound card), and 'Device' is > another (it happens to be the C-Media USB sound device currently > attached). > > My .asoundrc contains: > > pcm.builtin { type hw; card Intel; } > ctl.builtin { type hw; card Intel; } > > pcm.usb { type hw; card Device; } > ctl.usb { type hw; card Device; } > > pcm.!default pcm.usb > ctl.!default ctl.usb > > Explanation (AFA my limited understanding goes): > > The pcm.xxxx and ctl.xxxx lines define cards - the former for the audio > output interface, and the latter for the control (mixer) interface. > > So I have defined two logical cards (each with an audio interface and > mixer interface), one for the 'Intel' card, and one for the > 'Device' (USB) card. > > The 'pcm.!default' lines tell the audio subsystem which cards to use > for the audio output and the mixer [and these defaults are independent > - you can have situations where the sound is going out by default > through one card, but the mixer is defaulting to a different card - > headache ;)]. > > So I currently have the system defaulting to the USB device. When I > don't want it, I just comment out the last two lines. [There's > doubtless some 'correct' way to automate this via udev or suchlike, but > I haven't bothered.] > As above, lspci is less useful here than the aplay list commands. > > Celejar
Hi! After some testing and retrieving the output of aplay -l and aplay -L, I get a functional configuration. My .asoundrc (if somebody needs it in the future): pcm.!default { type plug slave.pcm "hdmi" } ctl.!default { type hw card 1 } pcm.!hdmi { type hw card 1 device 7 } ctl.!hdmi { type hw card 1 device 7 } -- José Luis Segura Lucas
signature.asc
Description: OpenPGP digital signature