[alsa-devel] ICE1712 softdevices fixes
The following patches fixes the default device as they appear for ICE1712-based cards. Without this cards, 'aplay -L' will show a series of devices like surround40 and surround71 that are not meaningful for this card, and a front device that would not work.
The ICE1712-based cards are non-surround cards with only stereo final output. It's not possible to use them as surround cards, so these devices don't make sense.
They also don't work since opening those devices with less than the amount of channels will fail.
Signed-off-by: Diego E. 'Flameeyes' Pettenò flameeyes@gmail.com --- src/conf/cards/ICE1712.conf | 40 ---------------------------------------- 1 files changed, 0 insertions(+), 40 deletions(-)
diff --git a/src/conf/cards/ICE1712.conf b/src/conf/cards/ICE1712.conf index 01e50d2..5445920 100644 --- a/src/conf/cards/ICE1712.conf +++ b/src/conf/cards/ICE1712.conf @@ -39,46 +39,6 @@ ICE1712.pcm.front.0 { type hw card $CARD } -} - -confdir:pcm/surround40.conf - -ICE1712.pcm.surround40.0 { - @args [ CARD ] - @args.CARD { - type string - } - type route - ttable.0.0 1 - ttable.1.1 1 - ttable.2.2 1 - ttable.3.3 1 - slave.pcm { - type hw - card $CARD - } -} - -confdir:pcm/surround41.conf -confdir:pcm/surround50.conf -confdir:pcm/surround51.conf - -ICE1712.pcm.surround51.0 { - @args [ CARD ] - @args.CARD { - type string - } - type route - ttable.0.0 1 - ttable.1.1 1 - ttable.2.2 1 - ttable.3.3 1 - ttable.4.4 1 - ttable.5.5 1 - slave.pcm { - type hw - card $CARD - } }
The default definition of front:idx for ICE1712-based cards didn't work previously because the route plugin cannot change the number of channels between the hardware device (with 10 or 12 channels) and the soft-device (with 2 channels).
Signed-off-by: Diego E. 'Flameeyes' Pettenò flameeyes@gmail.com --- src/conf/cards/ICE1712.conf | 28 ++++++++++++++++++++++------ 1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/src/conf/cards/ICE1712.conf b/src/conf/cards/ICE1712.conf index 5445920..bb93c1d 100644 --- a/src/conf/cards/ICE1712.conf +++ b/src/conf/cards/ICE1712.conf @@ -32,12 +32,28 @@ ICE1712.pcm.front.0 { @args.CARD { type string } - type route - ttable.0.0 1 - ttable.1.1 1 - slave.pcm { - type hw - card $CARD + type asym + playback.pcm { + type route + ttable.0.0 1 + ttable.1.1 1 + slave.pcm { + type hw + card $CARD + } + slave.format S32_LE + slave.channels 10 + } + capture.pcm { + type route + ttable.0.8 1 + ttable.1.9 1 + slave.pcm { + type hw + card $CARD + } + slave.format S32_LE + slave.channels 12 } }
participants (1)
-
Diego E. 'Flameeyes' Pettenò