Re: Setting a PCM as default device - SOLVED
Joel Roth <[email protected]> Wed, 20 Apr 2022 14:57:26 -1000
| Newsgroups | gmane.linux.alsa.user |
|---|---|
| Message-ID | <20220421005726.wzvczfabcpxqh3cy@sprite> |
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/[email protected]/msg32987.html
--
Joel Roth