* ALC1150 can't playback SND_PCM_FORMAT_FLOAT without dmix
@ 2014-05-04 7:27 Madura Anushanga
2014-05-04 10:32 ` Daniel Mack
0 siblings, 1 reply; 2+ messages in thread
From: Madura Anushanga @ 2014-05-04 7:27 UTC (permalink / raw)
To: alsa-devel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ALC1150 can't playback SND_PCM_FORMAT_FLOAT without dmix
2014-05-04 7:27 ALC1150 can't playback SND_PCM_FORMAT_FLOAT without dmix Madura Anushanga
@ 2014-05-04 10:32 ` Daniel Mack
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Mack @ 2014-05-04 10:32 UTC (permalink / raw)
To: Madura Anushanga, alsa-devel
Hi,
On 05/04/2014 09:27 AM, Madura Anushanga wrote:
> 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
> }
The 'hw' plugin requires the audio hardward to support the configured
format natively, matching the exact sample format, alignment and
endianess, as well as the sample rate and channel number etc.
I don't know of any consumer-class Codec that supports float on the
hardware wire.
> pcm.dmixed {
> type asym
> playback.pcm {
> type dmix
...
> 1. https://github.com/manushanga/vrok/blob/master/outs/alsa.cpp
In general, you should use the 'plughw' plugin for generic applications,
which does the implicit sample format conversion for you.
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-04 10:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-04 7:27 ALC1150 can't playback SND_PCM_FORMAT_FLOAT without dmix Madura Anushanga
2014-05-04 10:32 ` Daniel Mack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox