Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Tue, 20 Jun 2006 17:46:26 +0100,
Ian Malone wrote:
> 
> Takashi Iwai wrote:
> > At Tue, 20 Jun 2006 08:51:02 +0100,
> > Ian Malone wrote:
> 
> >>>
> >> That's it!  Thanks very much.
> >> I had to use alsactl restore to make the change though;
> >> toggling the IEC958 capture source in alsamixer doesn't
> >> seem to have any effect.
> >> Anyway, working nicely now, thanks again.
> > 
> > "IEC958 capture switch" should exist independently from "IEC958
> > capture source".  There might some confliction in the mixer
> > abstraction.  Could you show the output of amixer?
> > 
> > 
> 
> 
> Attached.

(snip)

> Simple mixer control 'IEC958',0
>   Capabilities: cswitch cswitch-joined enum
>   Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
>   Item0: 'PCM Out'

OK, the problem is the confliction of "IEC958 Playback Route" and
"IEC958 Capture Switch".

We need to fix either mixer layer or rename it, e.g. from "Playback
Route" to "Playback Source".

The patch below (for alsa-lib) is a temporary workaround to add the
automatic toggle of "IEC958 Capture Switch" over iec958 (spdif) PCM.
This makes the spdif recording working even without the fix suggested
in the above.

Please try the patch, and once turn off "IEC958 Capture Switch"
manually (via alsactl store and restore), then record via "spdif" PCM,
such as
	% arecord -Dplug:spdif -fdat foo.wav

If it's confirmed to work, I'll commit to HG repo.


Thanks,

Takashi
diff -r 4125d45eaaa7 src/conf/cards/Aureon51.conf
--- a/src/conf/cards/Aureon51.conf	Fri Jun 16 19:27:35 2006 +0200
+++ b/src/conf/cards/Aureon51.conf	Thu Jun 22 15:10:37 2006 +0200
@@ -150,8 +150,23 @@ Aureon51.pcm.iec958.0 {
 		}
 	}
 	capture.pcm {
-		type hw
-		card $CARD
-		device 1
+		type hooks
+		slave.pcm {
+			type hw
+			card $CARD
+			device 1
+		}
+		hooks.0 {
+			type ctl_elems
+			hook_args [
+				{
+					interface MIXER
+					name "IEC958 Capture Switch"
+					lock true
+					preserve true
+					value true
+				}
+			]
+		}
 	}
 }
diff -r 4125d45eaaa7 src/conf/cards/Aureon71.conf
--- a/src/conf/cards/Aureon71.conf	Fri Jun 16 19:27:35 2006 +0200
+++ b/src/conf/cards/Aureon71.conf	Thu Jun 22 15:10:37 2006 +0200
@@ -161,8 +161,23 @@ Aureon71.pcm.iec958.0 {
 		}
 	}
 	capture.pcm {
-		type hw
-		card $CARD
-		device 1
+		type hooks
+		slave.pcm {
+			type hw
+			card $CARD
+			device 1
+		}
+		hooks.0 {
+			type ctl_elems
+			hook_args [
+				{
+					interface MIXER
+					name "IEC958 Capture Switch"
+					lock true
+					preserve true
+					value true
+				}
+			]
+		}
 	}
 }
diff -r 4125d45eaaa7 src/conf/cards/ICE1724.conf
--- a/src/conf/cards/ICE1724.conf	Fri Jun 16 19:27:35 2006 +0200
+++ b/src/conf/cards/ICE1724.conf	Thu Jun 22 15:10:37 2006 +0200
@@ -195,8 +195,23 @@ ICE1724.pcm.iec958.0 {
 		}
 	}
 	capture.pcm {
-		type hw
-		card $CARD
-		device 1
-	}
-}
+		type hooks
+		slave.pcm {
+			type hw
+			card $CARD
+			device 1
+		}
+		hooks.0 {
+			type ctl_elems
+			hook_args [
+				{
+					interface MIXER
+					name "IEC958 Capture Switch"
+					lock true
+					preserve true
+					value true
+				}
+			]
+		}
+	}
+}
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux