Opened 16 years ago
Closed 15 years ago
#8361 closed defect (fixed)
ALSA audio capture doesn't work with snd-bt87x driver [PATCH INCLUDED]
Reported by: | Owned by: | JYA | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | MythTV - Recording | Version: | 0.23rc2 |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
I sent this patch to the dev mailing list in Dec/09 and it probably still waits for moderation. So would please someone review and apply this thing once and for all ?
The ALSA initialization code is convoluted and does not work with snd-bt87x; LiveTV starts with audio but as soon as I try to change channel it stalls, goes black and then shows Irrecoverable recorder error. At the time I did the analysis and was included in the email to the dev-list. Since this still happens with 0.23-fixes[24158] I'm now posting the patch here. It was based on the initialization code of arecord (the recording utility that comes with ALSA).
Attachments (1)
Change History (7)
by , 16 years ago
Attachment: | audioinputalsa.patch added |
---|
comment:1 by , 16 years ago
Milestone: | 0.23 → unknown |
---|---|
Priority: | major → minor |
Severity: | high → low |
Please see the ticket howto, milestones are for developer use.
comment:2 by , 16 years ago
As requested via IRC, I'm adding a quote from http://www.mythtv.org/wiki/ALSA,_BTTV_and_MythTV_0.22, which a wrote at the time:
"Everytime I tried to use the board for capture MythTV would error out about not being able to set the sample rate (wanted 48000, the driver reported 119466 sp/s), not being able to set the number of channels (wanted two, the driver only reported one) and some other errors"
I never got around to debugging the interaction of the MythTv's initialization code with ALSA, I simply looked at the code for arecord that does the same initialization in a much simplified mannor, plugged it in and it worked. I don't understand why the current code does it in such a roundabout way, but my way does work, and should work with all BTTV-based setups. Setups with others kinds of capture cards may require that kind of initialization but I doubt it.
P.S. This patch has to be applied inside libs/libmythtv
comment:3 by , 15 years ago
Status: | new → assigned |
---|
comment:4 by , 15 years ago
Owner: | changed from | to
---|
comment:5 by , 15 years ago
Status: | assigned → infoneeded |
---|
This part of the code was rewritten in trunk... Please check that the issue is still occurring with trunk and report back or close the ticket
Patch for ALSA snd-bt87x support