]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Add linear plugin wrapping iec958 PCM for ice1724-based boards
authorTakashi Iwai <tiwai@suse.de>
Wed, 19 Nov 2008 13:59:03 +0000 (14:59 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 19 Nov 2008 13:59:03 +0000 (14:59 +0100)
The ice1724-based cards can handle only 32bit while the apps almost
expet 16bit format for SPDIF I/O.  This prevents the default config
working on many apps like mplayer, xine, etc.

This patch simply adds the least automatic conversion by linear plugin.
Note that "plug" isn't used here.  Otherwise we get a problem of the
routing (plug over plug is buggy).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/conf/cards/Aureon51.conf
src/conf/cards/Aureon71.conf
src/conf/cards/ICE1724.conf

index 1b8ee8550176a093cce144143cd4a7d928c81bb1..24b4d949174bd58e4dccd4547fe8bd1e9be4abe4 100644 (file)
@@ -121,6 +121,8 @@ Aureon51.pcm.iec958.0 {
        }
        type asym
        playback.pcm {
+           type linear
+           slave.pcm {
                type hooks
                slave.pcm {
                        type hw
@@ -147,8 +149,12 @@ Aureon51.pcm.iec958.0 {
                                }
                        ]
                }
+           }
+           slave.format S32_LE
        }
        capture.pcm {
+           type linear
+           slave.pcm {
                type hooks
                slave.pcm {
                        type hw
@@ -167,5 +173,7 @@ Aureon51.pcm.iec958.0 {
                                }
                        ]
                }
+           }
+           slave.format S32_LE
        }
 }
index 8a88cce4ca57b58a541b089d47cc4c300078ee78..1479c25cce217fa9629baa782f1e21a7b96ea42d 100644 (file)
@@ -132,6 +132,8 @@ Aureon71.pcm.iec958.0 {
        }
        type asym
        playback.pcm {
+           type linear
+           slave.pcm {
                type hooks
                slave.pcm {
                        type hw
@@ -158,8 +160,12 @@ Aureon71.pcm.iec958.0 {
                                }
                        ]
                }
+           }
+           slave.format S32_LE
        }
        capture.pcm {
+           type linear
+           slave.pcm {
                type hooks
                slave.pcm {
                        type hw
@@ -178,5 +184,7 @@ Aureon71.pcm.iec958.0 {
                                }
                        ]
                }
+           }
+           slave.format S32_LE
        }
 }
index 7f15332093ac4c9e8f4efbfb306458fbeb41de06..e806b36d92a1295e7e298f47f1b6bafee61e7497 100644 (file)
@@ -166,6 +166,8 @@ ICE1724.pcm.iec958.0 {
        }
        type asym
        playback.pcm {
+           type linear
+           slave.pcm {
                type hooks
                slave.pcm {
                        type hw
@@ -192,8 +194,12 @@ ICE1724.pcm.iec958.0 {
                                }
                        ]
                }
+           }
+           slave.format S32_LE
        }
        capture.pcm {
+           type linear
+           slave.pcm {
                type hooks
                slave.pcm {
                        type hw
@@ -212,5 +218,7 @@ ICE1724.pcm.iec958.0 {
                                }
                        ]
                }
+           }
+           slave.format S32_LE
        }
 }