Opened 9 years ago

Closed 9 years ago

#8226 closed defect (fixed)

alsa output misses HDMI device

Reported by: hp@… Owned by: robertm
Priority: minor Milestone: unknown
Component: MythTV - Audio Output Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hi!

I have to output sound and spdif to ALSA device hdmi. Since 14599, mythtv does not "find" it anymore and disables sound on playback - and the setting widget does NOT include the hdmi device, only all others.

aplay -L DOES include the hdmi device mplayer DOES play sound on hdmi

downgrading to 14598 re-establishes working hdmi output.

Probably the HDMI device is somehow a different "type" than pure pcm and/or iec?

Attachments (3)

log.short (17.6 KB) - added by hp@… 9 years ago.
log output with short alsa definition
log.full (17.9 KB) - added by hp@… 9 years ago.
log output with full alsa definition
log.23826 (16.2 KB) - added by hp@… 9 years ago.
log file vor rev23826

Download all attachments as: .zip

Change History (15)

comment:1 Changed 9 years ago by sphery

Status: newinfoneeded_new

mythfrontend --version output, please. Your revision numbers make no sense in a MythTV context (as we're currently at SVN revision 23820).

comment:2 Changed 9 years ago by anonymous

Sorry, that should be 23793, 23794 changed alsa handling an breaks (my) sound.

Please include all output in bug reports.
MythTV Version   : exported
MythTV Branch    : 
Network Protocol : 56
Library API      : 0.23.20100314-1
QT Version       : 4.5.2
Options compiled in:
 linux release using_oss using_alsa using_pulse using_pulseoutput using_backend using_directfb using_frontend using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_mheg

comment:3 Changed 9 years ago by sphery

Priority: majorminor
Severity: highmedium

The device name's not appearing in the combo box is most likely due to a bug in ALSA that prevents user-defined logical device names from showing in some circumstances ( https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3461 and/or https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3835 ). The combobox, is, however, an editable field, so if the device you want to use doesn't appear in the list, just type in what you want to use.

The only reason that mythfrontend should 'not "find" it anymore and disable sound on playback' is if you actually choose the wrong device. Please upgrade to r23816 or higher and try again--after selecting or typing the proper device specifier. If audio is disabled, please include frontend log output from starting mythfrontend through attempting playback and created with:

mythfrontend -v important,general,audio

Otherwise, if everything audio works, please let us know.

comment:4 Changed 9 years ago by hp@…

The hdmi device is a system device, not user-defined! Before submitting the ticket, I made sure I deleted all of alsa's configuration.

Unfortunately, it seems mythtv really does not 'find' the device. I attach two log files, one with ALSA:hdmi and one with the complete parameters.

Changed 9 years ago by hp@…

Attachment: log.short added

log output with short alsa definition

Changed 9 years ago by hp@…

Attachment: log.full added

log output with full alsa definition

comment:5 Changed 9 years ago by JYA

Status: infoneeded_newnew

comment:6 Changed 9 years ago by JYA

Owner: changed from JYA to robertm
Status: newassigned

Changed 9 years ago by hp@…

Attachment: log.23826 added

log file vor rev23826

comment:7 Changed 9 years ago by hp@…

as requested, an updated log file for rev23826

comment:8 Changed 9 years ago by robertm

Milestone: 0.23unknown

comment:9 Changed 9 years ago by JYA

Try version > r23961 ; There's a bug in ALSA < 1.0.22 which became visible with r23794.

r23961 has a workaround...

If you set your device back to ALSA:hdmi ; I suspect that it will work once again.

Please try and report ; if it fixes it, I will close this ticket

comment:10 Changed 9 years ago by JYA

Looking at your log: 178 2010-03-28 13:56:01.848 Opening ALSA audio device 'hdmi'. 179 ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi 180 2010-03-28 13:56:01.848 AudioOutput? Error: snd_pcm_open(hdmi): No such file or directory

I'm 99.9% confident that r23961 will fix it for you

comment:11 Changed 9 years ago by hp@…

Wonderful! Works like a charm. Thanks a lot!

comment:12 Changed 9 years ago by JYA

Resolution: fixed
Status: assignedclosed

Fixed in r23961

Note: See TracTickets for help on using tickets.