Re: [Alsa-user] Setting a PCM as default device - SOLVED

2022-04-20 Thread Ralf Mardorf
On Wed, 20 Apr 2022 14:57:26 -1000, Joel Roth wrote:
>pcm.!default {
> type asym
> playback.pcm "plughw:CARD=PCH,DEV=7"
>}

Hi,

½ a year ago I started using the following .asoundrc in my home folder
to automatically access HDMI audio after log in on a plain ALSA (and
jackd, but no pulseaudio) install.

[rocketmouse@archlinux ~]$ cat .asoundrc
defaults.pcm.card 3
defaults.pcm.device 7

Unfortunately I can't start jackd to access another device anymore, but
since I'm doing almost all pro-audio related work with Apple, the crappy
display's speaker sound is usually ok for the Linux machine.

To access another device I need to 

[rocketmouse@archlinux ~]$ mv -i .asoundrc .asoundrc_disabled

then log out and in again to use one of devices in alsa-base.conf or an
USB device.

[rocketmouse@archlinux ~]$ cat /etc/modprobe.d/alsa-base.conf 
# ALSA module ordering
options snd slots=snd_hdspm,snd_ice1712,snd_ice1712

I've done the mv and log out and in right now for the very first time.
At least there's no need to reboot :D.

Regards,
Ralf


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


Re: [Alsa-user] Cheap USB jack output device

2022-04-20 Thread Ralf Mardorf
>On 04/03/2022 13:32, Josu Lazkano wrote:
>> Could you recommend any well supported USB output device?

Any _class compliant_ usb audio interface should work.


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


Re: [Alsa-user] Setting a PCM as default device - SOLVED

2022-04-20 Thread Joel Roth
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@lists.sourceforge.net/msg32987.html
-- 
Joel Roth


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


Re: [Alsa-user] Cheap USB jack output device

2022-04-20 Thread Sergei Steshenko via Alsa-user
I definitely know that cx31993 based devices work out of the box because 
I own one.


--Sergei.

On 04/03/2022 13:32, Josu Lazkano wrote:

Hello,

I need to put a jack output to my server, I need something cheap but 
compatible with Debian.


Actually I buy this device, but it does not work: 
https://es.aliexpress.com/item/438850174.html 



$ lsusb | grep Audio
Bus 004 Device 003: ID 08bb:2902 Texas Instruments PCM2902 Audio Codec

Could you recommend any well supported USB output device?

Best regards.

--
Josu Lazkano


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


[Alsa-user] Setting a PCM as default device

2022-04-20 Thread Joel Roth
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

I'll appreciate any suggestions.

For reference aplay -L lists the following devices.

null
Discard all samples (playback) or generate zero samples (capture)
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct hardware device without any conversions
hw:CARD=PCH,DEV=7
HDA Intel PCH, HDMI 1
Direct hardware device without any conversions
hw:CARD=PCH,DEV=8
HDA Intel PCH, HDMI 2
Direct hardware device without any conversions
hw:CARD=PCH,DEV=9
HDA Intel PCH, HDMI 3
Direct hardware device without any conversions
hw:CARD=PCH,DEV=10
HDA Intel PCH, HDMI 4
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Hardware device with all software conversions
plughw:CARD=PCH,DEV=7
HDA Intel PCH, HDMI 1
Hardware device with all software conversions
plughw:CARD=PCH,DEV=8
HDA Intel PCH, HDMI 2
Hardware device with all software conversions
plughw:CARD=PCH,DEV=9
HDA Intel PCH, HDMI 3
Hardware device with all software conversions
plughw:CARD=PCH,DEV=10
HDA Intel PCH, HDMI 4
Hardware device with all software conversions
default:CARD=PCH
HDA Intel PCH, ALC662 rev3 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC662 rev3 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct sample mixing device
dmix:CARD=PCH,DEV=7
HDA Intel PCH, HDMI 1
Direct sample mixing device
dmix:CARD=PCH,DEV=8
HDA Intel PCH, HDMI 2
Direct sample mixing device
dmix:CARD=PCH,DEV=9
HDA Intel PCH, HDMI 3
Direct sample mixing device
dmix:CARD=PCH,DEV=10
HDA Intel PCH, HDMI 4
Direct sample mixing device

Thanks in advance,

Joel

-- 
Joel Roth


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