public inbox for blinux-list@redhat.com
 help / color / mirror / Atom feed
From: blinux-list at redhat.com (Linux for blind general discussion)
Subject: Persistent device naming, alsa
Date: Tue, 14 Sep 2021 12:48:36 -0500	[thread overview]
Message-ID: <20210914.174836.561.5@[192.168.1.100]> (raw)

I have a USB audio device that I use for system sounds via pulse, and speech.
In my default.pa, I have
set-default-sink alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo
I also have onboard audio, to which my surround speakers are connected.
For my mpv, I can use this line in ~/.config/mpv/mpv.conf:
audio-device=pulse/alsa_output.pci-0000_00_1f.3.analog-stereo
That's the onboard card.
I also use pianobar, which uses libao, to produce its audio. The problem is that
dev=hw:0
changes on each boot. I need a way to specify a device by it's name somewhere, so that I can call it in application, even if it's hw ID changes.
What can I do there?




             reply	other threads:[~ UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 blinux-list [this message]
 ` blinux-list

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='20210914.174836.561.5@[192.168.1.100]' \
    --to=blinux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).