[alsa-devel] ALC1150 can't playback SND_PCM_FORMAT_FLOAT without dmix

Madura Anushanga madura.x86 at gmail.com
Sun May 4 09:27:10 CEST 2014


Hi,

MSI z87-GD65 GAMING motherboard's ALC1150 plays SND_PCM_FORMAT_FLOAT with
noise[1] other non float formats work well. As soon as I changed
/etc/asound.conf from

pcm.!default{
   type hw
   card 1
}

to

pcm.dmixed {
        type asym
        playback.pcm {
                type dmix
                ipc_key 5678293
                ipc_perm 0660
                ipc_gid audio

                slave {
                        channels 2 # make 6 or 5.1 channel
                        pcm {
                                format S16_LE # S32_LE
                                rate 48000 # can also be 44100
                                type hw
                                card 1 # your card
                                device 0 # your device
                                subdevice 0 #important?
                        }

                        period_size 1024
                        buffer_size 8192
                }

                bindings {
                        0 0
                        1 1
# Uncomment below if using 6 channel
#                       2 2
#                       3 3
#                       4 4
#                       5 5
                }
        }
        capture.pcm "hw:0"
}

pcm.!default {
        type plug
        slave.pcm "dmixed"
}

SND_PCM_FORMAT_FLOAT plays without a problem.

1. https://github.com/manushanga/vrok/blob/master/outs/alsa.cpp

            - Madura A.


More information about the Alsa-devel mailing list