2025-01-06

alsa both hdmi & internal/3.5mm

 ~/.asoundrc



# /proc/asound/cards


# default - plug

#   asymed - asym

#     all - route - multi

#       intdmix - dmix

#         int - hw

#       hdmidmix3 - dmix

#         hdmi3 - hw

#     capture




pcm.int {

type hw

card PCH

# device 0

}

ctl.int {

type hw

card PCH

# device 0

}



pcm.hdmi3 {

type hw

card HDMI

device 3

}

ctl.hdmi3 {

type hw

card HDMI

device 3

}


pcm.hdmi7 {

type hw

card HDMI

device 7

}

ctl.hdmi7 {

type hw

card HDMI

device 7

}




pcm.intdmix {

type dmix

ipc_key 1024

slave {

pcm "int"

channels 2


period_time 0

period_size 1024

buffer_size 4096

rate 44100

}

bindings {

0 0

1 1

}


}



pcm.hdmidmix3 {

type dmix

ipc_key 4096

slave {

pcm "hdmi3"

channels 2


period_time 0

period_size 1024

buffer_size 4096

rate 44100

}

bindings {

0 0

1 1

}


}


pcm.hdmidmix7 {

type dmix

ipc_key 8192

slave {

pcm "hdmi7"

channels 2


period_time 0

period_size 1024

buffer_size 4096

rate 44100

}

bindings {

0 0

1 1

}


}


pcm.all {

type route

slave.pcm {

type multi


slaves.a.pcm "intdmix"

slaves.a.channels 2

bindings.0.slave a

bindings.0.channel 0

bindings.1.slave a

bindings.1.channel 1



slaves.b.pcm "hdmidmix3"

slaves.b.channels 2

bindings.2.slave b

bindings.2.channel 0

bindings.3.slave b

bindings.3.channel 1


slaves.c.pcm "hdmidmix7"

slaves.c.channels 2

bindings.4.slave c

bindings.4.channel 0

bindings.5.slave c

bindings.5.channel 1

}


ttable.0.0 1

ttable.1.1 1


ttable.0.2 1

ttable.1.3 1


ttable.0.4 1

ttable.1.5 1


}


ctl.all {

type hw

card PCH

}



pcm.!default {

type plug

# slave.pcm "dmixer"

slave.pcm "asymed"

  # slave.pcm "all"

    # slave.pcm "hdmidmix"

    # slave.pcm "hdmidmix3"

    # slave.pcm "hdmidmix7"

# slave.pcm "intdmix"

}





pcm.dmixer  {

  type dmix

  ipc_key 1024

  slave {


# HDMI

# pcm "hw:0,0"

# Analog

pcm "hw:0,3"



period_time 0

period_size 1024

buffer_size 4096

rate 44100

}

bindings {

0 0

1 1

}

}


pcm.asymed { 

        type asym 

        # playback.pcm "dmixer" 

        playback.pcm "all" 


        capture.pcm "hw:PCH" 

        # capture.pcm "hw:0,2" 


pcm.dsp0 { 

    type plug 

    slave.pcm "asymed" 



ctl.mixer0 {

type hw

card 0

}



No comments:

Post a Comment