[mythtv-commits] Ticket #10024: AudioIn: unknown or unsupported audio input device

MythTV noreply at mythtv.org
Fri Sep 9 05:55:43 UTC 2011


#10024: AudioIn: unknown or unsupported audio input device
-------------------------------------+----------------------------
 Reporter:  mythtv.hook@…            |          Owner:  danielk
     Type:  Bug Report - General     |         Status:  new
 Priority:  major                    |      Milestone:  unknown
Component:  MythTV - Recording       |        Version:  Trunk Head
 Severity:  medium                   |     Resolution:
 Keywords:                           |  Ticket locked:  0
-------------------------------------+----------------------------
Description changed by wagnerrp:

Old description:

> Im not sure this is covered by #9825, it doesnt read so, so im reporting
> it separately.
>
> When recording off an analog tuner the changes made around
> 7191881b2310b06ef7874ee653d5a5d99da5912a for adding alsa support in, seem
> to have misplaced the setup of the audio device.
>
> As such the backend produces an error that the Audio is 'unknown or
> unsupported audio input device' and no sound is recorded.
>
> A quick fix for this is the following patch:
> diff --git a/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
> b/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
> index 1c634b9..4975a53 100644
> --- a/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
> +++ b/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
> @@ -363,6 +363,9 @@ void
> NuppelVideoRecorder::SetOptionsFromProfile(RecordingProfile *profile,
>      SetOption("vbiformat", gCoreContext->GetSetting("VbiFormat"));
>      SetOption("audiodevice", audiodev);
>
> +// H O O K: Because its broken
> +audiodevice = audiodev;
> +
>      QString setting = QString::null;
>      const Setting *tmp = profile->byName("videocodec");
>      if (tmp)
>

>

> Obviously how this does not fit with how the code has been rewritten, but
> hopefully it will give an indication as to what is causing the problem so
> a more elegant patch can be made.

New description:

 Im not sure this is covered by #9825, it doesnt read so, so im reporting
 it separately.

 When recording off an analog tuner the changes made around
 7191881b2310b06ef7874ee653d5a5d99da5912a for adding alsa support in, seem
 to have misplaced the setup of the audio device.

 As such the backend produces an error that the Audio is 'unknown or
 unsupported audio input device' and no sound is recorded.

 A quick fix for this is the following patch:
 {{{
 diff --git a/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
 b/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
 index 1c634b9..4975a53 100644
 --- a/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
 +++ b/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
 @@ -363,6 +363,9 @@ void
 NuppelVideoRecorder::SetOptionsFromProfile(RecordingProfile *profile,
      SetOption("vbiformat", gCoreContext->GetSetting("VbiFormat"));
      SetOption("audiodevice", audiodev);

 +// H O O K: Because its broken
 +audiodevice = audiodev;
 +
      QString setting = QString::null;
      const Setting *tmp = profile->byName("videocodec");
      if (tmp)
 }}}



 Obviously how this does not fit with how the code has been rewritten, but
 hopefully it will give an indication as to what is causing the problem so
 a more elegant patch can be made.

--

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10024#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list