Re: Setting a PCM as default device - SOLVED

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

 



On Wed, Apr 20, 2022 at 08:54:34AM -1000, Joel Roth wrote:
> Hi Alsa users,
> 
> I previously asked this question on Linux Audio Users list. 
> Since no one could help, I'm posting here.
> 
> I'm able to play sound with this command:
> 
> aplay tmh.wav -D plughw:CARD=PCH,DEV=7
> 
> I would like to make this the default device in asoundrc.
> 
> I tried this asoundrc:
> 
> pcm.hdmi_out {
>   type plug
>   ipc_key 5641 
>   slave {plughw:CARD=PCH,DEV=7 }
> }
> 
> pcm.!default {
>   type dmix
>   slave { pcm "hdmi_out" }
> }
> 
> Then trying 'aplay tmh.wav' results an error:                                                                                                                                                                                 
> ALSA lib pcm_direct.c:2079:(snd1_pcm_direct_parse_open_conf) Unique IPC key is not defined 
> aplay: main:830: audio open error: Invalid argument

Hello all,

Copying from Clemens Ladisch's reply to James Cloos[1]
this asoundrc plays via the HDMI output:

pcm.!default {
     type asym
     playback.pcm "plughw:CARD=PCH,DEV=7"
}

Thanks for supporting this forum.

1. https://www.mail-archive.com/alsa-user@xxxxxxxxxxxxxxxxxxxxx/msg32987.html
-- 
Joel Roth


_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user



[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux