AES params with dmix

Caner Altinbasak via Alsa-user <[email protected]> Wed, 28 Dec 2022 15:12:48 +0000
Newsgroups gmane.linux.alsa.user
Message-ID <SJ0PR22MB331380D7659287AF653D9C1CDAF29@SJ0PR22MB3313.namprd22.prod.outlook.com>
--===============7509614913837802642==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_SJ0PR22MB331380D7659287AF653D9C1CDAF29SJ0PR22MB3313namp_"

--_000_SJ0PR22MB331380D7659287AF653D9C1CDAF29SJ0PR22MB3313namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!

I am trying to set up hdmi pass through with dmix plugin. dmix plugin can o=
nly be connected to hw plugin. I tried the following and it didn't work:

pcm.hdmi1_dmix {
       @args [ AES0 AES1 AES2 AES3 ]
    @args.AES0 {
      type integer
      default 0
    }
    @args.AES1 {
      type integer
      default 0
    }
    @args.AES2 {
      type integer
      default 0
    }
    @args.AES3 {
      type integer
      default 1
    }



    type dmix
    ipc_key 1025
    slave {
        pcm
        {
            @func refer
            name {
                @func concat
                strings [
                    "cards.HDA-Intel.pcm.hdmi.4:"
                    "CARD=3D0,"
                    "AES0=3D" $AES0 ","
                    "AES1=3D" $AES1 ","
                    "AES2=3D" $AES2 ","
                    "AES3=3D" $AES3
                ]
            }
        }
        rate 48000
        period_size 1024
        buffer_size 16384
    }
}

If I refer to hw directly in slave, then I need to define the AES parameter=
s through hooks. But I cannot define ctl_elems hook, since hooks are separa=
te type. I am stuck. Is this even possible?

Caner Altinbasak


BrightSign considers your privacy to be very important. The emails you send=
 to us will be protected and secured. Furthermore, we will only use your em=
ail and contact information for the reasons you sent them to us and for tra=
cking how effectively we respond to your requests.

--_000_SJ0PR22MB331380D7659287AF653D9C1CDAF29SJ0PR22MB3313namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof"><span style=3D"font-family: Calibri, Arial, H=
elvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-colo=
r: rgb(255, 255, 255);">Hi!</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Calibri, Arial, H=
elvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-colo=
r: rgb(255, 255, 255);"><br>
</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Calibri, Arial, H=
elvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-colo=
r: rgb(255, 255, 255);">I am trying to set up hdmi pass through with dmix p=
lugin. dmix plugin can only be connected
 to hw plugin. I tried the following and it didn't work:</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Calibri, Arial, H=
elvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-colo=
r: rgb(255, 255, 255);"><br>
</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Calibri, Arial, H=
elvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-colo=
r: rgb(255, 255, 255);" class=3D"ContentPasted0">pcm.hdmi1_dmix { &nbsp; &n=
bsp; &nbsp;
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp;@a=
rgs [ AES0 AES1 AES2 AES3 ]</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; @args.AES0 { &n=
bsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; type int=
eger &nbsp; &nbsp; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; default =
0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; } &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; @args.AES1 { &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; type int=
eger</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; default =
0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; } &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; @args.AES2 { &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; type int=
eger &nbsp; &nbsp; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; default =
0 &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; } &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; @args.AES3 { &n=
bsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; type int=
eger &nbsp; &nbsp; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; default =
1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; } &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; type dmix &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; ipc_key 1025 &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; slave { &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; p=
cm &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; {=
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; @func refer</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; name {</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; @func concat</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; strings [</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;cards.HDA-Intel.pcm.hdmi.4:&=
quot;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;CARD=3D0,&quot;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;AES0=3D&quot; $AES0 &quot;,&=
quot; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;AES1=3D&quot; $AES1 &quot;,&=
quot;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;AES2=3D&quot; $AES2 &quot;,&=
quot;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;AES3=3D&quot; $AES3</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; ] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; </div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; }=
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; r=
ate 48000</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; p=
eriod_size 1024 &nbsp; &nbsp;</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; &nbsp; &nbsp; b=
uffer_size 16384</div>
<div class=3D"FluidPluginCopy ContentPasted0">&nbsp; &nbsp; } &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
} &nbsp; &nbsp; <br>
</span></div>
<div class=3D"elementToProof"><br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Calibri, Arial, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb=
(255, 255, 255);">
If I refer to hw directly in slave, then I need to define the AES parameter=
s through hooks. But I cannot define ctl_elems hook, since hooks are separa=
te type.&nbsp;<span style=3D"color: rgb(0, 0, 0); font-family: Calibri, Ari=
al, Helvetica, sans-serif; font-size: 12pt;">I
 am stuck. Is this even possible?</span></div>
<div class=3D"elementToProof" style=3D"font-family: Calibri, Arial, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb=
(255, 255, 255);">
<span style=3D"color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica,=
 sans-serif; font-size: 12pt;"><br>
</span></div>
<div class=3D"elementToProof" style=3D"font-family: Calibri, Arial, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb=
(255, 255, 255);">
<span style=3D"color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica,=
 sans-serif; font-size: 12pt;">Caner Altinbasak</span></div>
<div class=3D"elementToProof" style=3D"font-family: Calibri, Arial, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb=
(255, 255, 255);">
<br>
</div>
<div class=3D"elementToProof" style=3D"font-family: Calibri, Arial, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb=
(255, 255, 255);">
<br>
</div>
BrightSign considers your privacy to be very important. The emails you send=
 to us will be protected and secured. Furthermore, we will only use your em=
ail and contact information for the reasons you sent them to us and for tra=
cking how effectively we respond
 to your requests.
</body>
</html>

--_000_SJ0PR22MB331380D7659287AF653D9C1CDAF29SJ0PR22MB3313namp_--


--===============7509614913837802642==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7509614913837802642==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user

--===============7509614913837802642==--