Официальный форум СВД Встраиваемые Системы
26 Апрель, 2024, 01:23:05 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.

Войти
 
 
 Сайт СВД ВС  Начало   Помощь Поиск Войти Регистрация  
Страниц: [1]   Вниз
  Печать  
Автор Тема: Realtek ALC886GR HDAudio в QNX4.25  (Прочитано 2058 раз)
Дмитрий
Пользователь

Сообщений: 59


« : 17 Апрель, 2015, 10:01:29 »

Здравствуйте!
Мы купили у вас драйвер Audio2.
Подскажите, поддерживается ли в QNX4.25 и данным драйвером codec Realtek ALC886GR HDAudio   Azalia Device
на встраиваемой плате Kontron's ETX(R)-OH AMD G-Series T56N 2×1.65GHz  AMD A55E FCH
http://www.kontron.com/products/computeronmodules/etx/etxoh/specification

утилита show_pci -vvv показывает отсутствие Audio устройства в системе
Код:

PCI version    = 2.10

Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1510h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 0
Function num   = 0
Status Reg     = 220h
Command Reg    = 6h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Subsystem Vendor ID = 1022h
Subsystem ID        = 1510h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0


Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 9804h,
PCI index      = 0h
Class Code     = 030000h Display (VGA) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 1
Function num   = 0
Status Reg     = 10h
Command Reg    = 7h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 10h un-cacheable
Base Address   = MEM@d0000000h,Prefetchable,32bit length 268435456 IO@f000h length 256 bytes MEM@feb00000h,32bit length 262144
Subsystem Vendor ID = 1022h
Subsystem ID        = 1511h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 1, INT A
Interrupt line = 7
Capabilities Pointer = 50h
Capability ID        = 1h
Capabilities         = 603h - 0h
Capability ID        = 10h
Capabilities         = 92h - 8fa0h
Capability ID        = 5h
Capabilities         = 80h - 0h


Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 1314h,
PCI index      = 0h
Class Code     = 040300h Multimedia (Flash) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 1
Function num   = 1
Status Reg     = 10h
Command Reg    = 7h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 10h un-cacheable
Base Address   = MEM@feb54000h,32bit length 16384
Subsystem Vendor ID = 1022h
Subsystem ID        = 1511h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 2, INT B
Interrupt line = 7
Capabilities Pointer = 50h
Capability ID        = 1h
Capabilities         = 603h - 0h
Capability ID        = 10h
Capabilities         = 92h - 8fa0h
Capability ID        = 5h
Capabilities         = 80h - 0h


Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1512h,
PCI index      = 0h
Class Code     = 060400h Bridge (PCI/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 4
Function num   = 0
Status Reg     = 10h
Command Reg    = 7h
Header type    = 1h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 10h un-cacheable
Primary Bus Number       = 0
Secondary Bus Number     = 1
Subordinate Bus Number   = 1
Secondary Latency Timer  = 0h
I/O Base                 = e1h
I/O Limit                = e1h
Secondary Status         = 2000h
Memory Base              = fea0h
Memory Limit             = fea0h
Prefetchable Memory Base = fff1h
Prefetchable Memory Limit= 1h
Prefetchable Base Upper 32 Bits  = 0h
Prefetchable Limit Upper 32 Bits = 0h
I/O Base Upper 16 Bits   = 0h
I/O Limit Upper 16 Bits  = 0h
Bridge Control           = 10h
PCI Int Pin              = 1, INT A
Interrupt line           = 7


Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1513h,
PCI index      = 0h
Class Code     = 060400h Bridge (PCI/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 5
Function num   = 0
Status Reg     = 10h
Command Reg    = 7h
Header type    = 1h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 10h un-cacheable
Primary Bus Number       = 0
Secondary Bus Number     = 2
Subordinate Bus Number   = 2
Secondary Latency Timer  = 0h
I/O Base                 = d1h
I/O Limit                = d1h
Secondary Status         = 2000h
Memory Base              = fe90h
Memory Limit             = fe90h
Prefetchable Memory Base = fff1h
Prefetchable Memory Limit= 1h
Prefetchable Base Upper 32 Bits  = 0h
Prefetchable Limit Upper 32 Bits = 0h
I/O Base Upper 16 Bits   = 0h
I/O Limit Upper 16 Bits  = 0h
Bridge Control           = 10h
PCI Int Pin              = 1, INT A
Interrupt line           = 7



Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4397h,
PCI index      = 0h
Class Code     = 0c0310h Serial Bus (Universal Serial Bus) ProgIF=16
Revision ID    = 0h
Bus number     = 0
Device number  = 18
Function num   = 0
Status Reg     = 2a0h
Command Reg    = 7h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 20h
Cache Line Size= 10h un-cacheable
Base Address   = MEM@feb5b000h,32bit length 4096
Subsystem Vendor ID = 1002h
Subsystem ID        = 4397h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 1, INT A
Interrupt line = 7


Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4396h,
PCI index      = 0h
Class Code     = 0c0320h Serial Bus (Universal Serial Bus) ProgIF=32
Revision ID    = 0h
Bus number     = 0
Device number  = 18
Function num   = 2
Status Reg     = 2b0h
Command Reg    = 7h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 20h
Cache Line Size= 10h un-cacheable
Base Address   = MEM@feb5a000h,32bit length 256
Subsystem Vendor ID = 1002h
Subsystem ID        = 4396h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 2, INT B
Interrupt line = 7
Capabilities Pointer = c0h
Capability ID        = 1h
Capabilities         = 7e02h - 400000h
Capability ID        = ah
Capabilities         = 20e0h - 0h


Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4397h,
PCI index      = 1h
Class Code     = 0c0310h Serial Bus (Universal Serial Bus) ProgIF=16
Revision ID    = 0h
Bus number     = 0
Device number  = 19
Function num   = 0
Status Reg     = 2a0h
Command Reg    = 7h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 20h
Cache Line Size= 10h un-cacheable
Base Address   = MEM@feb59000h,32bit length 4096
Subsystem Vendor ID = 1002h
Subsystem ID        = 4397h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 1, INT A
Interrupt line = 7


Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4396h,
PCI index      = 1h
Class Code     = 0c0320h Serial Bus (Universal Serial Bus) ProgIF=32
Revision ID    = 0h
Bus number     = 0
Device number  = 19
Function num   = 2
Status Reg     = 2b0h
Command Reg    = 7h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 20h
Cache Line Size= 10h un-cacheable
Base Address   = MEM@feb58000h,32bit length 256
Subsystem Vendor ID = 1002h
Subsystem ID        = 4396h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 2, INT B
Interrupt line = 7
Capabilities Pointer = c0h
Capability ID        = 1h
Capabilities         = 7e02h - 400000h
Capability ID        = ah
Capabilities         = 20e0h - 0h


Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4385h,
PCI index      = 0h
Class Code     = 0c0500h Serial Bus (SMBus) ProgIF=0
Revision ID    = 42h
Bus number     = 0
Device number  = 20
Function num   = 0
Status Reg     = 220h
Command Reg    = 403h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Subsystem Vendor ID = 1002h
Subsystem ID        = 4385h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0

Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4383h,
PCI index      = 0h
Class Code     = 040300h Multimedia (Flash) ProgIF=0
Revision ID    = 40h
Bus number     = 0
Device number  = 20
Function num   = 2
Status Reg     = 410h
Command Reg    = 6h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 20h
Cache Line Size= 10h un-cacheable
Base Address   = MEM@feb50000h,64bit length 16384
Subsystem Vendor ID = 1002h
Subsystem ID        = 4383h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 1, INT A
Interrupt line = 7
Capabilities Pointer = 50h
Capability ID        = 1h
Capabilities         = c842h - 0h


Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 439dh,
PCI index      = 0h
Class Code     = 060100h Bridge (PCI/ISA) ProgIF=0
Revision ID    = 40h
Bus number     = 0
Device number  = 20
Function num   = 3
Status Reg     = 220h
Command Reg    = fh
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Subsystem Vendor ID = 1002h
Subsystem ID        = 439dh
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0


Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4384h,
PCI index      = 0h
Class Code     = 060401h Bridge (PCI/PCI) ProgIF=1
Revision ID    = 40h
Bus number     = 0
Device number  = 20
Function num   = 0
Status Reg     = 2a0h
Command Reg    = 27h
Header type    = 1h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 40h
Cache Line Size= 0h
Primary Bus Number       = 0
Secondary Bus Number     = 3
Subordinate Bus Number   = 3
Secondary Latency Timer  = 40h
I/O Base                 = f0h
I/O Limit                = 0h
Secondary Status         = 2280h
Memory Base              = fff0h
Memory Limit             = 0h
Prefetchable Memory Base = fff0h
Prefetchable Memory Limit= 0h
Prefetchable Base Upper 32 Bits  = 0h
Prefetchable Limit Upper 32 Bits = 0h
I/O Base Upper 16 Bits   = 0h
I/O Limit Upper 16 Bits  = 0h
Bridge Control           = 10h
PCI Int Pin              = 0, NC
Interrupt line           = 0

Vendor ID      = 14e4h,
Device ID      = 1699h,
PCI index      = 0h
Class Code     = 020000h Network (Ethernet) ProgIF=0
Revision ID    = 1h
Bus number     = 0
Device number  = 20
Function num   = 2
Status Reg     = 10h
Command Reg    = 6h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 10h un-cacheable
Base Address   = MEM@feb40000h,64bit length 65536
Subsystem Vendor ID = 14e4h
Subsystem ID        = 1699h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 3, INT C
Interrupt line = 7
Capabilities Pointer = 48h
Capability ID        = 1h
Capabilities         = c003h - a002008h
Capability ID        = 3h
Capabilities         = b4h - ec1bffffh
Capability ID        = 9h
Capabilities         = 6ch - f504465bh
Capability ID        = 5h
Capabilities         = 80h - 202015c8h

Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1700h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 43h
Bus number     = 0
Device number  = 24
Function num   = 0
Status Reg     = 10h
Command Reg    = 0h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0


Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1701h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 24
Function num   = 1
Status Reg     = 0h
Command Reg    = 0h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0

Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1702h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 24
Function num   = 2
Status Reg     = 0h
Command Reg    = 0h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0

Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1703h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 24
Function num   = 3
Status Reg     = 10h
Command Reg    = 0h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0
Capabilities Pointer = f0h
Capability ID        = fh
Capabilities         = 10h - 0h

Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1704h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 24
Function num   = 0
Status Reg     = 0h
Command Reg    = 0h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0


Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1718h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 24
Function num   = 1
Status Reg     = 0h
Command Reg    = 0h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0


Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1716h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 24
Function num   = 2
Status Reg     = 0h
Command Reg    = 0h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0


Vendor ID      = 1022h, Advanced Micro Devices
Device ID      = 1719h,
PCI index      = 0h
Class Code     = 060000h Bridge (Host/PCI) ProgIF=0
Revision ID    = 0h
Bus number     = 0
Device number  = 24
Function num   = 3
Status Reg     = 0h
Command Reg    = 0h
Header type    = 0h Multi-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0


Vendor ID      = 197bh,
Device ID      = 2368h,
PCI index      = 0h
Class Code     = 010185h Mass Storage (IDE) ProgIF=133
Revision ID    = 0h
Bus number     = 1
Device number  = 0
Function num   = 0
Status Reg     = 10h
Command Reg    = 7h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 10h un-cacheable
Base Address   = IO@e040h length 8 bytes IO@e030h length 4 bytes IO@e020h length 8 bytes IO@e010h length 4 bytes IO@e000h length 16 bytes
Subsystem Vendor ID = 197bh
Subsystem ID        = 2368h
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 1, INT A
Interrupt line = 7
Capabilities Pointer = 68h
Capability ID        = 1h
Capabilities         = 2h - 0h
Capability ID        = 10h
Capabilities         = 211h - 0h


Vendor ID      = 197bh,
Device ID      = 2368h,
PCI index      = 1h
Class Code     = 010185h Mass Storage (IDE) ProgIF=133
Revision ID    = 0h
Bus number     = 2
Device number  = 0
Function num   = 0
Status Reg     = 10h
Command Reg    = 7h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 10h un-cacheable
Base Address   = IO@d040h length 8 bytes IO@d030h length 4 bytes IO@d020h length 8 bytes IO@d010h length 4 bytes IO@d000h length 16 bytes
Subsystem Vendor ID = 197bh
Subsystem ID        = 2368h
Expansion ROM  = fe900000h  length 65536 disabled
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 1, INT A
Interrupt line = 7
Capabilities Pointer = 68h
Capability ID        = 1h
Capabilities         = 2h - 0h
Capability ID        = 10h
Capabilities         = 211h - 0h
Capability ID        = 5h
Capabilities         = 0h - 0h


Vendor ID      = 1283h,
Device ID      = 8888h,
PCI index      = 0h
Class Code     = 060100h Bridge (PCI/ISA) ProgIF=0
Revision ID    = 3h
Bus number     = 3
Device number  = 2
Function num   = 0
Status Reg     = 280h
Command Reg    = 7h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 0h
Cache Line Size= 0h

Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = 0, NC
Interrupt line = 0


« Последнее редактирование: 17 Апрель, 2015, 10:11:51 от Дмитрий » Записан
Андрей Докучаев
Сотрудник СВД ВС
Легенда

Сообщений: 1076



WWW
« Ответ #1 : 17 Апрель, 2015, 10:16:54 »

Если верить открытым источникам, то это устройство - HDA контроллер.


Код:
Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 1314h
Записан

Дмитрий
Пользователь

Сообщений: 59


« Ответ #2 : 17 Апрель, 2015, 11:31:34 »

Получилось запустить другое устройство
Код:
Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4397h,
A2.hda -x1002 -y4397
драйвер в системе обнаружился,
A2test звук воспроизводит, но только rate 44100 и rate 48000 bits 16
пробовал A2play с файлом 001.WAV stereo / mono 44100 и 48000 16 бит воспроизводит только шум.
Также пробовал конвертировать файл с другими частотами, но безрезультатно

Что делать, подскажите?
« Последнее редактирование: 17 Апрель, 2015, 16:54:49 от Дмитрий » Записан
Александр Молодцов
Сотрудник СВД ВС
Опытный пользователь

Сообщений: 179

Gravatar


WWW
« Ответ #3 : 17 Апрель, 2015, 17:40:55 »

Здравствуйте, Дмитрий!

Насколько я вижу, у Вас в системе есть два аудио устройства:
1. Контроллер на видеокарте:
Код:
Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 1314h,
PCI index      = 0h
Class Code     = 040300h Multimedia (Flash) ProgIF=0
Этот контроллер предназначен для вывода звука через HDMI. Но в нём используется кодек фирмы AMD/ATI, не поддерживаемые Audio2.

2. Контроллер HD Audio на материнской плате:
Код:
Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4383h,
PCI index      = 0h
Class Code     = 040300h Multimedia (Flash) ProgIF=0
Судя по всему это и есть HDA контроллер с заявленным кодеком Realtek ALC886GR. Этот кодек поддерживается Audio2. Для данного устройства запускать драйвер следует следующим образом:
Код:
# A2.hda -x1002 -y4383

Большинство HD Audio кодеков, в том числе ALC886, поддерживает воспроизведение только в формате 16 бит стерео с частотой дискретизации 44.1 кГц или 48 кГц. Работа с другими форматами не гарантируется.

Пожалуйста, пришлите ваш файл 001.WAV и сообщите какой командой Вы запускаете A2play.
« Последнее редактирование: 17 Апрель, 2015, 17:43:17 от Александр Молодцов » Записан

Дмитрий
Пользователь

Сообщений: 59


« Ответ #4 : 18 Апрель, 2015, 13:38:53 »

Прошу прощения, я ошибся!

Да, именно драйвер устройства

Код:
Vendor ID      = 1002h, ATI TECHNOLOGIES INC
Device ID      = 4383h,
PCI index      = 0h
Class Code     = 040300h Multimedia (Flash) ProgIF=0

я и запускаю
Код:
# A2.hda -x1002 -y4383

a2play запускаю командой

Код:
a2play 001.wav

этот файл я Вам вышлю
Записан
Дмитрий
Пользователь

Сообщений: 59


« Ответ #5 : 20 Апрель, 2015, 10:44:01 »

при запуске

a2play -r48000 -v 1.wav

выводит на экран

Play/record sound files to/from Audio2 sound devices 1.06A
file name : 1.wav
device name : /dev/dsp
channels : 2
sample rate : 48000
sample size : 16
format info : WAVE PCM
ioctl(): Invalid argument
in buffer : 100%

при попытке воспроизвести звук несколько раз подряд, в один из моментов звук воспроизвелся нормально, затем опять шум
« Последнее редактирование: 20 Апрель, 2015, 12:23:16 от Дмитрий » Записан
Александр Молодцов
Сотрудник СВД ВС
Опытный пользователь

Сообщений: 179

Gravatar


WWW
« Ответ #6 : 20 Апрель, 2015, 17:47:04 »

Ответил Вам по электронной почте. Дальнейшие вопросы по данной проблеме предлагаю обсуждать там же.
Записан

Дмитрий
Пользователь

Сообщений: 59


« Ответ #7 : 23 Апрель, 2015, 12:24:38 »

Спасибо за поддержку!

Сообщаю драйверу, что воспроизведение звука нужно делать с параметрами, указанными через IOCTL:
Код:
    
    u_long samplechannels = 2;
    u_long samplebits = 16;
    u_long samplerate=48000;
 
   int dspout = open( "/dev/dsp", 1 );

 if(ioctl(dspout, SOUND_PCM_WRITE_RATE, &samplerate) == -1)
perror("ioctl()");

    if(ioctl(dspout, SOUND_PCM_WRITE_CHANNELS, &samplechannels) == -1)
perror("ioctl()");

if(ioctl(dspout, SOUND_PCM_WRITE_BITS, &samplebits) == -1)
       perror("ioctl()");
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  

Powered by MySQL Powered by PHP © 2002-2024 СВД Встраиваемые Системы.
При использовании материалов сайта ссылка на forum.kpda.ru обязательна.

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines | © Aiwan. Kolobok smiles | Sitemap
Valid XHTML 1.0! Valid CSS!
Сайт СВД ВС

В последний раз google посещал эту страницу 15 Февраль, 2022, 19:06:24