USB-Audio: ASUS ROG Zenith II S/PDIF output mapped to wrong PCM device

オープン 初心者向け
#532 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@byrcolin がすでに取り組んでいます。

2026年10月14日 から。

  • #533 @byrcolin による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c, linux

調査の方向性

修正箇所は src/conf/cards/USB-Audio.conf の iec958_device テーブルです。そこにカード名のエントリを2つ追加し、既存のエントリと、デバイスなしを表す値 999 がどのように書かれているかを確認してください。検証には ASUS ボードまたは同様の USB カードが必要です。aplay -D iec958:CARD=Audio -v を実行し、デバイス 1 と報告されることを確認してください。マッピングが設定され、フロントヘッドホンのコーデックが IEC958 出力を公開しなくなった時点で完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

On the ASUS ROG Zenith II Extreme (TRX40), the iec958: PCM for the onboard USB codec "Zenith II Main Audio" (0b05:1916, Realtek ALC1220-VB) opens PCM device 0. On this board device 0 is the 8-channel analog output; the optical S/PDIF output is PCM device 1. As a result, the "Digital Stereo (IEC958)" output in PipeWire/PulseAudio plays to the analog jacks and the S/PDIF port is silent.

The second onboard codec, "Zenith II Front Headphone" (0b05:1915), has a single analog playback device and no digital output, but iec958: still opens it, so PipeWire/PulseAudio list a digital output for it that does not work.

Neither card is listed in USB-Audio.pcm.iec958_device in src/conf/cards/USB-Audio.conf, so both fall back to device 0.

Hardware

$ cat /proc/asound/cards
 0 [Audio          ]: USB-Audio - Zenith II Main Audio
 4 [Headphone      ]: USB-Audio - Zenith II Front Headphone

$ aplay -l   (card 0 and 4 only)
card 0: Audio [Zenith II Main Audio], device 0: USB Audio [USB Audio]
card 0: Audio [Zenith II Main Audio], device 1: USB Audio [USB Audio #1]
card 0: Audio [Zenith II Main Audio], device 3: USB Audio [USB Audio #3]
card 4: Headphone [Zenith II Front Headphone], device 0: USB Audio [USB Audio]

/proc/asound/card0/stream0 (device 0): interface 4, 2/4/6/8 channels, 8-channel map FL FR FC LFE RL RR FLC FRC (analog).
/proc/asound/card0/stream1 (device 1): interface 5, 2 channels, 44.1–192 kHz (S/PDIF).

Expected

iec958:CARD=Audio opens hw:0,1, and the front headphone codec does not expose an IEC958 output.

Fix

Add the two cards to the iec958_device table:

"Zenith II Main Audio" 1
"Zenith II Front Headphone" 999

With this mapping (applied locally via ~/.asoundrc), aplay -D iec958:CARD=Audio -v reports Hardware PCM card 0 'Zenith II Main Audio' device 1, PipeWire's IEC958 sink plays over optical S/PDIF, and the front headphone codec shows up as analog stereo only.

Tested on AlmaLinux 10.2, alsa-lib 1.2.15.3, PipeWire 1.4.11, WirePlumber 0.5.10.


This issue and the accompanying pull request were created by Claude (Anthropic's Claude Opus 5.5, high effort) via Claude Code. The fix was tested as working on the affected hardware by Colin Byrne.

主要言語
C
スター
501
フォーク
227
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alsa-project/alsa-lib のほかの issue

alsa-project/alsa-lib の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。