]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: Add Sony inzone H7/H9 headset default/HiFi usecase
authorLaurens Miers <laurensmiers@protonmail.com>
Wed, 22 Mar 2023 15:04:26 +0000 (16:04 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 17 Apr 2023 08:16:30 +0000 (10:16 +0200)
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 <laurensmiers@protonmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Sony/Inzone-H9-H7-HiFi.conf [new file with mode: 0644]
ucm2/USB-Audio/Sony/Inzone-H9-H7.conf [new file with mode: 0644]
ucm2/USB-Audio/USB-Audio.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 (file)
index 0000000..314455a
--- /dev/null
@@ -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 (file)
index 0000000..db43c7d
--- /dev/null
@@ -0,0 +1,6 @@
+Comment "Sony Corp. INZONE H9 / INZONE H7"
+
+SectionUseCase."HiFi" {
+       Comment "Default"
+       File "/USB-Audio/Sony/Inzone-H9-H7-HiFi.conf"
+}
index b4fbb6c43b6aafb00d3d0fb4d33c31cd990660db..e70b34eafb9731321f2c71371d8eaea6f4b7b236 100644 (file)
@@ -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