Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214200 - sys-kernel/gentoo-sources-2.6.24-r3 breaks alsa snd_hdsp internal routing
Summary: sys-kernel/gentoo-sources-2.6.24-r3 breaks alsa snd_hdsp internal routing
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-22 00:48 UTC by yknot
Modified: 2008-09-04 19:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
config for kernel 2.6.23-gentoo-r9 (config-2.6.23-gentoo-r9,41.46 KB, text/plain)
2008-03-26 22:33 UTC, yknot
Details
config for kernel 2.6.24-gentoo-r3 (config-2.6.24-gentoo-r3,44.54 KB, text/plain)
2008-03-26 22:33 UTC, yknot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yknot 2008-03-22 00:48:41 UTC
Upgrading from gentoo-sources 2.6.23-gentoo-r9 to gentoo-sources-2.6.24-r3 the internal routeing on a RME Multiface with PCI card.  This card uses the snd-hdsp driver.
Rebooting into 2.6.23-gentoo-r9 fixes problem. Using emerge to rebuild 
alsa-firmware-1.0.14
alsa-tools-1.0.14
alsa-utils-1.0.14
alsa-headers-1.0.14
alsa-lib-1.0.14a-r1
Had no effect on the problem.

The problem is as follows.  Audio played through various audio players shows up
in the hdsp mixer.  But routeing audio to any output fails.  
Stereo Audio from external sources (SPDIF from CD player) shows up on both input channels. Both input channel can ony be routed to the one output channel. Any audio routed to the two channel does not show on the internal meters or the DAC.

Sound config differences 
> 2.6.24-gentoo-r3
< 2.6.23-gentoo-r9

< #CONFIG_SND_DUMMY is not set
---
> CONFIG_SND_DUMMY=m

> CONFIG_SND_AC97_POWER_SAVE_DEFAULT=0
1274a1368
> # CONFIG_HIDRAW is not set
1308a1403
> # CONFIG_USB_OHCI_HCD_SSB is not set
1332a1428
> # CONFIG_USB_STORAGE_ISD200 is not set
1409a1506
> CONFIG_RTC_DRV_DS1374=m


Reproducible: Always

Steps to Reproduce:
1.  Boot using gentoo-sources-2.6.24-r3 
2.  Play audio from any source
3.

Actual Results:  
No audio output from any file.  Some audio from external source.  All audio shows up on hdspmixer input meters.  No audio shows on ouput meters

Expected Results:  
Any audio input can be internally routed to any audio output.  No routing works.
Comment 1 Mike Pagano gentoo-dev 2008-03-23 13:16:11 UTC
Can you attach both .configs
Comment 2 yknot 2008-03-26 22:27:43 UTC
Some Additional information.

I tried building a stock 2.24.4 kernel with the same .config.  Same problem with hdsp.  So its a problem with the upstream kernel.

I will also attach both .configs
Comment 3 yknot 2008-03-26 22:33:07 UTC
Created attachment 147414 [details]
config for kernel 2.6.23-gentoo-r9
Comment 4 yknot 2008-03-26 22:33:59 UTC
Created attachment 147415 [details]
config for kernel 2.6.24-gentoo-r3
Comment 5 yknot 2008-03-28 04:00:24 UTC
I did some pokeing around on the web and on the alsa mailing list
and it look like the
bug is in functions hdsp_playback_to_output_key and hdsp_input_to_output_key

reports are that upgradeing to alsa 1.0.0.16 fixes the problem.

I might try patching the driver in the gentoo kernel this weekend
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2008-03-30 09:28:16 UTC
Based on your info this patch looks promising:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=192b8e3922c916cbacac7e5a190d9412ae39a7ee

Rather than going straight for the alsa-driver-1.0.16 test, could you please try applying that patch directly to the kernel driver in 2.6.24?
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2008-04-19 21:29:31 UTC
Please reopen when the above has been tested