mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Fix endianess of PMac driver
Fix endianess of PMac driver for the latest change of dmix. Now need to specify the (big-endian) format explicitly.
This commit is contained in:
parent
dee6f010b7
commit
841ca34917
3 changed files with 44 additions and 10 deletions
|
|
@ -33,6 +33,7 @@ cfg_files = aliases.conf \
|
||||||
Maestro3.conf \
|
Maestro3.conf \
|
||||||
NFORCE.conf \
|
NFORCE.conf \
|
||||||
PC-Speaker.conf \
|
PC-Speaker.conf \
|
||||||
|
PMac.conf \
|
||||||
PMacToonie.conf \
|
PMacToonie.conf \
|
||||||
RME9636.conf \
|
RME9636.conf \
|
||||||
RME9652.conf \
|
RME9652.conf \
|
||||||
|
|
|
||||||
38
src/conf/cards/PMac.conf
Normal file
38
src/conf/cards/PMac.conf
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
#
|
||||||
|
# Configuration for PMac
|
||||||
|
#
|
||||||
|
|
||||||
|
<confdir:pcm/front.conf>
|
||||||
|
|
||||||
|
PMac.pcm.front.0 {
|
||||||
|
@args [ CARD ]
|
||||||
|
@args.CARD {
|
||||||
|
type string
|
||||||
|
}
|
||||||
|
type hw
|
||||||
|
card $CARD
|
||||||
|
device 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# default with dmix/dsnoop
|
||||||
|
PMac.pcm.default {
|
||||||
|
@args [ CARD ]
|
||||||
|
@args.CARD {
|
||||||
|
type string
|
||||||
|
}
|
||||||
|
type asym
|
||||||
|
playback.pcm {
|
||||||
|
type plug
|
||||||
|
slave.pcm {
|
||||||
|
@func concat
|
||||||
|
strings [ "dmix:CARD=" $CARD ",FORMAT=S16" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
capture.pcm {
|
||||||
|
type plug
|
||||||
|
slave.pcm {
|
||||||
|
@func concat
|
||||||
|
strings [ "dsnoop:CARD=" $CARD ",FORMAT=S16" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -21,23 +21,19 @@ PMacToonie.pcm.front.0 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# once when dmix is confirmed to work on ppc, we should enable dmix/dsnoop
|
# default with dmix+softvol & dsnoop
|
||||||
# for default, too
|
|
||||||
|
|
||||||
PMacToonie.pcm.default {
|
PMacToonie.pcm.default {
|
||||||
@args [ CARD ]
|
@args [ CARD ]
|
||||||
@args.CARD {
|
@args.CARD {
|
||||||
type string
|
type string
|
||||||
}
|
}
|
||||||
type asym
|
type asym
|
||||||
playback.pcm {
|
|
||||||
type plug
|
type plug
|
||||||
slave.pcm {
|
slave.pcm {
|
||||||
type softvol
|
type softvol
|
||||||
slave.pcm {
|
slave.pcm {
|
||||||
type hw
|
@func concat
|
||||||
card $CARD
|
strings [ "dmix:CARD=" $CARD ",FORMAT=S16" ]
|
||||||
device 0
|
|
||||||
}
|
}
|
||||||
control {
|
control {
|
||||||
name "PCM Playback Volume"
|
name "PCM Playback Volume"
|
||||||
|
|
@ -48,9 +44,8 @@ PMacToonie.pcm.default {
|
||||||
capture.pcm {
|
capture.pcm {
|
||||||
type plug
|
type plug
|
||||||
slave.pcm {
|
slave.pcm {
|
||||||
type hw
|
@func concat
|
||||||
card $CARD
|
strings [ "dsnoop:CARD=" $CARD ",FORMAT=S16" ]
|
||||||
device 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue