Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SB Live 7.1 24 bit
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
EdiG
n00b
n00b


Joined: 05 Apr 2005
Posts: 62
Location: Russia/Moscow

PostPosted: Fri Jul 15, 2005 4:05 pm    Post subject: Reply with quote

скопировать из /usr/share/alsa/cards/чип_карты в домашний каталог
и все include для него если нужен 5.1 звук выполнить тест
Code:

speaker-test -c6 -Dplug:surround51



Code:
/home/edig/.asoudrc


Code:

#
# Configuration for the CA0106 chip
#

<confdir:pcm/front.conf>

CA0106.pcm.front.0 {
         <at> args [ CARD  ]
         <at> args.CARD {
                type string
        }
        type hw
        card $CARD
        device 0
}     

<confdir:pcm/rear.conf>

CA0106.pcm.rear.0 {
         <at> args [ CARD ]
         <at> args.CARD {
                type string
        }
        type hw
        card $CARD
        device 1
}     

<confdir:pcm/center_lfe.conf>

CA0106.pcm.center_lfe.0 {
         <at> args [ CARD ]
         <at> args.CARD {
                type string
        }
        type hw
        card $CARD
        device 2
}     

<confdir:pcm/side.conf>

CA0106.pcm.side.0 {
         <at> args [ CARD ]
         <at> args.CARD {
                type string
        }
        type hw
        card $CARD
        device 3
}     

<confdir:pcm/surround40.conf>

CA0106.pcm.surround40.0 {
         <at> args [ CARD ]
         <at> args.CARD {
                type string
        }
        type multi
        slaves [
                {
                        pcm {
                                 <at> func concat
                                strings [
                                        "cards.CA0106.pcm.front.0:CARD="
$CARD
                                ]
                        }
                        channels 2
                }
                {
                        pcm {
                                 <at> func concat
                                strings [
                                        "cards.CA0106.pcm.rear.0:CARD="
$CARD
                                ]
                        }
                        channels 2
                }
        ]
        bindings [
                { slave 0 channel 0 }
                { slave 0 channel 1 }
                { slave 1 channel 0 }
                { slave 1 channel 1 }
        ]
}

<confdir:pcm/surround41.conf>
<confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf>
<confdir:pcm/surround71.conf>

CA0106.pcm.surround51.0 {
         <at> args [ CARD ]
         <at> args.CARD {
                type string
        }
        type multi
        slaves [
                {
                        pcm {
                                 <at> func concat
                                strings [
                                        "cards.CA0106.pcm.front.0:CARD="
$CARD
                                ]
                        }
                        channels 2
                }
                {
                        pcm {
                                 <at> func concat
                                strings [
                                        "cards.CA0106.pcm.rear.0:CARD="
$CARD
                                ]
                        }
                        channels 2
                }
                {
                        pcm {
                                 <at> func concat
                                strings [

"cards.CA0106.pcm.center_lfe.0:CARD=" $CARD
                                ]
                        }
                        channels 2
                }
        ]
        bindings [
                { slave 0 channel 0 }
                { slave 0 channel 1 }
                { slave 1 channel 0 }
                { slave 1 channel 1 }
                { slave 2 channel 0 }
                { slave 2 channel 1 }
        ]
}

CA0106.pcm.surround71.0 {
         <at> args [ CARD ]
         <at> args.CARD {
                type string
        }
        type multi
        slaves [
                {
                        pcm {
                                 <at> func concat
                                strings [
                                        "cards.CA0106.pcm.front.0:CARD="
$CARD
                                ]
                        }
                        channels 2
                }
                {
                        pcm {
                                 <at> func concat
                                strings [
                                        "cards.CA0106.pcm.rear.0:CARD="
$CARD
                                ]
                        }
                        channels 2
                }
                {
                        pcm {
                                 <at> func concat
                                strings [

"cards.CA0106.pcm.center_lfe.0:CARD=" $CARD
                                ]
                        }
                        channels 2
                }
                {
                        pcm {
                                 <at> func concat
                                strings [
                                        "cards.CA0106.pcm.side.0:CARD="
$CARD
                                ]
                        }
                        channels 2
                }
        ]
        bindings [
                { slave 0 channel 0 }
                { slave 0 channel 1 }
                { slave 1 channel 0 }
                { slave 1 channel 1 }
                { slave 2 channel 0 }
                { slave 2 channel 1 }
                { slave 3 channel 0 }
                { slave 3 channel 1 }
        ]
}

<confdir:pcm/iec958.conf>

CA0106.pcm.iec958.0 {
         <at> args [ CARD AES0 AES1 AES2 AES3 ]
         <at> args.CARD {
                type string
        }
         <at> args.AES0 {
                type integer
        }
         <at> args.AES1 {
                type integer
        }
         <at> args.AES2 {
                type integer
        }
         <at> args.AES3 {
                type integer
        }
        type hooks
        slave.pcm {
                type hw
                card $CARD
                device 0
        }
        hooks.0 {
                type ctl_elems
                hook_args [
                        {
                                name "SPDIF Front Volume"
                                index 0
                                lock true
                                preserve true
                                value [ 207 207 ]   # Puts 0x30303030 in
the Volume register. 0xff - 0x30 = 0xcf = 207
                        }
                        {
                                name "SPDIF Out"
                                lock true
                                preserve true
                                value 1
                        }
                        {
                                name "IEC958 Playback Default"
                                index 1
                                lock true
                                preserve true
                                value [ $AES0 $AES1 $AES2 $AES3 ]
                        }
                ]
        }
}
Back to top
View user's profile Send private message
serg_sk
Guru
Guru


Joined: 10 Jul 2004
Posts: 315
Location: Ukraine

PostPosted: Fri Jul 15, 2005 5:03 pm    Post subject: Reply with quote

Quote:
скопировать из /usr/share/alsa/cards/чип_карты в домашний каталог

Я подправил сорцы в alsa-lib и это все уже было в /usr/share/alsa/cards/чип_карты :)
А вот если делаю по твоему .asoundrc то у меня вообще звука нет :) Где грабли?
_________________
Sorry for my bad englilsh. :)
irc.freenode.net #fluxbox-ru - Fluxbox russian speaking channel.
Back to top
View user's profile Send private message
EdiG
n00b
n00b


Joined: 05 Apr 2005
Posts: 62
Location: Russia/Moscow

PostPosted: Fri Jul 15, 2005 6:21 pm    Post subject: Reply with quote

/usr/share/alsa/pcm

<confdir:pcm/side.conf>
если что то не надо надо закоментировать строку
например
Code:

#<confdir:pcm/surround71.conf>
#CA0106.pcm.surround71.0 {
#        <at> args [ CARD ]
#       <at> args.CARD {
#              type string
 #       }
 #       type multi
 #       slaves [
 #               {
#                        pcm {
 #                                <at> func concat
  #                              strings [
   #                                     "cards.CA0106.pcm.front.0:CARD="
#$CARD
 #                               ]
   #                     }
     #                   channels 2
       #         }
         #       {
           #             pcm {
             #                    <at> func concat
               #                 strings [
                 #                       "cards.CA0106.pcm.rear.0:CARD="
#$CARD
  #                              ]
    #                    }
      #                  channels 2
        #        }
          #      {
            #            pcm {
              #                   <at> func concat
                #                strings [
#
Back to top
View user's profile Send private message
serg_sk
Guru
Guru


Joined: 10 Jul 2004
Posts: 315
Location: Ukraine

PostPosted: Sat Jul 16, 2005 8:34 pm    Post subject: Reply with quote

Заремил 4.0 и 7.1. В xmms в роли микшера доступен пункт дефаулт. Поставил, звука нету. С сиди тоде не играет. Что опять не так?
_________________
Sorry for my bad englilsh. :)
irc.freenode.net #fluxbox-ru - Fluxbox russian speaking channel.
Back to top
View user's profile Send private message
EdiG
n00b
n00b


Joined: 05 Apr 2005
Posts: 62
Location: Russia/Moscow

PostPosted: Sun Jul 17, 2005 7:27 am    Post subject: Reply with quote

если нет 5.1 7.1 и не нужен surround
то можно уменьшить конфиг до токого.
pcm/iec958.conf должен присутствовать или
скопировать в один буфер все и сохранитьть в .asoundrc
Code:
<confdir:pcm/iec958.conf>

CA0106.pcm.iec958.0 {
         <at> args [ CARD AES0 AES1 AES2 AES3 ]
         <at> args.CARD {
                type string
        }
         <at> args.AES0 {
                type integer
        }
         <at> args.AES1 {
                type integer
        }
         <at> args.AES2 {
                type integer
        }
         <at> args.AES3 {
                type integer
        }
        type hooks
        slave.pcm {
                type hw
                card $CARD
                device 0
        }
        hooks.0 {
                type ctl_elems
                hook_args [
                        {
                                name "SPDIF Front Volume"
                                index 0
                                lock true
                                preserve true
                                value [ 207 207 ]   # Puts 0x30303030 in
the Volume register. 0xff - 0x30 = 0xcf = 207
                        }
                        {
                                name "SPDIF Out"
                                lock true
                                preserve true
                                value 1
                        }
                        {
                                name "IEC958 Playback Default"
                                index 1
                                lock true
                                preserve true
                                value [ $AES0 $AES1 $AES2 $AES3 ]
                        }
                ]
        }
}
Back to top
View user's profile Send private message
serg_sk
Guru
Guru


Joined: 10 Jul 2004
Posts: 315
Location: Ukraine

PostPosted: Sun Jul 17, 2005 2:41 pm    Post subject: Reply with quote

Да понятно это, только после этих действий у меня, например, в xmms'е из микшеров можно выбрать только default. Выбираю его, он говорит, что нету звукового устройства.
_________________
Sorry for my bad englilsh. :)
irc.freenode.net #fluxbox-ru - Fluxbox russian speaking channel.
Back to top
View user's profile Send private message
EdiG
n00b
n00b


Joined: 05 Apr 2005
Posts: 62
Location: Russia/Moscow

PostPosted: Sun Jul 17, 2005 4:01 pm    Post subject: Reply with quote

Code:

emerge -pv xmms-alsa


есть в наличии ?
alsamixer что показывает
Back to top
View user's profile Send private message
serg_sk
Guru
Guru


Joined: 10 Jul 2004
Posts: 315
Location: Ukraine

PostPosted: Sun Jul 17, 2005 6:45 pm    Post subject: Reply with quote

Ну допустим нет. А что делать с остальными программами такими как psi, xchat и т.п.?
Вообщем надоело мне :) Подожду релиза и дождусь когда все из коробки работать будет :)
_________________
Sorry for my bad englilsh. :)
irc.freenode.net #fluxbox-ru - Fluxbox russian speaking channel.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum