All of lore.kernel.org
 help / color / mirror / Atom feed
* Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
@ 2006-06-19 14:40 Ian Malone
  2006-06-19 16:26 ` Takashi Iwai
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Malone @ 2006-06-19 14:40 UTC (permalink / raw)
  To: alsa-devel

Okay, I don't have much choice but to try the devel list, having
tried the Fedora mailling lists and alsa-users.  I'm unable to
record from a toslink source as described below, it's possible
I've just missed some detail.

Fedora Core 5
Kernel: 2.6.16-1.2122_FC5
Alsa: alsa-lib-1.0.11-4.rc2
details follow:

---------- Forwarded message ----------
From: Ian Malone <ibmalone@gmail.com>
Date: Jun 16, 2006 8:19 PM
Subject: Re: [Alsa-user] Recording spdif/iec958 on ice1724 terratec 7.1	space
To: alsa-user@lists.sourceforge.net


Ian Malone wrote:

Ping?  Does anyone have any suggestions about what might be
wrong here?

Summary:
Recording from SPDIF input on ICE1724 device (Terratec 7.1
Space, but same chipset as the 5.1 Sky) records only silence.
Rebooting the same machine into windows recording works fine.
Recording source is a DAB radio, apparently at 32kHz (at least,
arecord tells me it was unable to select the requested rate
if I choose anything else).

Tried the commands:
$ arecord -D hwplug:0,1 -f cd test.wav
$ arecord -D hw:0,1 -f S32_LE -r 32000 test.wav
$ arecord -D plug:spdif -f cd test.wav

have tried -f dat instead of -f cd where applicable.

The equivalent hw:0,0 (analogue) successfully records from
line-in with a loopback cable.

I have checked alsamixer, and the IEC958 source has capture
enabled, as does line-in.  The alsa matrix claims tosio for
the 5.1, does that work?

--
imalone

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-19 14:40 Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space Ian Malone
@ 2006-06-19 16:26 ` Takashi Iwai
  2006-06-19 23:38   ` Ian Malone
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Iwai @ 2006-06-19 16:26 UTC (permalink / raw)
  To: Ian Malone; +Cc: alsa-devel

At Mon, 19 Jun 2006 15:40:00 +0100,
Ian Malone wrote:
> 
> Okay, I don't have much choice but to try the devel list, having
> tried the Fedora mailling lists and alsa-users.  I'm unable to
> record from a toslink source as described below, it's possible
> I've just missed some detail.
> 
> Fedora Core 5
> Kernel: 2.6.16-1.2122_FC5
> Alsa: alsa-lib-1.0.11-4.rc2
> details follow:
> 
> ---------- Forwarded message ----------
> From: Ian Malone <ibmalone@gmail.com>
> Date: Jun 16, 2006 8:19 PM
> Subject: Re: [Alsa-user] Recording spdif/iec958 on ice1724 terratec 7.1	space
> To: alsa-user@lists.sourceforge.net
> 
> 
> Ian Malone wrote:
> 
> Ping?  Does anyone have any suggestions about what might be
> wrong here?
> 
> Summary:
> Recording from SPDIF input on ICE1724 device (Terratec 7.1
> Space, but same chipset as the 5.1 Sky) records only silence.
> Rebooting the same machine into windows recording works fine.
> Recording source is a DAB radio, apparently at 32kHz (at least,
> arecord tells me it was unable to select the requested rate
> if I choose anything else).
> 
> Tried the commands:
> $ arecord -D hwplug:0,1 -f cd test.wav
> $ arecord -D hw:0,1 -f S32_LE -r 32000 test.wav
> $ arecord -D plug:spdif -f cd test.wav
> 
> have tried -f dat instead of -f cd where applicable.
> 
> The equivalent hw:0,0 (analogue) successfully records from
> line-in with a loopback cable.
> 
> I have checked alsamixer, and the IEC958 source has capture
> enabled, as does line-in.  The alsa matrix claims tosio for
> the 5.1, does that work?

Is "Optical" chosen for "IEC958 Capture Source"? 
Better to show the mixer status (e.g. /etc/asound.state) for further
diagnosis.


Takashi

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-19 16:26 ` Takashi Iwai
@ 2006-06-19 23:38   ` Ian Malone
  2006-06-19 23:55     ` Lee Revell
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Malone @ 2006-06-19 23:38 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]

Takashi Iwai wrote:
> At Mon, 19 Jun 2006 15:40:00 +0100,
> Ian Malone wrote:

>> I'm unable to record from a toslink source as described below, it's
>> possible I've just missed some detail.
>>
>> Fedora Core 5
>> Kernel: 2.6.16-1.2122_FC5
>> Alsa: alsa-lib-1.0.11-4.rc2
>> details follow:

>>
>> Summary:
>> Recording from SPDIF input on ICE1724 device (Terratec 7.1
>> Space, but same chipset as the 5.1 Sky) records only silence.
>> Rebooting the same machine into windows recording works fine.
>> Recording source is a DAB radio, apparently at 32kHz (at least,
>> arecord tells me it was unable to select the requested rate
>> if I choose anything else).
>>

>> $ arecord -D hwplug:0,1 -f cd test.wav

>>
>> The equivalent hw:0,0 (analogue) successfully records from
>> line-in with a loopback cable.
>>
>> I have checked alsamixer, and the IEC958 source has capture
>> enabled, as does line-in.  The alsa matrix claims tosio for
>> the 5.1, does that work?
> 
> Is "Optical" chosen for "IEC958 Capture Source"? 
> Better to show the mixer status (e.g. /etc/asound.state) for further
> diagnosis.
> 

Well, this is /etc/asound.state, whether it corresponds to what
I'm actually using I don't know.

Optical is selected for the IEC958 capture source, I also tried
CD just to see if it made a difference.

Thanks for your time.

-- 
imalone

[-- Attachment #2: asound.state --]
[-- Type: text/plain, Size: 20253 bytes --]

state.rev50 {
	control.1 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.2 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Master Playback Volume'
		value.0 22
		value.1 22
	}
	control.3 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Headphone Playback Switch'
		value true
	}
	control.4 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 20
		value.1 20
	}
	control.5 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Master Mono Playback Switch'
		value false
	}
	control.6 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'Master Mono Playback Volume'
		value 0
	}
	control.7 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'PC Speaker Playback Switch'
		value false
	}
	control.8 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name 'PC Speaker Playback Volume'
		value 0
	}
	control.9 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Phone Playback Switch'
		value false
	}
	control.10 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'Phone Playback Volume'
		value 0
	}
	control.11 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Mic Playback Switch'
		value false
	}
	control.12 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'Mic Playback Volume'
		value 0
	}
	control.13 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Mic Boost (+20dB)'
		value false
	}
	control.14 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Line Playback Switch'
		value false
	}
	control.15 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Line Playback Volume'
		value.0 0
		value.1 0
	}
	control.16 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'CD Playback Switch'
		value true
	}
	control.17 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'CD Playback Volume'
		value.0 23
		value.1 23
	}
	control.18 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Video Playback Switch'
		value false
	}
	control.19 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Video Playback Volume'
		value.0 0
		value.1 0
	}
	control.20 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Aux Playback Switch'
		value false
	}
	control.21 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Aux Playback Volume'
		value.0 0
		value.1 0
	}
	control.22 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'PCM Playback Switch'
		value true
	}
	control.23 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'PCM Playback Volume'
		value.0 8
		value.1 8
	}
	control.24 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 2
		comment.item.0 Mic
		comment.item.1 CD
		comment.item.2 Video
		comment.item.3 Aux
		comment.item.4 Line
		comment.item.5 Mix
		comment.item.6 'Mix Mono'
		comment.item.7 Phone
		iface MIXER
		name 'Capture Source'
		value.0 CD
		value.1 CD
	}
	control.25 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Capture Switch'
		value true
	}
	control.26 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 15'
		iface MIXER
		name 'Capture Volume'
		value.0 0
		value.1 0
	}
	control.27 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name '3D Control - Switch'
		value false
	}
	control.28 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mix
		comment.item.1 Mic
		iface MIXER
		name 'Mono Output Select'
		value Mix
	}
	control.29 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 Mic1
		comment.item.1 Mic2
		iface MIXER
		name 'Mic Select'
		value Mic1
	}
	control.30 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name '3D Control - Center'
		value 0
	}
	control.31 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 15'
		iface MIXER
		name '3D Control - Depth'
		value 0
	}
	control.32 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.33 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value cf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
	}
	control.34 {
		comment.access 'read write'
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Default'
		value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.35 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Switch'
		value true
	}
	control.36 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 3'
		iface MIXER
		name 'IEC958 Playback AC97-SPSA'
		value 1
	}
	control.37 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'External Amplifier'
		value true
	}
}
state.T71Space {
	control.1 {
		comment.access read
		comment.type BYTES
		comment.count 52
		iface CARD
		name 'ICE1724 EEPROM'
		value '1145153b13020b80fcc3ffff5f0000000000000000000000000000000000000000000000000000000000000000000000ffff5f00'
	}
	control.2 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 '8000'
		comment.item.1 '9600'
		comment.item.2 '11025'
		comment.item.3 '12000'
		comment.item.4 '16000'
		comment.item.5 '22050'
		comment.item.6 '24000'
		comment.item.7 '32000'
		comment.item.8 '44100'
		comment.item.9 '48000'
		comment.item.10 '64000'
		comment.item.11 '88200'
		comment.item.12 '96000'
		comment.item.13 '176400'
		comment.item.14 '192000'
		comment.item.15 'IEC958 Input'
		iface MIXER
		name 'Multi Track Internal Clock'
		value '44100'
	}
	control.3 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Multi Track Rate Locking'
		value false
	}
	control.4 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Multi Track Rate Reset'
		value true
	}
	control.5 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'H/W Playback Route'
		value 'PCM Out'
	}
	control.6 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'H/W Playback Route'
		index 1
		value 'PCM Out'
	}
	control.7 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'H/W Playback Route'
		index 2
		value 'PCM Out'
	}
	control.8 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'H/W Playback Route'
		index 3
		value 'PCM Out'
	}
	control.9 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'H/W Playback Route'
		index 4
		value 'PCM Out'
	}
	control.10 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'H/W Playback Route'
		index 5
		value 'PCM Out'
	}
	control.11 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'H/W Playback Route'
		index 6
		value 'PCM Out'
	}
	control.12 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'H/W Playback Route'
		index 7
		value 'PCM Out'
	}
	control.13 {
		comment.access read
		comment.type INTEGER
		comment.count 22
		comment.range '0 - 255'
		iface MIXER
		name 'Multi Track Peak'
		value.0 255
		value.1 255
		value.2 0
		value.3 0
		value.4 0
		value.5 0
		value.6 0
		value.7 0
		value.8 0
		value.9 0
		value.10 255
		value.11 255
		value.12 0
		value.13 0
		value.14 0
		value.15 0
		value.16 0
		value.17 0
		value.18 0
		value.19 0
		value.20 0
		value.21 0
	}
	control.14 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'IEC958 Playback Route'
		value 'PCM Out'
	}
	control.15 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'PCM Out'
		comment.item.1 'H/W In 0'
		comment.item.2 'H/W In 1'
		comment.item.3 'IEC958 In L'
		comment.item.4 'IEC958 In R'
		iface MIXER
		name 'IEC958 Playback Route'
		index 1
		value 'PCM Out'
	}
	control.16 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Output Switch'
		value false
	}
	control.17 {
		comment.access 'read write'
		comment.type IEC958
		comment.count 1
		iface PCM
		device 1
		name 'IEC958 Playback Default'
		value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.18 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface PCM
		device 1
		name 'IEC958 Playback Con Mask'
		value '3fff000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.19 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface PCM
		device 1
		name 'IEC958 Playback Pro Mask'
		value df00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
	}
	control.20 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Master Playback Switch'
		value.0 true
		value.1 true
	}
	control.21 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 255'
		iface MIXER
		name 'Master Playback Volume'
		value.0 118
		value.1 118
	}
	control.22 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Front Playback Switch'
		value.0 true
		value.1 true
	}
	control.23 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		iface MIXER
		name 'Front Playback Volume'
		value.0 107
		value.1 107
	}
	control.24 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Rear Playback Switch'
		value.0 false
		value.1 false
	}
	control.25 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		iface MIXER
		name 'Rear Playback Volume'
		value.0 0
		value.1 0
	}
	control.26 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Center Playback Switch'
		value false
	}
	control.27 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 127'
		iface MIXER
		name 'Center Playback Volume'
		value 0
	}
	control.28 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'LFE Playback Switch'
		value false
	}
	control.29 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 127'
		iface MIXER
		name 'LFE Playback Volume'
		value 0
	}
	control.30 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Side Playback Switch'
		value.0 false
		value.1 false
	}
	control.31 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 127'
		iface MIXER
		name 'Side Playback Volume'
		value.0 0
		value.1 0
	}
	control.32 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'PCM Playback Switch'
		value true
	}
	control.33 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 128'
		iface MIXER
		name 'PCM Playback Volume'
		value 118
	}
	control.34 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
	}
	control.35 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Capture Volume'
		value.0 31
		value.1 31
	}
	control.36 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 2
		comment.item.0 CD
		comment.item.1 Aux
		comment.item.2 Line
		comment.item.3 Mic
		comment.item.4 AC97
		iface MIXER
		name 'Capture Source'
		value.0 Line
		value.1 Line
	}
	control.37 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'External Amplifier'
		value false
	}
	control.38 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'DAC Deemphasis Switch'
		value false
	}
	control.39 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 '128x'
		comment.item.1 '64x'
		iface MIXER
		name 'ADC Oversampling'
		value '128x'
	}
	control.40 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'AC97 Playback Switch'
		value true
	}
	control.41 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'AC97 Playback Volume'
		value.0 18
		value.1 18
	}
	control.42 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'CD Playback Switch'
		value true
	}
	control.43 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'CD Playback Volume'
		value.0 24
		value.1 24
	}
	control.44 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Aux Playback Switch'
		value false
	}
	control.45 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Aux Playback Volume'
		value.0 23
		value.1 23
	}
	control.46 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Line Playback Switch'
		value false
	}
	control.47 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		iface MIXER
		name 'Line Playback Volume'
		value.0 23
		value.1 23
	}
	control.48 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Mic Playback Switch'
		value false
	}
	control.49 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 31'
		iface MIXER
		name 'Mic Playback Volume'
		value 0
	}
	control.50 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'Mic Boost (+20dB)'
		value false
	}
	control.51 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Capture Switch'
		value false
	}
	control.52 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 CD
		comment.item.1 Optical
		iface MIXER
		name 'IEC958 Capture Source'
		value Optical
	}
	control.53 {
		comment.access read
		comment.type BYTES
		comment.count 10
		iface PCM
		device 1
		name 'IEC958 Q-subcode Capture Default'
		value '00000000000000000000'
	}
	control.54 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface PCM
		device 1
		name 'IEC958 Capture Mask'
		value ffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
	}
	control.55 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface PCM
		device 1
		name 'IEC958 Capture Default'
		value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.56 {
		comment.access read
		comment.type INTEGER
		comment.count 1
		comment.range '0 - 192000'
		iface PCM
		device 1
		name 'IEC958 Capture Rate'
		value 48000
	}
}

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-19 23:38   ` Ian Malone
@ 2006-06-19 23:55     ` Lee Revell
  2006-06-20  7:51       ` Ian Malone
  0 siblings, 1 reply; 11+ messages in thread
From: Lee Revell @ 2006-06-19 23:55 UTC (permalink / raw)
  To: Ian Malone; +Cc: alsa-devel

On Tue, 2006-06-20 at 00:38 +0100, Ian Malone wrote:

> Well, this is /etc/asound.state, whether it corresponds to what
> I'm actually using I don't know.
> 

Run "alsactl store" to verify that asound.state matches the mixer
settings.

> Optical is selected for the IEC958 capture source, I also tried
> CD just to see if it made a difference.
> 
> Thanks for your time.

> 	control.51 {
> 		comment.access 'read write'
> 		comment.type BOOLEAN
> 		comment.count 1
> 		iface MIXER
> 		name 'IEC958 Capture Switch'
> 		value false
> 	}

Have you tried unmuting "IEC958 Capture Switch"?

Lee

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-19 23:55     ` Lee Revell
@ 2006-06-20  7:51       ` Ian Malone
  2006-06-20 10:00         ` Takashi Iwai
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Malone @ 2006-06-20  7:51 UTC (permalink / raw)
  To: alsa-devel

Lee Revell wrote:
> On Tue, 2006-06-20 at 00:38 +0100, Ian Malone wrote:
> 
>> Well, this is /etc/asound.state, whether it corresponds to what
>> I'm actually using I don't know.
>>
> 
> Run "alsactl store" to verify that asound.state matches the mixer
> settings.
> 
>> Optical is selected for the IEC958 capture source, I also tried
>> CD just to see if it made a difference.
>>
>> Thanks for your time.
> 
>> 	control.51 {
>> 		comment.access 'read write'
>> 		comment.type BOOLEAN
>> 		comment.count 1
>> 		iface MIXER
>> 		name 'IEC958 Capture Switch'
>> 		value false
>> 	}
> 
> Have you tried unmuting "IEC958 Capture Switch"?
> 

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.

-- 
imalone

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-20  7:51       ` Ian Malone
@ 2006-06-20 10:00         ` Takashi Iwai
  2006-06-20 16:46           ` Ian Malone
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Iwai @ 2006-06-20 10:00 UTC (permalink / raw)
  To: Ian Malone; +Cc: alsa-devel

At Tue, 20 Jun 2006 08:51:02 +0100,
Ian Malone wrote:
> 
> Lee Revell wrote:
> > On Tue, 2006-06-20 at 00:38 +0100, Ian Malone wrote:
> > 
> >> Well, this is /etc/asound.state, whether it corresponds to what
> >> I'm actually using I don't know.
> >>
> > 
> > Run "alsactl store" to verify that asound.state matches the mixer
> > settings.
> > 
> >> Optical is selected for the IEC958 capture source, I also tried
> >> CD just to see if it made a difference.
> >>
> >> Thanks for your time.
> > 
> >> 	control.51 {
> >> 		comment.access 'read write'
> >> 		comment.type BOOLEAN
> >> 		comment.count 1
> >> 		iface MIXER
> >> 		name 'IEC958 Capture Switch'
> >> 		value false
> >> 	}
> > 
> > Have you tried unmuting "IEC958 Capture Switch"?
> > 
> 
> 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?


Takashi

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-20 10:00         ` Takashi Iwai
@ 2006-06-20 16:46           ` Ian Malone
  2006-06-22 13:11             ` Takashi Iwai
  0 siblings, 1 reply; 11+ messages in thread
From: Ian Malone @ 2006-06-20 16:46 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

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.

-- 
imalone

[-- Attachment #2: amixer.out --]
[-- Type: text/plain, Size: 6797 bytes --]

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 113 [44%] [on]
  Front Right: Playback 113 [44%] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 128
  Mono: Playback 118 [92%] [on]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 107 [84%] [on]
  Front Right: Playback 107 [84%] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 0 [0%] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 0 [0%] [off]
Simple mixer control 'Side',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 0 [0%] [off]
  Front Right: Playback 0 [0%] [off]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 23 [74%] [off] Capture [on]
  Front Right: Playback 23 [74%] [off] Capture [on]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 24 [77%] [on] Capture [off]
  Front Right: Playback 24 [77%] [on] Capture [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [off]
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Mic Boost (+20dB)',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
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'
Simple mixer control 'IEC958 Capture Source',0
  Capabilities: enum
  Items: 'CD' 'Optical'
  Item0: 'Optical'
Simple mixer control 'IEC958 Output',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'Aux',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 23 [74%] [off] Capture [off]
  Front Right: Playback 23 [74%] [off] Capture [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [on]
  Front Right: Capture 31 [100%] [on]
Simple mixer control 'AC97',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 18 [58%] [on] Capture [off]
  Front Right: Playback 18 [58%] [on] Capture [off]
Simple mixer control 'ADC Oversampling',0
  Capabilities: enum
  Items: '128x' '64x'
  Item0: '128x'
Simple mixer control 'DAC Deemphasis',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'External Amplifier',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'H/W',0
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',1
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',2
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',3
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',4
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',5
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',6
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'H/W',7
  Capabilities: enum
  Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
  Item0: 'PCM Out'
Simple mixer control 'Multi Track Internal Clock',0
  Capabilities: enum
  Items: '8000' '9600' '11025' '12000' '16000' '22050' '24000' '32000' '44100' '48000' '64000' '88200' '96000' '176400' '192000' 'IEC958 Input'
  Item0: '44100'
Simple mixer control 'Multi Track Peak',0
  Capabilities: volume
  Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right - Rear Center - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
  Capture channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right - Rear Center - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
  Limits: 0 - 255
  Front Left: 0 [0%]
  Front Right: 0 [0%]
  Rear Left: 0 [0%]
  Rear Right: 0 [0%]
  Front Center: 0 [0%]
  Woofer: 0 [0%]
  Side Left: 0 [0%]
  Side Right: 0 [0%]
  Rear Center: 0 [0%]
  ?: 0 [0%]
  ?: 2 [1%]
  ?: 1 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 0 [0%]
  ?: 146 [57%]
  ?: 148 [58%]
  ?: 0 [0%]
  ?: 0 [0%]
Simple mixer control 'Multi Track Rate Locking',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Multi Track Rate Reset',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Rear',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 0 [0%] [off]
  Front Right: Playback 0 [0%] [off]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-20 16:46           ` Ian Malone
@ 2006-06-22 13:11             ` Takashi Iwai
  2006-06-22 13:40               ` Ian Malone
  2006-06-22 16:17               ` Ian Malone
  0 siblings, 2 replies; 11+ messages in thread
From: Takashi Iwai @ 2006-06-22 13:11 UTC (permalink / raw)
  To: Ian Malone; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 1662 bytes --]

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
+				}
+			]
+		}
+	}
+}

[-- Attachment #3: Type: text/plain, Size: 280 bytes --]

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

[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-22 13:11             ` Takashi Iwai
@ 2006-06-22 13:40               ` Ian Malone
  2006-06-22 13:44                 ` Takashi Iwai
  2006-06-22 16:17               ` Ian Malone
  1 sibling, 1 reply; 11+ messages in thread
From: Ian Malone @ 2006-06-22 13:40 UTC (permalink / raw)
  To: alsa-devel

On 6/22/06, Takashi Iwai <tiwai@suse.de> wrote:
> At Tue, 20 Jun 2006 17:46:26 +0100,
> Ian Malone wrote:

>
> > 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.
>

I'll have a look at it this evening, but I haven't built alsa from source
before, so there might be some delay while I figure that out.
Would it be problematic if I worked against the FC5 source rpm
for this?

-- 
imalone

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-22 13:40               ` Ian Malone
@ 2006-06-22 13:44                 ` Takashi Iwai
  0 siblings, 0 replies; 11+ messages in thread
From: Takashi Iwai @ 2006-06-22 13:44 UTC (permalink / raw)
  To: Ian Malone; +Cc: alsa-devel

At Thu, 22 Jun 2006 14:40:12 +0100,
Ian Malone wrote:
> 
> On 6/22/06, Takashi Iwai <tiwai@suse.de> wrote:
> > At Tue, 20 Jun 2006 17:46:26 +0100,
> > Ian Malone wrote:
> 
> >
> > > 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.
> >
> 
> I'll have a look at it this evening, but I haven't built alsa from source
> before, so there might be some delay while I figure that out.
> Would it be problematic if I worked against the FC5 source rpm
> for this?

You can even patch files in /usr/share/alsa/cards manually with the
patch.  It's just a change of configuration files.


Takashi

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space
  2006-06-22 13:11             ` Takashi Iwai
  2006-06-22 13:40               ` Ian Malone
@ 2006-06-22 16:17               ` Ian Malone
  1 sibling, 0 replies; 11+ messages in thread
From: Ian Malone @ 2006-06-22 16:17 UTC (permalink / raw)
  To: alsa-devel

Takashi Iwai wrote:
> 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.
> 
> 

Works here (except that setting HW 1&2 to IEC958 will still only
send SPDIF in directly to the speakers if IEC958 Capture Switch
is turned on in asound.state, although I'm not sure whether
that's by design, but recording works).

-- 
imalone

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-06-22 16:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-19 14:40 Fwd: [Alsa-user] Recording spdif/iec958 on ice1724 terratec aureon 7.1 space Ian Malone
2006-06-19 16:26 ` Takashi Iwai
2006-06-19 23:38   ` Ian Malone
2006-06-19 23:55     ` Lee Revell
2006-06-20  7:51       ` Ian Malone
2006-06-20 10:00         ` Takashi Iwai
2006-06-20 16:46           ` Ian Malone
2006-06-22 13:11             ` Takashi Iwai
2006-06-22 13:40               ` Ian Malone
2006-06-22 13:44                 ` Takashi Iwai
2006-06-22 16:17               ` Ian Malone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.