<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Selection of a card profile does not correctly set card's input"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101973">101973</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Selection of a card profile does not correctly set card's input
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>ARM
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>alsa
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Shulyaka@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>Hi,
Short: I can't configure PA by setting card profile to record from SPDIF-In
instead of analog input.
Long:
I have a USB sound card reported by lsusb as "0d8c:0102 C-Media Electronics,
Inc. CM106 Like Sound Device". The card has several input sources, which can be
managed by alsa:
[root@speaker ~]# amixer -c 2 get 'PCM Capture Source'
Simple mixer control 'PCM Capture Source',0
Capabilities: enum
Items: 'Mic' 'Line' 'IEC958 In' 'Mixer'
Item0: 'IEC958 In'
Pulseaudio lists two input sources with 'pactl list cards' command
(input:analog-stereo and input:iec958-stereo), however selection of the card
profile always reset this to Mic:
[root@speaker ~]# amixer -c 2 set 'PCM Capture Source' 'IEC958 In'
Simple mixer control 'PCM Capture Source',0
Capabilities: enum
Items: 'Mic' 'Line' 'IEC958 In' 'Mixer'
Item0: 'IEC958 In'
[root@speaker ~]# pactl set-card-profile 0
output:analog-surround-51+input:analog-stereo
[root@speaker ~]# amixer -c 2 get 'PCM Capture Source'
Simple mixer control 'PCM Capture Source',0
Capabilities: enum
Items: 'Mic' 'Line' 'IEC958 In' 'Mixer'
Item0: 'Mic'
[root@speaker ~]# pactl set-card-profile 0
output:analog-surround-51+input:iec958-stereo
[root@speaker ~]# amixer -c 2 get 'PCM Capture Source'
Simple mixer control 'PCM Capture Source',0
Capabilities: enum
Items: 'Mic' 'Line' 'IEC958 In' 'Mixer'
Item0: 'Mic'
[root@speaker ~]# pulseaudio --version
pulseaudio 10.0
I can also confirm by listening that after setting the card profile to
"output:analog-surround-51+input:iec958-stereo" the parecord command still
records from analog input instead of SPDIF, unless I reconfigure it again with
amixer.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>