Find the answer to your Linux question:
Results 1 to 10 of 10
hi all, hope this is an easy one, i was wondering how i would go about finding my audio device. for example i know that my hard drive for example ...
  1. #1
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141

    How to find my audio device?

    hi all,

    hope this is an easy one, i was wondering how i would go about finding my audio device. for example i know that my hard drive for example is /dev/hda and cd is /dev/hdc etc. does anyone know how to find my audio device?

    Thanks in advance
    Linux is the OS of tomorrow, Here today!!

  2. #2
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    You can run the lspci and lsmod commands to get some hardware and modules information.

    Code:
    lspci
    lsmod
    ...run man lspci and man lsmod for more info on each command.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141
    hmm, that seemed to work, however im not sure what to do with the output. The reason i ask is because im trying to use rdesktop. In the man pages for rdesktop it says to specify an audio device you need to include
    Code:
    '-r sound:[local[:driver[:device]]|off|remote]': enable sound redirection
    so i imagine that i would need something like rdesktop -f servername -r sound:local:esd:/dev/SOUNDDEVICE


    im just not sure what my sound device is.

    the output is as follows

    Code:
    Module                  Size  Used by
    nls_utf8                1760  0 
    nls_cp437               5568  0 
    vfat                    9152  0 
    fat                    40864  1 vfat
    nls_base                6820  4 nls_utf8,nls_cp437,vfat,fat
    i915                   25280  2 
    drm                    65256  3 i915
    binfmt_misc             7528  1 
    ppdev                   6468  0 
    parport_pc             22500  0 
    lp                      8164  0 
    parport                30988  3 ppdev,parport_pc,lp
    ipv6                  235300  18 
    acpi_cpufreq            6796  0 
    cpufreq_stats           3776  0 
    cpufreq_ondemand        6476  2 
    cpufreq_conservative     5960  0 
    cpufreq_userspace       3172  0 
    freq_table              4224  3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
    cpufreq_powersave       1856  0 
    loop                   12748  0 
    snd_hda_intel         324248  1 
    snd_pcm_oss            32800  0 
    snd_mixer_oss          12320  1 snd_pcm_oss
    snd_pcm                62596  2 snd_hda_intel,snd_pcm_oss
    snd_seq_dummy           2660  0 
    psmouse                32336  0 
    serio_raw               4740  0 
    snd_seq_oss            24992  0 
    i2c_i801                7920  0 
    i2c_core               19828  1 i2c_i801
    video                  16432  0 
    output                  2912  1 video
    snd_seq_midi            5728  0 
    pcspkr                  2432  0 
    snd_rawmidi            18496  1 snd_seq_midi
    eeepc_laptop            7440  0 
    iTCO_wdt                9508  0 
    button                  6096  0 
    snd_seq_midi_event      6432  2 snd_seq_oss,snd_seq_midi
    rng_core                3940  0 
    snd_seq                41456  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
    snd_timer              17800  2 snd_pcm,snd_seq
    snd_seq_device          6380  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
    snd                    45604  11 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    intel_agp              22332  1 
    agpgart                28776  3 drm,intel_agp
    soundcore               6368  1 snd
    snd_page_alloc          7816  2 snd_hda_intel,snd_pcm
    evdev                   8000  5 
    ext3                  105512  1 
    jbd                    39444  1 ext3
    mbcache                 7108  1 ext3
    sd_mod                 22200  3 
    usbhid                 35904  0 
    hid                    33184  1 usbhid
    ff_memless              4392  1 usbhid
    usb_storage            76032  2 
    ata_generic             4676  0 
    ata_piix               14180  0 
    libata                140384  2 ata_generic,ata_piix
    scsi_mod              129356  3 sd_mod,usb_storage,libata
    dock                    8304  1 libata
    ide_pci_generic         3908  0 [permanent]
    ide_core               96168  1 ide_pci_generic
    ehci_hcd               28428  0 
    uhci_hcd               18672  0 
    usbcore               118160  5 usbhid,usb_storage,ehci_hcd,uhci_hcd
    r8169                  23684  0 
    thermal                15228  0 
    processor              32576  4 acpi_cpufreq,thermal
    fan                     4164  0 
    thermal_sys            10856  4 video,thermal,processor,fan
    any suggestions at to what my audio device would be?


    thanks
    Linux is the OS of tomorrow, Here today!!

  4. #4
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,941
    any suggestions at to what my audio device would be?
    lspci should give you your soundcard mine is under multimedia controller

    Code:
    ~ $ lspci
    00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 04)
    00:01.0 PCI bridge: Intel Corporation 82830 830 Chipset AGP Bridge (rev 04)
    00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB Controller #3 (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42)
    00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02)
    00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801CA/CAM SMBus Controller (rev 02)
    00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 02)
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  5. #5
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,941
    For more detailed info you can use

    Code:
    sudo lshw
    This is what mine looks like with that command

    Code:
     sudo lshw
                
        description: Notebook
        product: 26474MU
        vendor: IBM
        version: Not Available
        serial: 78MVPVV
        width: 32 bits
        capabilities: smbios-2.31 dmi-2.31
        configuration: boot=normal chassis=notebook uuid=66EA8601-457F-11CB-BDB2-9C486C1DAD90
      *-core
           description: Motherboard
           product: 26474MU
           vendor: IBM
           physical id: 0
           version: Not Available
           serial: J1LVN27W1BM
           slot: �
         *-firmware
              description: BIOS
              vendor: IBM
              physical id: 0
              version: 1AET64WW (1.20 ) (10/18/2006)
              size: 144KiB
              capacity: 960KiB
              capabilities: pci pcmcia pnp apm upgrade shadowing escd cdboot bootselect pcmciaboot edd int13floppy720 int5printscreen int9keyboard int14serial int17printer int10video acpi agp ls120boot biosbootspecification
         *-cpu
              description: CPU
              product: Mobile Intel(R) Pentium(R) III CPU - M  1200MHz
              vendor: Intel Corp.
              physical id: 6
              bus info: cpu@0
              version: 6.11.4
              slot: None
              size: 1197MHz
              capacity: 1200MHz
              width: 32 bits
              clock: 133MHz
              capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up cpufreq
            *-cache:0
                 description: L1 cache
                 physical id: a
                 slot: Internal L1 Cache
                 size: 32KiB
                 capacity: 32KiB
                 capabilities: synchronous internal write-back
            *-cache:1
                 description: L2 cache
                 physical id: b
                 slot: Internal L2 Cache
                 size: 512KiB
                 capacity: 512KiB
                 capabilities: burst internal write-back unified
         *-memory
              description: System Memory
              physical id: 26
              slot: System board or motherboard
              size: 1GiB
            *-bank:0
                 description: SODIMM SDRAM Synchronous
                 physical id: 0
                 slot: DIMM 1
                 size: 512MiB
                 width: 64 bits
            *-bank:1
                 description: SODIMM SDRAM Synchronous
                 physical id: 1
                 slot: DIMM 2
                 size: 512MiB
                 width: 64 bits
         *-pci
              description: Host bridge
              product: 82830 830 Chipset Host Bridge
              vendor: Intel Corporation
              physical id: 100
              bus info: pci@0000:00:00.0
              version: 04
              width: 32 bits
              clock: 33MHz
              configuration: driver=agpgart-intel module=intel_agp
            *-pci:0
                 description: PCI bridge
                 product: 82830 830 Chipset AGP Bridge
                 vendor: Intel Corporation
                 physical id: 1
                 bus info: pci@0000:00:01.0
                 version: 04
                 width: 32 bits
                 clock: 66MHz
                 capabilities: pci bus_master
               *-display UNCLAIMED
                    description: VGA compatible controller
                    product: SuperSavage IX/C SDR
                    vendor: S3 Inc.
                    physical id: 0
                    bus info: pci@0000:01:00.0
                    version: 05
                    width: 32 bits
                    clock: 66MHz
                    capabilities: pm agp agp-2.0 bus_master cap_list
                    configuration: latency=64 maxlatency=255 mingnt=4
            *-usb:0
                 description: USB Controller
                 product: 82801CA/CAM USB Controller #1
                 vendor: Intel Corporation
                 physical id: 1d
                 bus info: pci@0000:00:1d.0
                 version: 02
                 width: 32 bits
                 clock: 33MHz
                 capabilities: bus_master
                 configuration: driver=uhci_hcd latency=0 module=uhci_hcd
            *-usb:1
                 description: USB Controller
                 product: 82801CA/CAM USB Controller #2
                 vendor: Intel Corporation
                 physical id: 1d.1
                 bus info: pci@0000:00:1d.1
                 version: 02
                 width: 32 bits
                 clock: 33MHz
                 capabilities: bus_master
                 configuration: driver=uhci_hcd latency=0 module=uhci_hcd
            *-usb:2
                 description: USB Controller
                 product: 82801CA/CAM USB Controller #3
                 vendor: Intel Corporation
                 physical id: 1d.2
                 bus info: pci@0000:00:1d.2
                 version: 02
                 width: 32 bits
                 clock: 33MHz
                 capabilities: bus_master
                 configuration: driver=uhci_hcd latency=0 module=uhci_hcd
            *-pci:1
                 description: PCI bridge
                 product: 82801 Mobile PCI Bridge
                 vendor: Intel Corporation
                 physical id: 1e
                 bus info: pci@0000:00:1e.0
                 version: 42
                 width: 32 bits
                 clock: 33MHz
                 capabilities: pci bus_master
               *-pcmcia:0
                    description: CardBus bridge
                    product: PCI1420 PC card Cardbus Controller
                    vendor: Texas Instruments
                    physical id: 0
                    bus info: pci@0000:02:00.0
                    version: 00
                    width: 32 bits
                    clock: 33MHz
                    capabilities: pcmcia bus_master cap_list
                    configuration: driver=yenta_cardbus latency=176 maxlatency=5 mingnt=192 module=yenta_socket
               *-pcmcia:1
                    description: CardBus bridge
                    product: PCI1420 PC card Cardbus Controller
                    vendor: Texas Instruments
                    physical id: 0.1
                    bus info: pci@0000:02:00.1
                    version: 00
                    width: 32 bits
                    clock: 33MHz
                    capabilities: pcmcia bus_master cap_list
                    configuration: driver=yenta_cardbus latency=176 maxlatency=5 module=yenta_socket
               *-communication UNCLAIMED
                    description: Communication controller
                    product: WinModem 56k
                    vendor: Agere Systems
                    physical id: 2
                    bus info: pci@0000:02:02.0
                    version: 01
                    width: 32 bits
                    clock: 33MHz
                    capabilities: pm bus_master cap_list
                    configuration: latency=0 maxlatency=14 mingnt=252
               *-network
                    description: Ethernet interface
                    product: 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller
                    vendor: Intel Corporation
                    physical id: 8
                    bus info: pci@0000:02:08.0
                    logical name: eth0
                    version: 42
                    serial: 00:d0:59:cc:ba:8a
                    size: 10MB/s
                    capacity: 100MB/s
                    width: 32 bits
                    clock: 33MHz
                    capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
                    configuration: autonegotiation=on broadcast=yes driver=e100 driverversion=3.5.23-k4-NAPI duplex=half firmware=N/A latency=66 link=no maxlatency=56 mingnt=8 module=e100 multicast=yes port=MII speed=10MB/s
            *-isa
                 description: ISA bridge
                 product: 82801CAM ISA Bridge (LPC)
                 vendor: Intel Corporation
                 physical id: 1f
                 bus info: pci@0000:00:1f.0
                 version: 02
                 width: 32 bits
                 clock: 33MHz
                 capabilities: isa bus_master
                 configuration: latency=0
            *-ide
                 description: IDE interface
                 product: 82801CAM IDE U100 Controller
                 vendor: Intel Corporation
                 physical id: 1f.1
                 bus info: pci@0000:00:1f.1
                 logical name: scsi0
                 logical name: scsi1
                 version: 02
                 width: 32 bits
                 clock: 33MHz
                 capabilities: ide bus_master emulated
                 configuration: driver=ata_piix latency=0 module=ata_piix
               *-disk
                    description: ATA Disk
                    product: ST980815A
                    vendor: Seagate
                    physical id: 0
                    bus info: scsi@0:0.0.0
                    logical name: /dev/sda
                    version: 3.AL
                    serial: 5LY3WEDN
                    size: 74GiB (80GB)
                    capabilities: partitioned partitioned:dos
                    configuration: ansiversion=5 signature=fa4827d6
                  *-volume:0
                       description: Windows NTFS volume
                       physical id: 1
                       bus info: scsi@0:0.0.0,1
                       logical name: /dev/sda1
                       logical name: /media/sda1
                       version: 3.0
                       serial: 10be0ff8-9dc9-3f49-bca6-3162d5247022
                       size: 43GiB
                       capacity: 43GiB
                       capabilities: primary bootable ntfs initialized
                       configuration: clustersize=4096 created=2009-02-12 19:20:41 filesystem=ntfs mount.fstype=fuseblk mount.options=rw,nosuid,nodev,user_id=0,group_id=0,allow_other,blksize=4096 state=mounted
                  *-volume:1
                       description: EXT3 volume
                       vendor: Linux
                       physical id: 2
                       bus info: scsi@0:0.0.0,2
                       logical name: /dev/sda2
                       version: 1.0
                       serial: 9a285182-5c9c-46ad-a938-8bd42ca817e5
                       size: 15GiB
                       capacity: 15GiB
                       capabilities: primary journaled extended_attributes large_files huge_files recover ext3 ext2 initialized
                       configuration: created=2009-03-11 03:34:03 filesystem=ext3 modified=2009-03-29 10:25:43 mounted=2009-03-29 07:28:04 state=clean
                  *-volume:2
                       description: Linux swap volume
                       physical id: 3
                       bus info: scsi@0:0.0.0,3
                       logical name: /dev/sda3
                       version: 1
                       serial: f373eccc-6ea5-4a88-81eb-78498103c520
                       size: 996MiB
                       capacity: 996MiB
                       capabilities: primary nofs swap initialized
                       configuration: filesystem=swap pagesize=4096
                  *-volume:3
                       description: EXT3 volume
                       vendor: Linux
                       physical id: 4
                       bus info: scsi@0:0.0.0,4
                       logical name: /dev/sda4
                       logical name: /
                       logical name: /dev/.static/dev
                       version: 1.0
                       serial: 89c6f7d2-27b8-4169-804d-c3565fb40383
                       size: 14GiB
                       capacity: 14GiB
                       capabilities: primary journaled extended_attributes large_files huge_files recover ext3 ext2 initialized
                       configuration: created=2009-03-18 15:08:29 filesystem=ext3 modified=2009-03-29 17:08:01 mount.fstype=ext3 mount.options=ro,errors=remount-ro,data=ordered mounted=2009-03-29 17:08:01 state=mounted
               *-cdrom
                    description: DVD reader
                    product: DVD-ROM SR-8176
                    vendor: MATSHITA
                    physical id: 1
                    bus info: scsi@1:0.0.0
                    logical name: /dev/cdrom
                    logical name: /dev/dvd
                    logical name: /dev/scd0
                    logical name: /dev/sr0
                    version: LB36
                    serial: [MATSHITADVD-ROM SR-8176 LB36PP  09/20/01+
                    capabilities: removable audio dvd
                    configuration: ansiversion=5 status=nodisc
            *-serial UNCLAIMED
                 description: SMBus
                 product: 82801CA/CAM SMBus Controller
                 vendor: Intel Corporation
                 physical id: 1f.3
                 bus info: pci@0000:00:1f.3
                 version: 02
                 width: 32 bits
                 clock: 33MHz
                 configuration: latency=0
            *-multimedia
                 description: Multimedia audio controller
                 product: 82801CA/CAM AC'97 Audio Controller
                 vendor: Intel Corporation
                 physical id: 1f.5
                 bus info: pci@0000:00:1f.5
                 version: 02
                 width: 32 bits
                 clock: 33MHz
                 capabilities: bus_master
                 configuration: driver=Intel ICH latency=0 module=snd_intel8x0
         *-network
              description: Wireless interface
              product: RT2561/RT61 802.11g PCI
              vendor: RaLink
              physical id: 1
              bus info: pci@0000:07:00.0
              logical name: wmaster0
              version: 00
              serial: 00:11:50:dd:3b:c0
              width: 32 bits
              clock: 33MHz
              capabilities: pm bus_master cap_list logical ethernet physical wireless
              configuration: broadcast=yes driver=rt61pci ip=192.168.2.5 latency=64 module=rt61pci multicast=yes wireless=IEEE 802.11bg
      *-network DISABLED
           description: Ethernet interface
           physical id: 1
           logical name: pan0
           serial: 1e:52:f2:a8:a1:e6
           capabilities: ethernet physical
           configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=yes multicast=yes
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  6. #6
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141
    the output is lspci

    Code:
     lspci
    00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03)
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
    00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
    00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
    00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
    00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
    00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
    00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
    00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
    03:00.0 Network controller: RaLink Device 0781
    04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
    so my audio device would be
    Code:
    00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
    how would i pass that into the rdesktop syntax of
    Code:
    rdesktop -f servername -r sound:local:esd:/dev/SOUNDDEVICE
    thanks
    Linux is the OS of tomorrow, Here today!!

  7. #7
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,941
    I don't run rdesktop so I won't be much help there. Maybe somebody else can chimr in or these threads will help maybe?

    http://www.linuxforums.org/forum/deb...n-machine.html

    HowToForums.net :: View topic - HowTo install rdesktop 1.5 including SeamLess Windows

    Debian alternatives for rdesktop

    Rdesktop - Debian Wiki

    Sorry I can't be of more help to ya.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  8. #8
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141
    FIXED Audio Over Rdesktop from Server 2008

    This one took a while, but after many hours of research a google junkie from work gave me a suggestion. "try adding -r disk:Z/mnt" to the command.


    Guess What...... It Worked.

    So my Rdesktop 1.6.0 command is now,

    Code:
     rdesktop -f server-IP -r sound:local -r disk:Z/mnt  -r disk:USB=/media

    Hopefully this helps someone having issues with Server 208 and Audio Redirection.
    Linux is the OS of tomorrow, Here today!!

  9. #9
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6

    Post

    First try:
    rdesktop -r sound:local
    rdesktop -r sound:local:esd
    rdesktop -r sound:local:oss
    rdesktop -r sound:local:alsa

    If you think you need device files try:
    ls /dev/dsp /dev/snd/control* /dev/snd/pcm*

    There may be others in /dev or /dev/snd

  10. #10
    Linux Newbie lugoteehalt's Avatar
    Join Date
    Jan 2004
    Posts
    231
    Looked up this thread because I needed to know what the /dev sound device was. Have found out how to do it. So for the record:

    OSS device /dev/dsp and perhaps /dev/dsp1 etc..

    ALSA All the alsa sound devices are in the directory /dev/snd so 'ls /dev/snd' will list them.

    To find out which ones are being used, you might have got a message that it can't be used because it's being used by another program for example. 'lsof|grep snd'.
    All power is violence; all power is evil.
    Money As Debt

Posting Permissions

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