Skip to contentSkip to conversation

SoundBlaster X-fi HD SPDIF fix

PATCH In review Richard Körber 2 participants 9 messages Apr 6, 2014 – Apr 5, 2015

lore
Share & tools
lore
#0 lore raw

Hi!

I own a Creative USB SoundBlaster X-fi HD and tried to use its SPDIF optical output. However it didn't work with ALSA out of the box. The reason is that for SPDIF output device #1 must be used.

The fix is: In /usr/share/alsa/cards/USB-Audio.conf, change the iec958_device block like this:

USB-Audio.pcm.iec958_device {
"USB Sound Blaster HD" 1
}

Digital output works fine for me after that.

BTW, I tried this line in /etc/asound.conf

cards.USB-Audio.pcm.iec958_device."USB Sound Blaster HD" 1

but it didn't have any effect. Why was that?

Thank you!

Regards
Richard Körber

#1 lore raw

At Sun, 06 Apr 2014 23:36:31 +0200,

Quoted 7 lines · Richard Körber

Hi!

I own a Creative USB SoundBlaster X-fi HD and tried to use its SPDIF optical output. However it didn't work with ALSA out of the box. The reason is that for SPDIF output device #1 must be used.

Quoted 8 lines

The fix is: In /usr/share/alsa/cards/USB-Audio.conf, change the iec958_device block like this:

USB-Audio.pcm.iec958_device {
"USB Sound Blaster HD" 1
}

Digital output works fine for me after that.

Could you submit a patch to add the entry in alsa-lib git tree?

Quoted 5 lines

BTW, I tried this line in /etc/asound.conf

cards.USB-Audio.pcm.iec958_device."USB Sound Blaster HD" 1

but it didn't have any effect. Why was that?

The line above doesn't work like a way to append a list entry.

thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#2 lore raw

PATCH 1/1 USB-audio: Sound Blaster HD iec958 is on device 1

Creative Sound Blaster X-Fi HD uses device 1 for iec958 output.

---
 src/conf/cards/USB-Audio.conf | 1 +
 1 file changed, 1 insertion(+)
src/conf/cards/USB-Audio.conf +1 -0
index 05e5d09..bae7669 100644
@@ -36,6 +36,7 @@ USB-Audio.pcm.surround40_type {
 # number for the iec958 device can be changed here.
 USB-Audio.pcm.iec958_device {
        # "NoiseBlaster 3000" 42
+        "USB Sound Blaster HD" 1
 
        # The below don't have digital in/out, so prevent them from being opened.
        "Andrea PureAudio USB-SA Headset" 999
Signature · 1 line
2.1.0
#3 lore raw

Re: [PATCH] USB-audio: Sound Blaster HD iec958 is on device 1

At Wed, 21 Jan 2015 01:02:34 +0100,

Quoted 11 lines · Richard Körber

Creative Sound Blaster X-Fi HD uses device 1 for iec958 output.

---
 src/conf/cards/USB-Audio.conf | 1 +
 1 file changed, 1 insertion(+)
src/conf/cards/USB-Audio.conf +0 -0
index 05e5d09..bae7669 100644

src/conf/cards/USB-Audio.conf USB-Audio.pcm.surround40_type { · line 39

Quoted 4 lines
src/conf/cards/USB-Audio.conf +1 -0
@@ -36,6 +36,7 @@ USB-Audio.pcm.surround40_type {
 # number for the iec958 device can be changed here.
 USB-Audio.pcm.iec958_device {
        # "NoiseBlaster 3000" 42
+        "USB Sound Blaster HD" 1

The patch can't be applied cleanly due to the space breakage likely by your MUA. Please fix the setup or use an attachment.

Also, don't forget your sign-off.

thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw

Re: [PATCH] USB-audio: Sound Blaster HD iec958 is on device 1

Quoted 4 lines · Takashi Iwai

The patch can't be applied cleanly due to the space breakage likely by your MUA. Please fix the setup or use an attachment.

Also, don't forget your sign-off.

I'm sorry for the mistakes. It's my first time providing a git patch by mail.

You'll find the signed-off patch file attached.

Signature · 1 line
Richard Körber
Quoted 1 line

From b4e51c2ef6e8226021964465714c99c5a735ce3a Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Richard=20K=C3=B6rber?= <[email protected]>
Date: Wed, 21 Jan 2015 22:50:27 +0100
Subject: [PATCH] USB-audio: Sound Blaster HD iec958 is on device 1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Creative Sound Blaster X-Fi HD uses device 1 for iec958 output.

---
 src/conf/cards/USB-Audio.conf | 1 +
 1 file changed, 1 insertion(+)
src/conf/cards/USB-Audio.conf +1 -0
index 05e5d09..bae7669 100644
@@ -36,6 +36,7 @@ USB-Audio.pcm.surround40_type {
 # number for the iec958 device can be changed here.
 USB-Audio.pcm.iec958_device {
 	# "NoiseBlaster 3000" 42
+        "USB Sound Blaster HD" 1
 
 	# The below don't have digital in/out, so prevent them from being opened.
 	"Andrea PureAudio USB-SA Headset" 999
Signature · 1 line
2.1.0
#5 lore raw

Re: [PATCH] USB-audio: Sound Blaster HD iec958 is on device 1

Hi!

Quoted 1 line

You'll find the signed-off patch file attached.

I noticed that the patch was not merged yet. If there is something still missing, I would be happy to provide it.

Signature · 5 lines
Richard Körber
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#6 lore raw

Re: [PATCH] USB-audio: Sound Blaster HD iec958 is on device 1

At Sat, 28 Mar 2015 12:06:20 +0100,

Quoted 7 lines · Richard Körber

Hi!

Quoted 1 line

You'll find the signed-off patch file attached.

I noticed that the patch was not merged yet. If there is something still missing, I would be happy to provide it.

Please resend the patch.

thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#8 lore raw

Re: [PATCH] USB-audio: Sound Blaster HD iec958 is on device 1

At Sat, 28 Mar 2015 14:53:56 +0100,

Quoted 8 lines · Richard Körber

Hi!

Quoted 1 line

Please resend the patch.

You can find it here:

http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150121/6854c035/attachment.bin

OK, applied now. But at the next time, please just resend the patch when requested. It was requested for reviewing, not for taking the patch as is. From the same reason, try to avoid attachments as much as possible. If only attachment is available, embed the patch in addition to attachments.

thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel