Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #237905 > unrolled thread

Re: Persistent names for audio devices.

Started bypeter@easthope.ca
First post2021-07-30 06:00 +0200
Last post2021-07-31 20:00 +0200
Articles 5 — 2 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Persistent names for audio devices. peter@easthope.ca - 2021-07-30 06:00 +0200
    Re: Persistent names for audio devices. Reco <recoverym4n@enotuniq.net> - 2021-07-30 08:00 +0200
      Re: Persistent names for audio devices. peter@easthope.ca - 2021-07-30 15:40 +0200
        Re: Persistent names for audio devices. Reco <recoverym4n@enotuniq.net> - 2021-07-30 18:40 +0200
          Re (2): Persistent names for audio devices. peter@easthope.ca - 2021-07-31 20:00 +0200

#237905 — Re: Persistent names for audio devices.

Frompeter@easthope.ca
Date2021-07-30 06:00 +0200
SubjectRe: Persistent names for audio devices.
Message-ID<CGrQJ-7rQ-1@gated-at.bofh.it>
From:	Reco <recoverym4n@enotuniq.net>, Sun, 20 Oct 2019 20:57:52 +0300
> So, does it work?

Got sound from the Intel device on the system board.  Oddly enough 
there was a plastic cover over the sockets on the chassis back.  Pried 
it off to plug the speaker jack.

Here is some further info.

Read https://wiki.debian.org/ALSA and followed the Troubleshooting and 
Checklist sections.

root@joule:~# cat /proc/asound/cards
 0 [ICH5           ]: ICH4 - Intel ICH5
                      Intel ICH5 with AD1980 at irq 17
 1 [Live           ]: EMU10K1X - Dell Sound Blaster Live!
                      Dell Sound Blaster Live! at 0xdf20 irq 22
 2 [U0x46d0x807    ]: USB-Audio - USB Device 0x46d:0x807
                      USB Device 0x46d:0x807 at usb-0000:03:08.2-3, high speed
 3 [Set            ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set at usb-0000:00:1d.0-2, full speed

Mostly consistent with visible hardware.  Really just one USB.
Odd that the Intel device refers to both ICH4 & ICH5.

root@joule:~# alsactl init
Found hardware: "ICH4" "Analog Devices AD1980" "AC97a:41445370" "0x1028" "0x0155"

Initialize one device?  According to the manual, all should be initialized.

peter@joule:/home/peter$ aplay /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

That gives the white noise from ICH(4|5).

Try initializing other devices.

peter@joule:/home/peter$ alsactl init Live
Found hardware: "EMU10K1X" "SigmaTel STAC9708,11" "AC97a:83847608" "0x1102" "0x1003"
Hardware is initialized using a generic method

peter@joule:/home/peter$ alsactl init U0x46d0x807
Found hardware: "USB-Audio" "USB Mixer" "USB046d:0807" "" ""
Hardware is initialized using a generic method

peter@joule:/home/peter$ alsactl init Set
Found hardware: "USB-Audio" "USB Mixer" "USB0d8c:000c" "" ""
Hardware is initialized using a generic method
peter@joule:/home/peter$

They appear to initialize.

peter@joule:/home/peter$ aplay -D Live /usr/share/sounds/alsa/Noise.wav
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM Live
aplay: main:828: audio open error: No such file or directory

peter@joule:/home/peter$ aplay -D U0x46d0x807 /usr/share/sounds/alsa/Noise.wav
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM U0x46d0x807
aplay: main:828: audio open error: No such file or directory

peter@joule:/home/peter$ aplay -D Set /usr/share/sounds/alsa/Noise.wav
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM Set
aplay: main:828: audio open error: No such file or directory

Initialized but no sound. ?

Further ideas and tips?

Thx,             ... P.

-- 
48.7693 N 123.3053 W
tel: +1 604 670 0140

[toc] | [next] | [standalone]


#237908

FromReco <recoverym4n@enotuniq.net>
Date2021-07-30 08:00 +0200
Message-ID<CGtIS-kw-5@gated-at.bofh.it>
In reply to#237905
	Hi.

On Thu, Jul 29, 2021 at 08:20:16PM -0700, peter@easthope.ca wrote:
> From:	Reco <recoverym4n@enotuniq.net>, Sun, 20 Oct 2019 20:57:52 +0300
> > So, does it work?
> 
> Got sound from the Intel device on the system board.  Oddly enough 
> there was a plastic cover over the sockets on the chassis back.  Pried 
> it off to plug the speaker jack.
> 
> Here is some further info.

I had to restore mail archive from the backup to understand what exact
problem you're referring to. You could've started a new thread as well. 


> They appear to initialize.

aplay -L
arecord -L

I've mentioned the first one at least twice in my previous e-mails, but
I've yet to see full output of them. Please provide it.


And, since I mentioned that then - installing pulseaudio could solve
this problem too.

Reco

[toc] | [prev] | [next] | [standalone]


#237922

Frompeter@easthope.ca
Date2021-07-30 15:40 +0200
Message-ID<CGAU2-4Ir-13@gated-at.bofh.it>
In reply to#237908
    From: Reco <recoverym4n@enotuniq.net>
    Date: Fri, 30 Jul 2021 08:56:04 +0300
> You could've started a new thread as well. 

For sure at least one reader would think "#$%&*, there he goes; another thread broken!"

> aplay -L
> arecord -L

peter@joule:/home/peter$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
default:CARD=Live
    Dell Sound Blaster Live!, EMU10K1X Front
    Default Audio Device
sysdefault:CARD=Live
    Dell Sound Blaster Live!, EMU10K1X Front
    Default Audio Device
front:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Front speakers
rear:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Rear
    Rear speakers
center_lfe:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Center/LFE
    Center and Subwoofer speakers
surround21:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Direct sample mixing device
dmix:CARD=Live,DEV=1
    Dell Sound Blaster Live!, EMU10K1X Rear
    Direct sample mixing device
dmix:CARD=Live,DEV=2
    Dell Sound Blaster Live!, EMU10K1X Center/LFE
    Direct sample mixing device
dsnoop:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Direct sample snooping device
dsnoop:CARD=Live,DEV=1
    Dell Sound Blaster Live!, EMU10K1X Rear
    Direct sample snooping device
dsnoop:CARD=Live,DEV=2
    Dell Sound Blaster Live!, EMU10K1X Center/LFE
    Direct sample snooping device
hw:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Direct hardware device without any conversions
hw:CARD=Live,DEV=1
    Dell Sound Blaster Live!, EMU10K1X Rear
    Direct hardware device without any conversions
hw:CARD=Live,DEV=2
    Dell Sound Blaster Live!, EMU10K1X Center/LFE
    Direct hardware device without any conversions
plughw:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Hardware device with all software conversions
plughw:CARD=Live,DEV=1
    Dell Sound Blaster Live!, EMU10K1X Rear
    Hardware device with all software conversions
plughw:CARD=Live,DEV=2
    Dell Sound Blaster Live!, EMU10K1X Center/LFE
    Hardware device with all software conversions
usbstream:CARD=Live
    Dell Sound Blaster Live!
    USB Stream Output
default:CARD=ICH5
    Intel ICH5, Intel ICH5
    Default Audio Device
sysdefault:CARD=ICH5
    Intel ICH5, Intel ICH5
    Default Audio Device
front:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Front speakers
surround21:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    4.0 Surround output to Front and Rear speakers
surround41:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5 - IEC958
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Direct sample mixing device
dmix:CARD=ICH5,DEV=4
    Intel ICH5, Intel ICH5 - IEC958
    Direct sample mixing device
dsnoop:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Direct sample snooping device
dsnoop:CARD=ICH5,DEV=4
    Intel ICH5, Intel ICH5 - IEC958
    Direct sample snooping device
hw:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Direct hardware device without any conversions
hw:CARD=ICH5,DEV=4
    Intel ICH5, Intel ICH5 - IEC958
    Direct hardware device without any conversions
plughw:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Hardware device with all software conversions
plughw:CARD=ICH5,DEV=4
    Intel ICH5, Intel ICH5 - IEC958
    Hardware device with all software conversions
usbstream:CARD=ICH5
    Intel ICH5
    USB Stream Output
default:CARD=Set
    C-Media USB Headphone Set, USB Audio
    Default Audio Device
sysdefault:CARD=Set
    C-Media USB Headphone Set, USB Audio
    Default Audio Device
front:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Front speakers
surround21:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Direct sample mixing device
dsnoop:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Direct sample snooping device
hw:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Direct hardware device without any conversions
plughw:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Hardware device with all software conversions
usbstream:CARD=Set
    C-Media USB Headphone Set
    USB Stream Output
usbstream:CARD=U0x46d0x807
    USB Device 0x46d:0x807
    USB Stream Output

peter@joule:/home/peter$ arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
default:CARD=Live
    Dell Sound Blaster Live!, EMU10K1X Front
    Default Audio Device
sysdefault:CARD=Live
    Dell Sound Blaster Live!, EMU10K1X Front
    Default Audio Device
front:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Front speakers
iec958:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Direct sample mixing device
dsnoop:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Direct sample snooping device
hw:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Direct hardware device without any conversions
plughw:CARD=Live,DEV=0
    Dell Sound Blaster Live!, EMU10K1X Front
    Hardware device with all software conversions
usbstream:CARD=Live
    Dell Sound Blaster Live!
    USB Stream Output
default:CARD=ICH5
    Intel ICH5, Intel ICH5
    Default Audio Device
sysdefault:CARD=ICH5
    Intel ICH5, Intel ICH5
    Default Audio Device
front:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Front speakers
surround21:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    4.0 Surround output to Front and Rear speakers
surround41:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
dmix:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Direct sample mixing device
dmix:CARD=ICH5,DEV=1
    Intel ICH5, Intel ICH5 - MIC ADC
    Direct sample mixing device
dmix:CARD=ICH5,DEV=2
    Intel ICH5, Intel ICH5 - MIC2 ADC
    Direct sample mixing device
dmix:CARD=ICH5,DEV=3
    Intel ICH5, Intel ICH5 - ADC2
    Direct sample mixing device
dsnoop:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Direct sample snooping device
dsnoop:CARD=ICH5,DEV=1
    Intel ICH5, Intel ICH5 - MIC ADC
    Direct sample snooping device
dsnoop:CARD=ICH5,DEV=2
    Intel ICH5, Intel ICH5 - MIC2 ADC
    Direct sample snooping device
dsnoop:CARD=ICH5,DEV=3
    Intel ICH5, Intel ICH5 - ADC2
    Direct sample snooping device
hw:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Direct hardware device without any conversions
hw:CARD=ICH5,DEV=1
    Intel ICH5, Intel ICH5 - MIC ADC
    Direct hardware device without any conversions
hw:CARD=ICH5,DEV=2
    Intel ICH5, Intel ICH5 - MIC2 ADC
    Direct hardware device without any conversions
hw:CARD=ICH5,DEV=3
    Intel ICH5, Intel ICH5 - ADC2
    Direct hardware device without any conversions
plughw:CARD=ICH5,DEV=0
    Intel ICH5, Intel ICH5
    Hardware device with all software conversions
plughw:CARD=ICH5,DEV=1
    Intel ICH5, Intel ICH5 - MIC ADC
    Hardware device with all software conversions
plughw:CARD=ICH5,DEV=2
    Intel ICH5, Intel ICH5 - MIC2 ADC
    Hardware device with all software conversions
plughw:CARD=ICH5,DEV=3
    Intel ICH5, Intel ICH5 - ADC2
    Hardware device with all software conversions
usbstream:CARD=ICH5
    Intel ICH5
    USB Stream Output
default:CARD=Set
    C-Media USB Headphone Set, USB Audio
    Default Audio Device
sysdefault:CARD=Set
    C-Media USB Headphone Set, USB Audio
    Default Audio Device
front:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Front speakers
surround21:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Direct sample mixing device
dsnoop:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Direct sample snooping device
hw:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Direct hardware device without any conversions
plughw:CARD=Set,DEV=0
    C-Media USB Headphone Set, USB Audio
    Hardware device with all software conversions
usbstream:CARD=Set
    C-Media USB Headphone Set
    USB Stream Output
default:CARD=U0x46d0x807
    USB Device 0x46d:0x807, USB Audio
    Default Audio Device
sysdefault:CARD=U0x46d0x807
    USB Device 0x46d:0x807, USB Audio
    Default Audio Device
front:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    Front speakers
surround21:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    Direct sample mixing device
dsnoop:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    Direct sample snooping device
hw:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    Direct hardware device without any conversions
plughw:CARD=U0x46d0x807,DEV=0
    USB Device 0x46d:0x807, USB Audio
    Hardware device with all software conversions
usbstream:CARD=U0x46d0x807
    USB Device 0x46d:0x807
    USB Stream Output
peter@joule:/home/peter$ 

> And, since I mentioned that then - installing pulseaudio could solve
> this problem too.

Since the earlier discussion, pulseaudio was here.  Another layer of 
complexity without solving the identity problem, for me at least.  

Yesterday I removed pulseaudio according to the principal: if no 
special cases make sense, tackling the more complex problem is 
premature.

Thanks,                              ... P.

-- 
48.7693 N 123.3053 W
tel: +1 604 670 0140

[toc] | [prev] | [next] | [standalone]


#237930

FromReco <recoverym4n@enotuniq.net>
Date2021-07-30 18:40 +0200
Message-ID<CGDId-6o7-1@gated-at.bofh.it>
In reply to#237922
On Fri, Jul 30, 2021 at 05:55:43AM -0700, peter@easthope.ca wrote:
>     From: Reco <recoverym4n@enotuniq.net>
>     Date: Fri, 30 Jul 2021 08:56:04 +0300
> > You could've started a new thread as well. 
> 
> For sure at least one reader would think "#$%&*, there he goes; another thread broken!"

Broken threads are usual sight here these days. Too many people using
$DEITY knows what instead of a good and proper MUA :)
Heck, "many readers" do not even know that e-mail is threaded by its
very nature.


> > aplay -L
> > arecord -L
> 
> peter@joule:/home/peter$ aplay -L

Aha. So, will this work?
aplay -d dmix:CARD=Set,DEV=0 /usr/share/sounds/alsa/Noise.wav

Or this:
aplay -D plughw:CARD=Set,DEV=0 /usr/share/sounds/alsa/Noise.wav

And likewise:
aplay -D dmix:CARD=U0x46d0x807,DEV=0 /usr/share/sounds/alsa/noise.wav
aplay -D plughw:CARD=U0x46d0x807,DEV=0 /usr/share/sounds/alsa/noise.wav

I'm unsure what should "usbstream:CARD=Set" do, but try it as well.


> > And, since I mentioned that then - installing pulseaudio could solve
> > this problem too.
> 
> Since the earlier discussion, pulseaudio was here.  Another layer of 
> complexity without solving the identity problem, for me at least.  

I used to dislike it too. Things had changed in this regard once I've
obtained a Bluetooth headset.

Reco

[toc] | [prev] | [next] | [standalone]


#237958 — Re (2): Persistent names for audio devices.

Frompeter@easthope.ca
Date2021-07-31 20:00 +0200
SubjectRe (2): Persistent names for audio devices.
Message-ID<CH1rb-3Fb-1@gated-at.bofh.it>
In reply to#237930
    From: Reco <recoverym4n@enotuniq.net>
    Date: Fri, 30 Jul 2021 19:37:49 +0300
> Aha. So, will this work?
> aplay -d dmix:CARD=Set,DEV=0 /usr/share/sounds/alsa/Noise.wav

peter@joule:/home/peter$ aplay -d dmix:CARD=Set,DEV=0 /usr/share/sounds/alsa/Noise.wav
aplay: main:653: invalid duration argument 'dmix:CARD=Set,DEV=0'

peter@joule:/home/peter$ aplay -D dmix:CARD=Set,DEV=0 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1345: Channels count non available

peter@joule:/home/peter$ aplay -D dmix:CARD=Set,DEV=0 -c 1 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1345: Channels count non available

No sound.  Channels (or channels) has me stumped for now.

> Or this:
> aplay -D plughw:CARD=Set,DEV=0 /usr/share/sounds/alsa/Noise.wav

Gives the noise.  Good.  I guess hw = hardware.  No explanation of 
plughw in the aplay manual but google found a few remarks. 

Conclusion for users who want sound and don't care about channels: try plughw.
 
> And likewise:
> aplay -D dmix:CARD=U0x46d0x807,DEV=0 /usr/share/sounds/alsa/noise.wav
> aplay -D plughw:CARD=U0x46d0x807,DEV=0 /usr/share/sounds/alsa/noise.wav

peter@joule:/home/peter$ aplay -D dmix:CARD=U0x46d0x807,DEV=0 /usr/share/sounds/alsa/noise.wav
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
aplay: main:828: audio open error: No such file or directory

peter@joule:/home/peter$ aplay -D plughw:CARD=U0x46d0x807,DEV=0 /usr/share/sounds/alsa/noise.wav
aplay: main:828: audio open error: No such file or directory

main:828?  What is that?

> I'm unsure what should "usbstream:CARD=Set" do, but try it as well.

peter@joule:/home/peter$ aplay -D usbstream:CARD=Set /usr/share/sounds/alsa/Noise.wav
ALSA lib pcm_usb_stream.c:508:(_snd_pcm_usb_stream_open) Unknown field hint
aplay: main:828: audio open error: Invalid argument

These three give noise.

peter@joule:/home/peter$ aplay -D default:CARD=ICH5 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

peter@joule:/home/peter$ aplay -D sysdefault:CARD=ICH5 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

peter@joule:/home/peter$ aplay -D surround21:CARD=ICH5,DEV=0 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

peter@joule:/home/peter$ aplay -D front:CARD=ICH5,DEV=0 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

The "front" device gives silence.  A cable inside the box is not 
connected to the system board?  Will check when there is time.

Try a voice message.

peter@joule:/home/peter$ aplay -D plughw:CARD=ICH5,DEV=0 m94.WAV
aplay: test_wavefile:1054: can't play WAVE-file format 0x0031 which is not PCM or FLOAT encoded

So try play.  It lacks the -D parameter.  Two commands required.  =8~(

peter@joule:/home/peter$ set AUDIODEV=plughw:CARD=ICH5,DEV=0; play m94.WAV
play WARN alsa: can't encode 0-bit Unknown or not applicable

In spite of the warning, sound is produced.  Good!  Might have a 
reliable way to hear voice messages.

CONCLUSIONS

Audio messages can be interpreted.  Eg.,
set AUDIODEV=plughw:CARD=ICH5,DEV=0; play m94.WAV

"aplay -L" reported approximately 61 devices.  A few hours of trial 
and error (and note writing) got sound from four. Terrible odds.  
(Computing is so much more productive when based upon reason rather 
than guesswork.)

The best alsa documentation I've found in debian.org is 
https://wiki.debian.org/ALSA .  In my view, the first sentence should 
direct the reader to learn basics at 
https://alsa-project.org/wiki/Main_Page . Even so crucial gaps are 
obvious.  What exactly is a channel?  A reader should be wary of any 
document containing undefined terms.

Thanks for the help,                       ... P.

-- 
48.7693 N 123.3053 W
tel: +1 604 670 0140

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web