[PATCH] alsa-ucm: Fallback to stereo duplex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/08/2013 05:11 AM, Luke Yelavich wrote:
> On Wed, Feb 06, 2013 at 10:57:23PM EST, Tanu Kaskinen wrote:
>> On Wed, 2013-02-06 at 16:30 +1100, Luke Yelavich wrote:
>>> On Tue, Feb 05, 2013 at 07:22:17PM EST, David Henningsson wrote:
>>>> If 'PlaybackChannels' and 'CaptureChannels' are absent in the UCM
>>>> file for a device, assume the device is stereo duplex.
>>>
>>> PulseAudio runs if using alsa-lib 1.0.26, but crashes on alsa-lib
>>> 1.0.25. I also didn't see HDMI listed in sound settings or sinks for
>>> pulse using alsa-lib 1.0.26 on pandaboard either. Not sure whats going
>>> on, I'll dig deeper tomorrow.
>>
>> The UCM configuration might not have entries for HDMI. If so, then HDMI
>> won't be available if PulseAudio successfully loads the UCM
>> configuration.
>>
>> If you don't need UCM, you can disable it and use PulseAudio's "normal"
>> configuration instead, which should make HDMI work (if it worked with an
>> older version PulseAudio).
>>
>> Sorry, I lied. You can't disable UCM, at least if you're relying on
>> module-udev-detect. I'll make a patch that fixes this.
>
> I built pulseaudio with your patch included, and whilst it allows pulse 3 to work with alsa 1.0.25 by disabling UCM, HDMI is still not shown, even with alsa-lib 1.0.26. Log attached.

 From looking at the log, it looks like the HDMI sink is in fact what 
shows up, even though the port of that sink is "Analog Output".

The headphone/line out fails to open at the lines below. From a quick 
look at the code I didn't see anything obviously related between 2.1 and 
3.0, so could you please verify with 2.1 that things are working better 
there (i e both sinks show up)?

D: [pulseaudio] alsa-util.c: Trying front:0 with SND_PCM_NO_AUTO_FORMAT ...
I: [pulseaudio] (alsa-lib)conf.c: Unknown parameters 0
I: [pulseaudio] (alsa-lib)pcm.c: Unknown PCM front:0
I: [pulseaudio] alsa-util.c: Error opening PCM device front:0: Invalid 
argument
D: [pulseaudio] alsa-util.c: Trying hw:0 with SND_PCM_NO_AUTO_FORMAT ...
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0p' failed (-22)
I: [pulseaudio] alsa-util.c: Error opening PCM device hw:0: Invalid argument


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux