From caf4f9e86bac887a543b33fc4ac42641a3e15c86 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Wed, 22 Mar 2023 16:04:26 +0100 Subject: [PATCH] USB-Audio: Add Sony inzone H7/H9 headset default/HiFi usecase The Sony inzone H7/H9 headset has two usb audio outputs and one usb audio input. One pair of audio output and input is the 'chat' interface which is normally connected to a chat client. The remaining audio ouput is the 'game' interface, which is normally connected to the actual game you're playing. The 'game' interface lists as a separate USB subdevice in alsa. This commit adds the HiFi usecase for the Sony headset which is as follows: - One chat device - One audio output - One audio input - One game device - One audio output Tested with pipewire and pulseaudio, verified with pavucontrol, both devices are listed and audio can be played on both. The audio is mixed in the headset itself. Control wise there isn't much, the only thing that is reported in alsamixer is a volume control for the CAPTURE channel. However, changing the volume of this does not seem to affect the actual audio that is recorded, so I don't see a need to change this when enabling the device. Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/293 Signed-off-by: Laurens Miers Signed-off-by: Jaroslav Kysela --- ucm2/USB-Audio/Sony/Inzone-H9-H7-HiFi.conf | 15 +++++++++++++++ ucm2/USB-Audio/Sony/Inzone-H9-H7.conf | 6 ++++++ ucm2/USB-Audio/USB-Audio.conf | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 ucm2/USB-Audio/Sony/Inzone-H9-H7-HiFi.conf create mode 100644 ucm2/USB-Audio/Sony/Inzone-H9-H7.conf diff --git a/ucm2/USB-Audio/Sony/Inzone-H9-H7-HiFi.conf b/ucm2/USB-Audio/Sony/Inzone-H9-H7-HiFi.conf new file mode 100644 index 0000000..314455a --- /dev/null +++ b/ucm2/USB-Audio/Sony/Inzone-H9-H7-HiFi.conf @@ -0,0 +1,15 @@ +SectionDevice."Headset" { + Comment "Chat" + Value { + PlaybackPCM "hw:${CardId},0" + CapturePCM "hw:${CardId},0" + CaptureChannels 1 + } +} + +SectionDevice."Headphones" { + Comment "Game" + Value { + PlaybackPCM "hw:${CardId},1" + } +} diff --git a/ucm2/USB-Audio/Sony/Inzone-H9-H7.conf b/ucm2/USB-Audio/Sony/Inzone-H9-H7.conf new file mode 100644 index 0000000..db43c7d --- /dev/null +++ b/ucm2/USB-Audio/Sony/Inzone-H9-H7.conf @@ -0,0 +1,6 @@ +Comment "Sony Corp. INZONE H9 / INZONE H7" + +SectionUseCase."HiFi" { + Comment "Default" + File "/USB-Audio/Sony/Inzone-H9-H7-HiFi.conf" +} diff --git a/ucm2/USB-Audio/USB-Audio.conf b/ucm2/USB-Audio/USB-Audio.conf index b4fbb6c..e70b34e 100644 --- a/ucm2/USB-Audio/USB-Audio.conf +++ b/ucm2/USB-Audio/USB-Audio.conf @@ -109,6 +109,15 @@ If.steinberg-ur44 { True.Define.ProfileName "Steinberg/UR44" } +If.sony-inzone-h9-h7 { + Condition { + Type String + Haystack "${CardComponents}" + Needle "USB054c:0e53" + } + True.Define.ProfileName "Sony/Inzone-H9-H7" +} + If.roland-bridgecast { Condition { Type String -- 2.47.1