市來健吾の日記

プログラマ、(元)物理屋(ナノテク、流体)

High Definition Audio Driver is just working fine.


  • ref: RFC: snd_hda(4) -- Intel High Definition Audio driver @freebsd-multimedia

  • from dmesg,

    pcm0: mem 0xee240000-0xee243fff irq 17 at device 27.0 on pci0

  • sysctl hw.snd.verbose=2 ; cat /dev/sndstat

    hw.snd.verbose: 1 -> 2
    FreeBSD Audio Driver (newpcm)
    Installed devices:
    pcm0: at memory 0xee240000 irq 17 kld snd_hda (1p/1r/4v channels duplex default)
    [pcm0:play:0:dsp0.0]: spd 48000, fmt 0x10000010, flags 0x00101020, 0x00000000
    interrupts 59023, underruns 0, ready 0 [b:16384/8192/2|bs:131072/4096/32]
    {userland} -> feeder_vchan_s16(0x10000010) -> {hardware}
    [pcm0:record:0:dsp0.1]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x00000000
    interrupts 0, overruns 0, hfree 16384, sfree 0 [b:16384/8192/2|bs:0/0/0]
    {hardware} -> feeder_root(0x00000000) -> {userland}
    pcm0:play:0:dsp0.0[pcm0:virtual:0:dsp0.2]: spd 44100/48000, fmt 0x10000010, flags 0x10003030, 0x00000010, pid 944
    interrupts 0, underruns 0, ready 0 [b:0/4096/0|bs:65536/256/256]
    {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware}
    pcm0:play:0:dsp0.0[pcm0:virtual:1:dsp0.3]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000
    interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
    {userland} -> feeder_root(0x00000000) -> {hardware}
    pcm0:play:0:dsp0.0[pcm0:virtual:2:dsp0.4]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000
    interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
    {userland} -> feeder_root(0x00000000) -> {hardware}
    pcm0:play:0:dsp0.0[pcm0:virtual:3:dsp0.5]: spd 0, fmt 0x00000000/0x00000008, flags 0x10000000, 0x00000000
    interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
    {userland} -> feeder_root(0x00000000) -> {hardware}

  • sysctl hw.snd

    hw.snd.report_soft_formats: 1
    hw.snd.targetirqrate: 32
    hw.snd.verbose: 2
    hw.snd.maxautovchans: 4
    hw.snd.unit: 0
    hw.snd.pcm0.buffersize: 16384
    hw.snd.pcm0.vchans: 4

  • /usr/sbin/mixer

    Mixer vol is currently set to 84:84
    Mixer pcm is currently set to 75:75
    Mixer speaker is currently set to 75:75
    Mixer line is currently set to 75:75
    Mixer mic is currently set to 0:0
    Mixer cd is currently set to 75:75
    Mixer rec is currently set to 0:0
    Recording source: mic