Find the answer to your Linux question:
Results 1 to 3 of 3
I will give a list of my current status of all my Sound configuration files. If someone could glance over them and see were my sound configuration has gone wrong ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2005
    Posts
    4

    ALSA config wrong. Need help reconfiguring for a AK5370 USB mic as a second dev


    I will give a list of my current status of all my Sound configuration files. If someone could glance over them and see were my sound configuration has gone wrong I would appreciate it . I have a feeling that there is something wrong with my ALSA.CONF file and that will be posted last: Again my soundcard is : Card -0 my usb mic is: Card-1 and is listed under capture devices and it is not muted with gain at 100 which I check using alsamixer -c 1 command:

    Anyone that has a working AK5370 usb mic if they could post a copy of their config files listed below it might help.(if you have them. A lot of people are not using dmix or dsnoop) Here is a list of config files That might prove to be helpful to me or someone helping me:

    1)modprobe.conf
    2)asoundrc
    3)asound
    4)dmix
    5)dsnoop
    6)alsa.conf

    Here are my config files that are relevant to alsa:

    modprobe.conf

    # modprobe.conf
    alias eth0 forcedeth

    # --- BEGIN: Generated by ALSACONF, do not edit. ---
    # --- ALSACONF version 1.0.10 ---

    alias char-major-116* snd
    alias snd-card-1 snd-usb-audio
    options snd-usb-audio index=-2

    alias char-major-14* soundcore
    alias sound-slot-1 snd-card-1
    alias sound-service-1-0 snd-mixer-oss
    alias sound-service-1-1 snd-seq-oss
    alias sound-service-1-3 snd-pcm-oss
    alias sound-service-1-8 snd-seq-oss
    alias sound-service-1-12 snd-pcm-oss

    alias snd-card-0 snd-intel8x0
    alias sound-slot-0 snd-intel8x0
    options snd-via82xx index=0
    alias sound-service-0-0 snd-mixer-oss
    alias sound-service-0-1 snd-seq-oss
    alias sound-service-0-3 snd-pcm-oss
    alias sound-service-0-8 snd-seq-oss
    alias sound-service-0-12 snd-pcm-oss
    # --- END: Generated by ALSACONF, do not edit. ---


    Here is my asoundrc. There may be something wrong with my dsnoop. Check out the pcm whic says hw 1, 0 which is Card 1 but the ipc key could be wrong. I know little about ipc keys so if someone could educated me on what to change it (if needed) to I would be appreciative. I am also concerned at the format = S16_LE -- is that correct?


    asoundrc
    #
    pcm.!dmix {
    type dmix
    ipc_key 5678293
    ipc_key_add_uid yes
    slave {
    pcm "hw:0,0"
    format S16_LE
    rate 44100
    }
    }
    pcm.!dsnoop {
    type dsnoop
    ipc_key 5778293
    ipc_key_add_uid yes
    slave {
    pcm "hw:1,0"
    format S16_LE
    rate 44100
    }
    }

    And here is my current asound file I know the asoundrc file is supposed to override the asound file but I will put it in anyway.

    asound.conf

    pcm.!default {
    type plug
    slave.pcm "swmixer"
    }

    pcm.swmixer {
    type dmix
    ipc_key 1234
    slave {
    pcm "hw:0,0"
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 44100
    }
    }

  2. #2
    Just Joined!
    Join Date
    May 2005
    Posts
    4

    Alsa configuration -continued My dmix and dsnoop files

    Here is my dmix, dsnoop, a. I have no clue if any of the below info is correct or how it pertains to
    Card -0 or Card -1. It looks like dmixer and dsnoop are carbon copies of each other with the exception of their names. Not sure if that is correct either

    One other thing before you look at these files: When I tried using arecord using hw: 1,0 I got an error message stated that dmix device is for playback only. Shouldn't arecord be using dsnoop? Just a thought.

    dmixer:

    #
    # dmix output
    #

    pcm.!dmix {
    @args [ CARD DEV SUBDEV FORMAT RATE ]
    @args.CARD {
    type string
    default 0
    }
    @args.DEV {
    type string
    default 0
    }
    @args.SUBDEV {
    type string
    default -1
    }
    @args.FORMAT {
    type string
    default S16_LE
    }
    @args.RATE {
    type integer
    default 48000
    }
    type dmix
    ipc_key 5678293
    ipc_gid audio
    ipc_perm 0660
    slave {
    pcm {
    type hw
    card $CARD
    device $DEV
    subdevice $SUBDEV
    }
    format $FORMAT
    rate $RATE
    period_size {
    @func refer
    name {
    @func concat
    strings [
    "cards."
    {
    @func card_driver
    card $CARD
    }
    ".pcm.dmix.period_size"
    ]
    }
    default 1024
    }
    period_time {
    @func refer
    name {
    @func concat
    strings [
    "cards."
    {
    @func card_driver
    card $CARD
    }
    ".pcm.dmix.period_time"
    ]
    }
    default -1
    }
    periods {
    @func refer
    name {
    @func concat
    strings [
    "cards."
    {
    @func card_driver
    card $CARD
    }
    ".pcm.dmix.periods"
    ]
    }
    default 16
    }
    }
    }


    Here is my dsnoop:


    #
    # dsnoop
    #

    pcm.!dsnoop {
    @args [ CARD DEV SUBDEV FORMAT RATE ]
    @args.CARD {
    type string
    default 0
    }
    @args.DEV {
    type string
    default 0
    }
    @args.SUBDEV {
    type string
    default -1
    }
    @args.FORMAT {
    type string
    default S16
    }
    @args.RATE {
    type integer
    default 48000
    }
    type dsnoop
    ipc_key 5778293
    ipc_gid audio
    ipc_perm 0660
    slave {
    pcm {
    type hw
    card $CARD
    device $DEV
    subdevice $SUBDEV
    }
    format $FORMAT
    rate $RATE
    period_size {
    @func refer
    name {
    @func concat
    strings [
    "cards."
    {
    @func card_driver
    card $CARD
    }
    ".pcm.dsnoop.period_size"
    ]
    }
    default 1024
    }
    period_time {
    @func refer
    name {
    @func concat
    strings [
    "cards."
    {
    @func card_driver
    card $CARD
    }
    ".pcm.dsnoop.period_time"
    ]
    }
    default -1
    }
    periods {
    @func refer
    name {
    @func concat
    strings [
    "cards."
    {
    @func card_driver
    card $CARD
    }
    ".pcm.dsnoop.periods"
    ]
    }
    default 16
    }
    }
    }

  3. #3
    Just Joined!
    Join Date
    May 2005
    Posts
    4

    Alsa configuration -continued my Alsa.conf files

    Last but not least is my alsa.conf file. This is the file I know very little about and not sure how both my soundcards are supposed to be portrayed. If someone could look at this to see if it is portraying my sound devices correctly I would be appreciative.


    #
    # ALSA library configuration file
    #

    # pre-load the configuration files

    @hooks [
    {
    func load
    files [
    "/etc/asound.conf"
    "~/.asoundrc"
    ]
    errors false
    }
    ]

    # load card-specific configuration files (on request)

    cards.@hooks [
    {
    func load
    files [
    {
    @func concat
    strings [
    { @func datadir }
    "/cards/aliases.conf"
    ]
    }
    ]
    }
    {
    func load_for_all_cards
    files [
    {
    @func concat
    strings [
    { @func datadir }
    "/cards/"
    { @func private_string }
    ".conf"
    ]
    }
    ]
    errors false
    }
    ]

    # defaults

    defaults.ctl.card 0
    defaults.pcm.card 0
    defaults.pcm.device 0
    defaults.pcm.subdevice -1
    defaults.pcm.front.card defaults.pcm.card
    defaults.pcm.front.device defaults.pcm.device
    defaults.pcm.rear.card defaults.pcm.card
    defaults.pcm.rear.device defaults.pcm.device
    defaults.pcm.center_lfe.card defaults.pcm.card
    defaults.pcm.center_lfe.device defaults.pcm.device
    defaults.pcm.side.card defaults.pcm.card
    defaults.pcm.side.device defaults.pcm.device
    defaults.pcm.surround40.card defaults.pcm.card
    defaults.pcm.surround40.device defaults.pcm.device
    defaults.pcm.surround41.card defaults.pcm.card
    defaults.pcm.surround41.device defaults.pcm.device
    defaults.pcm.surround50.card defaults.pcm.card
    defaults.pcm.surround50.device defaults.pcm.device
    defaults.pcm.surround51.card defaults.pcm.card
    defaults.pcm.surround51.device defaults.pcm.device
    defaults.pcm.surround71.card defaults.pcm.card
    defaults.pcm.surround71.device defaults.pcm.device
    defaults.pcm.iec958.card defaults.pcm.card
    defaults.pcm.iec958.device defaults.pcm.device
    defaults.pcm.modem.card defaults.pcm.card
    defaults.pcm.modem.device defaults.pcm.device
    defaults.rawmidi.card 0
    defaults.rawmidi.device 0
    defaults.rawmidi.subdevice -1
    defaults.hwdep.card 0
    defaults.hwdep.device 0
    defaults.timer.class 2
    defaults.timer.sclass 0
    defaults.timer.card 0
    defaults.timer.device 0
    defaults.timer.subdevice 0

    #
    # PCM interface
    #

    pcm.hw {
    @args [ CARD DEV SUBDEV ]
    @args.CARD {
    type string
    default {
    @func getenv
    vars [
    ALSA_PCM_CARD
    ALSA_CARD
    ]
    default {
    @func refer
    name defaults.pcm.card
    }
    }
    }
    @args.DEV {
    type integer
    default {
    @func igetenv
    vars [
    ALSA_PCM_DEVICE
    ]
    default {
    @func refer
    name defaults.pcm.device
    }
    }
    }
    @args.SUBDEV {
    type integer
    default {
    @func refer
    name defaults.pcm.subdevice
    }
    }
    type hw
    card $CARD
    device $DEV
    subdevice $SUBDEV
    }

    pcm.plughw {
    @args [ CARD DEV SUBDEV ]
    @args.CARD {
    type string
    default {
    @func getenv
    vars [
    ALSA_PCM_CARD
    ALSA_CARD
    ]
    default {
    @func refer
    name defaults.pcm.card
    }
    }
    }
    @args.DEV {
    type integer
    default {
    @func igetenv
    vars [
    ALSA_PCM_DEVICE
    ]
    default {
    @func refer
    name defaults.pcm.device
    }
    }
    }
    @args.SUBDEV {
    type integer
    default {
    @func refer
    name defaults.pcm.subdevice
    }
    }
    type plug
    slave.pcm {
    type hw
    card $CARD
    device $DEV
    subdevice $SUBDEV
    }
    }

    pcm.plug {
    @args [ SLAVE ]
    @args.SLAVE {
    type string
    }
    type plug
    slave.pcm $SLAVE
    }

    pcm.shm {
    @args [ SOCKET PCM ]
    @args.SOCKET {
    type string
    }
    @args.PCM {
    type string
    }
    type shm
    server $SOCKET
    pcm $PCM
    }

    pcm.tee {
    @args [ SLAVE FILE FORMAT ]
    @args.SLAVE {
    type string
    }
    @args.FILE {
    type string
    }
    @args.FORMAT {
    type string
    default raw
    }
    type file
    slave.pcm $SLAVE
    file $FILE
    format $FORMAT
    }

    pcm.file {
    @args [ FILE FORMAT ]
    @args.FILE {
    type string
    }
    @args.FORMAT {
    type string
    default raw
    }
    type file
    slave.pcm null
    file $FILE
    format $FORMAT
    }

    pcm.null {
    type null
    }

    # redirect to load-on-demand extended pcm definitions
    pcm.cards cards.pcm
    # some links for easy use
    pcm.front cards.pcm.front
    pcm.rear cards.pcm.rear
    pcm.center_lfe cards.pcm.center_lfe
    pcm.side cards.pcm.side
    pcm.surround40 cards.pcm.surround40
    pcm.surround41 cards.pcm.surround41
    pcm.surround50 cards.pcm.surround50
    pcm.surround51 cards.pcm.surround51
    pcm.surround71 cards.pcm.surround71
    pcm.iec958 cards.pcm.iec958
    pcm.spdif cards.pcm.iec958
    pcm.modem cards.pcm.modem
    pcm.phoneline cards.pcm.phoneline

    pcm.default cards.pcm.default
    pcm.dmix cards.pcm.dmix
    pcm.dsnoop cards.pcm.dsnoop

    #
    # Control interface
    #

    ctl.hw {
    @args[ CARD ]
    @args.CARD {
    type string
    default {
    @func getenv
    vars [
    ALSA_CTL_CARD
    ALSA_CARD
    ]
    default {
    @func refer
    name defaults.ctl.card
    }
    }
    }
    type hw
    card $CARD
    }

    ctl.shm {
    @args [ SOCKET CTL ]
    @args.SOCKET {
    type string
    }
    @args.CTL {
    type string
    }
    type shm
    server $SOCKET
    ctl $CTL
    }

    ctl.default {
    type hw
    card {
    @func getenv
    vars [
    ALSA_CTL_CARD
    ALSA_CARD
    ]
    default {
    @func refer
    name defaults.ctl.card
    }
    }
    }

    #
    # RawMidi interface
    #

    rawmidi.hw {
    @args [ CARD DEV SUBDEV ]
    @args.CARD {
    type string
    default {
    @func getenv
    vars [
    ALSA_RAWMIDI_CARD
    ALSA_CARD
    ]
    default {
    @func refer
    name defaults.rawmidi.card
    }
    }
    }
    @args.DEV {
    type integer
    default {
    @func igetenv
    vars [
    ALSA_RAWMIDI_DEVICE
    ]
    default {
    @func refer
    name defaults.rawmidi.device
    }
    }
    }
    @args.SUBDEV {
    type integer
    default -1
    }
    type hw
    card $CARD
    device $DEV
    subdevice $SUBDEV
    }

    rawmidi.default {
    type hw
    card {
    @func getenv
    vars [
    ALSA_RAWMIDI_CARD
    ALSA_CARD
    ]
    default {
    @func refer
    name defaults.rawmidi.card
    }
    }
    device {
    @func igetenv
    vars [
    ALSA_RAWMIDI_DEVICE
    ]
    default {
    @func refer
    name defaults.rawmidi.device
    }
    }
    }

    rawmidi.virtual {
    @args [ MERGE ]
    @args.MERGE {
    type string
    default 1
    }
    type virtual
    merge $MERGE
    }

    #
    # Sequencer interface
    #

    seq.default {
    type hw
    }

    seq.hw {
    type hw
    }

    #
    # HwDep interface
    #

    hwdep.hw {
    @args [ CARD DEV ]
    @args.CARD {
    type string
    default {
    @func getenv
    vars [
    ALSA_HWDEP_CARD
    ALSA_CARD
    ]
    default {
    @func refer
    name defaults.hwdep.card
    }
    }
    }
    @args.DEV {
    type integer
    default {
    @func igetenv
    vars [
    ALSA_HWDEP_DEVICE
    ]
    default {
    @func refer
    name defaults.hwdep.device
    }
    }
    }
    type hw
    card $CARD
    device $DEV
    }

    hwdep.default {
    type hw
    card {
    @func getenv
    vars [
    ALSA_HWDEP_CARD
    ALSA_CARD
    ]
    default {
    @func refer
    name defaults.hwdep.card
    }
    }
    device {
    @func igetenv
    vars [
    ALSA_HWDEP_DEVICE
    ]
    default {
    @func refer
    name defaults.hwdep.device
    }
    }
    }

    #
    # Timer interface
    #

    timer_query.hw {
    type hw
    }

    timer_query.default {
    type hw
    }

    timer.hw {
    @args [ CLASS SCLASS CARD DEV SUBDEV ]
    @args.CLASS {
    type integer
    default {
    @func refer
    name defaults.timer.class
    }
    }
    @args.SCLASS {
    type integer
    default {
    @func refer
    name defaults.timer.sclass
    }
    }
    @args.CARD {
    type string
    default {
    @func refer
    name defaults.timer.card
    }
    }
    @args.DEV {
    type integer
    default {
    @func refer
    name defaults.timer.device
    }
    }
    @args.SUBDEV {
    type integer
    default {
    @func refer
    name defaults.timer.subdevice
    }
    }
    type hw
    class $CLASS
    sclass $SCLASS
    card $CARD
    device $DEV
    subdevice $SUBDEV
    }

    timer.default {
    type hw
    class {
    @func refer
    name defaults.timer.class
    }
    sclass {
    @func refer
    name defaults.timer.sclass
    }
    card {
    @func refer
    name defaults.timer.card
    }
    device {
    @func refer
    name defaults.timer.device
    }
    subdevice {
    @func refer
    name defaults.timer.subdevice
    }
    }

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •