Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84004

HDMI Audio Problem - Menu Sound works, Audio/Video Playback doesnt

$
0
0
Hi,

I am new to XBMC and everything worked fine until I tried to activate HDMI Audio. At first, in audio settings I changed both audio output device and passthrough device to custom.(hdmi:CARD=NVidia) and HDMI audio playback worked for music and video. Exept that at every second song the initialization of the audio device failed. I still don't know why.

I used the XBMC Wiki to do that because I wanted to have the Menu Sounds and was hoping to get rid of the initialization error(music playback). Now that I have done all steps described in the wiki, I only have menu sound and every time i start a video/song, the initialization of the audio device fails.

My Setup:
XBMCBuntu with XBMC 11.0 Eden
Geforce 610 GT connected via HDMI to a Sony AV Receiver, which is connected via HDMI to my TV.
Onboard Sound disabled
Alsamixer SPDIF is not muted

aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

/etc/asound.conf & ~/.asoundrc are both the same:
Code:
pcm.!default {
  type plug
  slave {
#    pcm "hw:1,0" #delete the first hash for sound over analog
#    pcm "hw:1,1" #delete the first hash for sound over optical
     pcm "hw:0,3" #delete the first hash for sound over hdmi
    rate 48000
  }
}

/etc/modprobe.d/alsa-base.conf
Code:
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7

# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }

# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=-2
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=-2

Can anyone tell me what to do? I tried everything to undo the changes I made but it still doesnt work.

I would appreciate your help!

Cheers!
/usr/share/alsa/cards/HDA-Intel.conf
Code:
#
2
# Configuration for the Intel HD audio (ICH6/ICH7)
3
#
4
5
<confdir:pcm/front.conf>
6
7
HDA-Intel.pcm.front.0 {
8
        @args [ CARD ]
9
        @args.CARD {
10
                type string
11
        }
12
        type softvol
13
        slave.pcm {
14
                type hw
15
                card $CARD
16
        }
17
        control {
18
                name "PCM Playback Volume"
19
                card $CARD
20
        }
21
}
22
23
# default with dmix+softvol & dsnoop
24
HDA-Intel.pcm.default {
25
        @args [ CARD ]
26
        @args.CARD {
27
                type string
28
        }
29
        type asym
30
        playback.pcm {
31
                type plug

33
                        type softvol
34
                        slave.pcm {
35
                                @func concat
36
                                strings [ "dmix:" $CARD ]
37
                        }
38
                        control {
39
                                name "PCM Playback Volume"
40
                                card $CARD
41
                        }
42
                }
43
        }
44
        capture.pcm {
45
                type plug
46
                slave.pcm {
47
                        type softvol
48
                        slave.pcm {
49
                                @func concat
50
                                strings [ "dsnoop:" $CARD ]
51
                        }
52
                        control {
53
                                name "Digital Capture Volume"
54
                                card $CARD
55
                        }
56
                        min_dB -30.0
57
                        max_dB 30.0
58
                        resolution 121
59
                }
60
                # to avoid possible phase inversions with digital mics
61
                route_policy copy

63
        hint.device 0
64
}
65
66
<confdir:pcm/surround40.conf>
67
<confdir:pcm/surround41.conf>
68
<confdir:pcm/surround50.conf>
69
<confdir:pcm/surround51.conf>
70
<confdir:pcm/surround71.conf>
71
72
HDA-Intel.pcm.surround40.0 cards.HDA-Intel.pcm.front.0
73
HDA-Intel.pcm.surround51.0 cards.HDA-Intel.pcm.front.0
74
HDA-Intel.pcm.surround71.0 cards.HDA-Intel.pcm.front.0
75
76
<confdir:pcm/iec958.conf>
77
78
HDA-Intel.pcm.iec958.0 {
79
        @args [ CARD AES0 AES1 AES2 AES3 ]
80
        @args.CARD {
81
                type string
82
        }
83
        @args.AES0 {
84
                type integer
85
        }
86
        @args.AES1 {
87
                type integer
88
        }
89
        @args.AES2 {
90
                type integer
91
        }
92
        @args.AES3 {
93
                type integer

95
        type asym
96
        playback.pcm {
97
                type hooks
98
                slave.pcm {
99
                        type hw
100
                        card $CARD
101
                        device 1
102
                }
103
                hooks.0 {
104
                        type ctl_elems
105
                        hook_args [
106
                        {
107
                                name "IEC958 Playback Default"
108
                                lock true
109
                                preserve true
110
                                value [ $AES0 $AES1 $AES2 $AES3 ]
111
                        }
112
                        {
113
                                name "IEC958 Playback Switch"
114
                                value true
115
                        }
116
                        ]
117
                }
118
        }
119
        capture.pcm {
120
                type hooks
121
                slave.pcm {
122
                        type hw
123
                        card $CARD

125
                }
126
                hooks.0 {
127
                        type ctl_elems
128
                        hook_args [
129
                        {
130
                                name "IEC958 Capture Switch"
131
                                lock true
132
                                preserve true
133
                                value true
134
                        }
135
                        ]
136
                }
137
        }
138
        hint.device 1
139
}
140
141
<confdir:pcm/hdmi.conf>
142
143
HDA-Intel.pcm.hdmi.common {
144
        @args [ CARD DEVICE CTLINDEX AES0 AES1 AES2 AES3 ]
145
        @args.CARD {
146
                type string
147
        }
148
        @args.DEVICE {
149
                type integer
150
        }
151
        @args.CTLINDEX {
152
                type integer
153
        }
154
        @args.AES0 {

156
        }
157
        @args.AES1 {
158
                type integer
159
        }
160
        @args.AES2 {
161
                type integer
162
        }
163
        @args.AES3 {
164
                type integer
165
        }
166
        type hooks
167
        slave.pcm {
168
                type hw
169
                card $CARD
170
                device $DEVICE
171
        }
172
        hooks.0 {
173
                type ctl_elems
174
                hook_args [
175
                {
176
                        name "IEC958 Playback Default"
177
                        index $CTLINDEX
178
                        lock true
179
                        preserve true
180
                        value [ $AES0 $AES1 $AES2 $AES3 ]
181
                }
182
                {
183
                        name "IEC958 Playback Switch"
184
                        index $CTLINDEX

186
                }
187
                ]
188
        }
189
        hint.device $DEVICE
190
}
191
192
HDA-Intel.pcm.hdmi.0 {
193
        @args [ CARD AES0 AES1 AES2 AES3 ]
194
        @args.CARD { type string }
195
        @args.AES0 { type integer }
196
        @args.AES1 { type integer }
197
        @args.AES2 { type integer }
198
        @args.AES3 { type integer }
199
        @func refer
200
        name {
201
                @func concat
202
                strings [
203
                        "cards.HDA-Intel.pcm.hdmi.common:"
204
                        "CARD=" $CARD ","
205
                        "DEVICE=3,"
206
                        "CTLINDEX=0,"
207
                        "AES0=" $AES0 ","
208
                        "AES1=" $AES1 ","
209
                        "AES2=" $AES2 ","
210
                        "AES3=" $AES3
211
                ]
212
        }
213
}
214
215
HDA-Intel.pcm.hdmi.1 {


217
        @args.CARD { type string }
218
        @args.AES0 { type integer }
219
        @args.AES1 { type integer }
220
        @args.AES2 { type integer }
221
        @args.AES3 { type integer }
222
        @func refer
223
        name {
224
                @func concat
225
                strings [
226
                        "cards.HDA-Intel.pcm.hdmi.common:"
227
                        "CARD=" $CARD ","
228
                        "DEVICE=7,"
229
                        "CTLINDEX=1,"
230
                        "AES0=" $AES0 ","
231
                        "AES1=" $AES1 ","
232
                        "AES2=" $AES2 ","
233
                        "AES3=" $AES3
234
                ]
235
        }
236
}
237
238
HDA-Intel.pcm.hdmi.2 {
239
        @args [ CARD AES0 AES1 AES2 AES3 ]
240
        @args.CARD { type string }
241
        @args.AES0 { type integer }
242
        @args.AES1 { type integer }
243
        @args.AES2 { type integer }
244
        @args.AES3 { type integer }
245
        @func refer
246


                @func concat
248
                strings [
249
                        "cards.HDA-Intel.pcm.hdmi.common:"
250
                        "CARD=" $CARD ","
251
                        "DEVICE=8,"
252
                        "CTLINDEX=2,"
253
                        "AES0=" $AES0 ","
254
                        "AES1=" $AES1 ","
255
                        "AES2=" $AES2 ","
256
                        "AES3=" $AES3
257
                ]
258
        }
259
}
260
261
HDA-Intel.pcm.hdmi.3 {
262
        @args [ CARD AES0 AES1 AES2 AES3 ]
263
        @args.CARD { type string }
264
        @args.AES0 { type integer }
265
        @args.AES1 { type integer }
266
        @args.AES2 { type integer }
267
        @args.AES3 { type integer }
268
        @func refer
269
        name {
270
                @func concat
271
                strings [
272
                        "cards.HDA-Intel.pcm.hdmi.common:"
273
                        "CARD=" $CARD ","
274
                        "DEVICE=9,"
275
                        "CTLINDEX=3,"
276
                        "AES0=" $AES0 ","


278
                        "AES2=" $AES2 ","
279
                        "AES3=" $AES3
280
                ]
281
        }
282
}
283
284
<confdir:pcm/modem.conf>
285
286
HDA-Intel.pcm.modem.0 {
287
        @args [ CARD ]
288
        @args.CARD {
289
                type string
290
        }
291
        type hw
292
        card $CARD
293
        device 6
294
        hint.show off
295
}

Viewing all articles
Browse latest Browse all 84004

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>