Re: [Alsa-user] configuring asoundrc

2021-02-14 Thread Clemens Ladisch via Alsa-user
James Cloos wrote:
> CL>   pcm.!default {
> CL> type asym
> CL> playback.pcm "plug:hdmi:0,0"
> CL> capture.pcm "plughw:1"
> CL>   }
>
> ALSA lib 
> /var/tmp/portage/media-libs/alsa-lib-1.2.4/work/alsa-lib-1.2.4/src/conf.c:5084:(parse_args)
>  Unknown parameter 1

Oops, the hdmi device does not take a second parameter.
Use:
playback.pcm "plug:hdmi:0"


Regards,
Clemens


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


Re: [Alsa-user] configuring asoundrc

2021-02-03 Thread James Cloos
> "CL" == Clemens Ladisch  writes:

CL> [my attempt] disables all automatic sample rate/format conversions.

Ah.  I based it on what I had worked out years ago for my main workstation

CL> Replace it with:

CL>   pcm.!default {
CL> type asym
CL> playback.pcm "plug:hdmi:0,0"
CL> capture.pcm "plughw:1"
CL>   }

unfortunately that gives:

ALSA lib 
/var/tmp/portage/media-libs/alsa-lib-1.2.4/work/alsa-lib-1.2.4/src/conf.c:5084:(parse_args)
 Unknown parameter 1
ALSA lib 
/var/tmp/portage/media-libs/alsa-lib-1.2.4/work/alsa-lib-1.2.4/src/conf.c:5217:(snd_config_expand)
 Parse arguments error: No such file or directory
ALSA lib 
/var/tmp/portage/media-libs/alsa-lib-1.2.4/work/alsa-lib-1.2.4/src/pcm/pcm.c:2660:(snd_pcm_open_noupdate)
 Unknown PCM plug:hdmi:0,0
aplay: main:830: audio open error: No such file or directory

(The /var/tmp/portage/media-libs/alsa-lib-1.2.4/work/ was the build dir)

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6


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


Re: [Alsa-user] configuring asoundrc

2021-02-03 Thread Clemens Ladisch via Alsa-user
James Cloos wrote:
> pcm.!default {
> type hw
> card Generic
> device 3
> }
>
> ctl.!default {
> type hw
> card Generic
> }

This disables all automatic sample rate/format conversions.

Replace it with:

  pcm.!default {
type asym
playback.pcm "plug:hdmi:0,0"
capture.pcm "plughw:1"
  }


Regards,
Clemens


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


[Alsa-user] configuring asoundrc

2021-02-02 Thread James Cloos
i'm tryin to get audio to work on a new board.

so far nothing i've tried works.

aplay -l reports:

 List of PLAYBACK Hardware Devices 
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC888-VD Analog [ALC888-VD 
Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 1: ALC888-VD Digital [ALC888-VD 
Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

my goal is to default to the first one in that list.

[time passes; looks like i found a partial solution...]

this:

pcm.!default {
type hw
card Generic
device 3
}

ctl.!default {
type hw
card Generic
}

reports:

aplay: set_params:1349: Channels count non available

but some gui apps succeed, so that does not seem fatal.

nonetheless, any ideas on how to fix that?

-JimC
-- 
James Cloos  OpenPGP: 0x997A9F17ED7DAEA6


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