diff options
author | Masakazu Mokuno <mokuno@sm.sony.co.jp> | 2008-10-20 08:03:33 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-10-20 08:04:59 +0200 |
commit | 756ba83ee370fbf62643777e7ba4a4f05932f6fb (patch) | |
tree | 7f1ee5dbf5558129ded18182d9d5d1060becc530 /drivers | |
parent | 219b22b24546dbd512419766eb46f6b729a5453a (diff) |
ps3: Add ps3av_audio_mute_analog()
Add support for muting the analog output so that it does not
play noises while non-PCM data is played.
Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ps3/ps3av.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/ps3/ps3av.c b/drivers/ps3/ps3av.c index 6f2f90ebb02..06848b254d5 100644 --- a/drivers/ps3/ps3av.c +++ b/drivers/ps3/ps3av.c @@ -915,6 +915,22 @@ int ps3av_video_mute(int mute) EXPORT_SYMBOL_GPL(ps3av_video_mute); +/* mute analog output only */ +int ps3av_audio_mute_analog(int mute) +{ + int i, res; + + for (i = 0; i < ps3av->av_hw_conf.num_of_avmulti; i++) { + res = ps3av_cmd_av_audio_mute(1, + &ps3av->av_port[i + ps3av->av_hw_conf.num_of_hdmi], + mute); + if (res < 0) + return -1; + } + return 0; +} +EXPORT_SYMBOL_GPL(ps3av_audio_mute_analog); + int ps3av_audio_mute(int mute) { return ps3av_set_audio_mute(mute ? PS3AV_CMD_MUTE_ON |