You are not logged in.

#1 2010-06-30 02:44:45

57lvii
Member
From: China
Registered: 2010-04-23
Posts: 38

[solved] Sonata can't change the volume with oss

Hi guys!

I have tried from these links:

http://bbs.archlinux.org/viewtopic.php?id=88570
http://bbs.archlinux.org/viewtopic.php?id=55438

but I can't solve it !

my .mpd.conf

# from http://bbs.archlinux.org/viewtopic.php?id=88570

mixer_type          "software"

audio_output 
{

    type        "oss"
    name        "My OSS Device"
    mixer_control   "PCM"       # optional
    format     "44100:16:2"    # optional

    device      "/dev/dsp"    # optional
    mixer_device    "/dev/mixer"    # optional

    # From http://bbs.archlinux.org/viewtopic.php?id=55438

    #device      "/dev/oss/oss_hdaudio0/pcm0"
    #mixer_device        "/dev/oss/oss_hdaudio0/pcm0"

}

my ossinfo

Device objects
 0: osscore0 OSS core services
 1: oss_hdaudio0 Intel HD Audio interrupts=353975 (372469)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x1043829f
     Codec  0: ALC883 (0x10ec0883/0x1043829f)
 2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices
 0: High Definition Audio ALC883 (Mixer 0 of device object 1)

Audio devices
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play rear                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play side                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm4  (device index 4)
HD Audio play spdif-out           /dev/oss/oss_hdaudio0/spdout0  (device index 5)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 6)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 7)

Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0

thanks for your help !!!

Last edited by 57lvii (2010-10-16 15:17:26)


Life is fantastic, we all pray it gives us the plain comfort life, do not tempt us.
But only in the face of difficult choices, we face the real self, we define ourselves !

Offline

#2 2010-07-18 10:31:12

57lvii
Member
From: China
Registered: 2010-04-23
Posts: 38

Re: [solved] Sonata can't change the volume with oss

I have tried some enable config, but all can't work

I really need help !

could you point to my false ?


diffierent configs

when I configure like that ,volume botton became grey  not being pressed

######################################


mixer_type          "software"

audio_output {

    type        "oss"
    name        "My OSS Device"
    mixer_control   "PCM"       # optional
    format      "44100:16:2"    # optional

    device     "/dev/oss/oss_hdaudio0/pcm0"
    mixer_device       "/dev/oss/oss_hdaudio0/pcm0"

}

mixer_type          "software"

audio_output {
     type        "oss"
     name        "My OSS Device"
     mixer_control   "PCM"       # optional
     format      "44100:16:2"    # optional
 
     device      "/dev/dsp"  # optional
     mixer_device        "/dev/oss/oss_hdaudio0/pcm0"

}     

these config can't work 
######################################

mixer_type          "software"

audio_output {

    type        "oss"
    name        "My OSS Device"
    mixer_control   "PCM"       # optional
    format      "44100:16:2"    # optional

    device      "/dev/dsp"  # optional
    mixer_device    "/dev/mixer"    # optional

    #device     "/dev/oss/oss_hdaudio0/pcm0"
    #mixer_device       "/dev/oss/oss_hdaudio0/pcm0"

}


mixer_type          "oss"

audio_output {
    type        "oss"
    name        "My OSS Device"
    mixer_control   "PCM"       # optional
   format     "44100:16:2"    # optional
                                                      
    mixer_device    "/dev/mixer"    # optional
    device      "/dev/oss/oss_hdaudio0/pcm0"


}

 mixer_type          "software"
 
 audio_output {
     type        "oss"
     name        "My OSS Device"
     mixer_control   "PCM"       # optional
     format      "44100:16:2"    # optional
 

     mixer_device    "/dev/mixer"    # optional
     device      "/dev/oss/oss_hdaudio0/pcm0"

 }      


mixer_type          "oss"

audio_output {
    type        "oss"
    name        "My OSS Device"
    mixer_control   "PCM"       # optional
    format      "44100:16:2"    # optional


    device      "/dev/oss/oss_hdaudio0/pcm0"
    mixer_device    "/dev/mixer"    # optional

}

Life is fantastic, we all pray it gives us the plain comfort life, do not tempt us.
But only in the face of difficult choices, we face the real self, we define ourselves !

Offline

#3 2010-10-16 14:17:19

57lvii
Member
From: China
Registered: 2010-04-23
Posts: 38

Re: [solved] Sonata can't change the volume with oss

today , I try ncmpcpp , the same problem ,it's a long time , nobody give me hand ! So sad [-_-]

I test the mpd.conf from:

[SOLVED] MPD + OSS ~ can't change volume under ncmpcpp, only hardware
https://bbs.archlinux.org/viewtopic.php?pid=687648

and the ArchWiki OSS
http://wiki.archlinux.org/index.php/OSS … yer_Daemon

but can't solve the problem !

id3v1_encoding      "gbk"
user                "mpd"
log_level           "secure"
 
bind_to_address     "127.0.0.1"
port                "6600"


music_directory     "~/me/yuer"
playlist_directory  "~/me/yuer/playlist/"
db_file             "~/me/yuer/mpd/mpd.db"
pid_file            "~/me/yuer/mpd/mpd.pid"
state_file          "~/me/yuer/mpd/mpdstate"
log_file            "~/me/yuer/mpd/mpd.log"
error_file          "~/me/yuer/mpd/error.log"

mixer_type          "software"

audio_output {
    type            "oss"
    name            "My OSS Device"
    mixer_control   "PCM"       # optional
    format          "44100:16:2"    # optional
    
    # Default Config
    #device          "/dev/dsp"  # optional
    #mixer_device    "/dev/mixer"    # optional

    # From ArchWiki OSS
    device          "/dev/oss/oss_hdaudio0/pcm0"
    mixer_device    "/dev/oss/oss_hdaudio0/mix0"                                                                       
}

this is my lspci info:

# lspci |grep -i audio
# 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
# 01:00.1 Audio device: ATI Technologies Inc RV635 Audio device [Radeon HD 3600 Series]

Thanks for your Help !


Life is fantastic, we all pray it gives us the plain comfort life, do not tempt us.
But only in the face of difficult choices, we face the real self, we define ourselves !

Offline

#4 2010-10-16 15:16:22

57lvii
Member
From: China
Registered: 2010-04-23
Posts: 38

Re: [solved] Sonata can't change the volume with oss

I make a stupid mistake !

I save the config file to ~/.mpd.conf , it is wrong @

After I rename it to ~/.mpdconf , it't can work fine now !!!


Life is fantastic, we all pray it gives us the plain comfort life, do not tempt us.
But only in the face of difficult choices, we face the real self, we define ourselves !

Offline

Board footer

Powered by FluxBB