Re: Specifying supported hw params (channels, format, etc.) by the plug plugin in alsa config?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25. 08. 24 20:16, Pavel Hofman wrote:
Hi,

Please is it possible to restrict the hw params space for the plug
plugin by some alsa configuration, so that it reports/accepts only a
specific number of channels/specific sample format? I was not able to
figure it out, I apologize if it's trivial :-)

Hi,

	here's a quick example:

===
pcm.hubcap {
  type plug
  slave {
    pcm "hw:Loopback,1,0"
    rate 48000
    format S16_LE
  }
}
===

Documentation: https://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html

					Jaroslav

--
Jaroslav Kysela <perex@xxxxxxxx>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux