sound fixes for 3.6-rc6
Subsystems (2)
Linus,
The following changes since commit 2e4a263ca80a203ac6109f5932722a716c265395:
ALSA: snd-usb: fix cross-interface streaming devices (2012-08-31 21:04:53 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
for you to fetch changes up to 3737e2be505d872bf2b3c1cd4151b2d2b413d7b5:
ALSA: ice1724: Use linear scale for AK4396 volume control. (2012-09-12 16:17:41 +0200)
----------------------------------------------------------------
Sound fixes for 3.6-rc6
Just a few small / trivial regression fixes at this time.
----------------------------------------------------------------
Catalin Iacob (1):
ALSA: hda_intel: add position_fix quirk for Asus K53E
Dan Carpenter (1):
ALSA: compress_core: fix open flags test in snd_compr_open()
Matteo Frigo (1):
ALSA: ice1724: Use linear scale for AK4396 volume control.
Takashi Iwai (3):
ALSA: hda - Fix missing Master volume for STAC9200/925x
ALSA: usb-audio: Fix bogus error messages for delay accounting
ALSA: hda - Fix Oops at codec reset/reconfig
sound/core/compress_offload.c | 8 +++----- sound/pci/hda/hda_codec.c | 2 +- sound/pci/hda/hda_intel.c | 1 + sound/pci/hda/patch_sigmatel.c | 2 +- sound/pci/ice1712/prodigy_hifi.c | 3 ++- sound/usb/pcm.c | 6 ++++++ 6 files changed, 14 insertions(+), 8 deletions(-)
sound/core/compress_offload.c +3 -5
@@ -80,14 +80,12 @@ static int snd_compr_open(struct inode *inode, struct file *f)int maj =imajor (inode);int ret; -if (f->f_flags &O_WRONLY ) +if ((f->f_flags &O_ACCMODE ) ==O_WRONLY ) dirn =SND_COMPRESS_PLAYBACK ; -else if (f->f_flags &O_RDONLY ) +else if ((f->f_flags &O_ACCMODE ) ==O_RDONLY ) dirn =SND_COMPRESS_CAPTURE ; -else { -pr_err ("invalid direction\n" ); +else return -EINVAL ; - }if (maj == snd_major) compr = snd_lookup_minor_data(iminor(inode),
sound/pci/hda/hda_codec.c +1 -1
@@ -2353,6 +2353,7 @@ int snd_hda_codec_reset(struct hda_codec *codec) }if (codec->patch_ops.free) codec->patch_ops.free (codec); +memset (&codec->patch_ops,0 ,sizeof (codec->patch_ops));snd_hda_jack_tbl_clear (codec); codec->proc_widget_hook =NULL ; codec->spec =NULL ;
@@ -2368,7 +2369,6 @@ int snd_hda_codec_reset(struct hda_codec *codec) codec->num_pcms =0 ; codec->pcm_info =NULL ; codec->preset =NULL ; -memset (&codec->patch_ops,0 ,sizeof (codec->patch_ops)); codec->slave_dig_outs =NULL ; codec->spdif_status_reset =0 ;module_put (codec->owner);
sound/pci/hda/hda_intel.c +1 -0
@@ -2701,6 +2701,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = {SND_PCI_QUIRK (0x1043 ,0x813d ,"ASUS P5AD2" ,POS_FIX_LPIB ),SND_PCI_QUIRK (0x1043 ,0x81b3 ,"ASUS" ,POS_FIX_LPIB ),SND_PCI_QUIRK (0x1043 ,0x81e7 ,"ASUS M2V" ,POS_FIX_LPIB ), +SND_PCI_QUIRK (0x1043 ,0x1b43 ,"ASUS K53E" ,POS_FIX_POSBUF ),SND_PCI_QUIRK (0x104d ,0x9069 ,"Sony VPCS11V9E" ,POS_FIX_LPIB ),SND_PCI_QUIRK (0x10de ,0xcb89 ,"Macbook Pro 7,1" ,POS_FIX_LPIB ), SND_PCI_QUIRK(0x1297, 0x3166, "Shuttle", POS_FIX_LPIB),
sound/pci/hda/patch_sigmatel.c +1 -1
@@ -1075,7 +1075,7 @@ static struct snd_kcontrol_new stac_smux_mixer = {static const char *const slave_pfxs[] = {"Front" ,"Surround" ,"Center" ,"LFE" ,"Side" , -"Headphone" ,"Speaker" ,"IEC958" , +"Headphone" ,"Speaker" ,"IEC958" ,"PCM" ,NULL };
sound/pci/ice1712/prodigy_hifi.c +2 -1
@@ -297,6 +297,7 @@ static int ak4396_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem } static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1); +static const DECLARE_TLV_DB_LINEAR(ak4396_db_scale, TLV_DB_GAIN_MUTE, 0);static struct snd_kcontrol_new prodigy_hd2_controls[]__devinitdata = { {
@@ -307,7 +308,7 @@ static struct snd_kcontrol_new prodigy_hd2_controls[] __devinitdata = { .info = ak4396_dac_vol_info, .get = ak4396_dac_vol_get, .put = ak4396_dac_vol_put, - .tlv = { .p = db_scale_wm_dac }, + .tlv = { .p = ak4396_db_scale }, }, };
sound/usb/pcm.c +6 -0
@@ -1140,6 +1140,12 @@ static void retire_playback_urb(struct snd_usb_substream *subs,int processed = urb->transfer_buffer_length / stride;int est_delay; +/* ignore the delay accounting when procssed=0 is given, i.e. +* silent payloads are procssed before handling the actual data +*/ +if (!processed) +return ; +spin_lock_irqsave (&subs->lock, flags); est_delay =snd_usb_pcm_delay (subs, runtime->rate);/* update delay with exact number of samples played */
Quoted 3 lines · Takashi Iwai
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.gitfor-linus
*PLEASE* don't do this.
You point to a branch, but then the pull request clearly implies there is a tag with extra information in it.
And indeed, the actual thing I should pull is not at all "for-linus", it seems to be your "tags/sound-3.6" tag.
I don't know if this is the old "git pull-request" breakage where it stupidly "corrects" the remote branch when it verifies the branch name, or whether it's some other scripting problem. I think current git versions should not mess up the tag information, if that's the cause, but please verify.
Linus
At Thu, 13 Sep 2012 19:51:14 +0800,
Quoted 11 lines · Linus Torvalds
Quoted 3 lines · Takashi Iwai
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.gitfor-linus*PLEASE* don't do this.
You point to a branch, but then the pull request clearly implies there is a tag with extra information in it.
Quoted 8 lines
And indeed, the actual thing I should pull is not at all "for-linus", it seems to be your "tags/sound-3.6" tag.
I don't know if this is the old "git pull-request" breakage where it stupidly "corrects" the remote branch when it verifies the branch name, or whether it's some other scripting problem. I think current git versions should not mess up the tag information, if that's the cause, but please verify.
Oops, yes, it's indeed intended to be tags/sound-3.6.
So please pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.6
FWIW, it was an output from git-pull-request, which fell back to the equivalent branch. Usually I check it manually but I forgot it at this time just before going to a meeting.
This was with git 1.7.11.5. I'll check whether this still happens with 1.7.12.
Takashi
At Thu, 13 Sep 2012 14:03:16 +0200,
Quoted 28 lines · Takashi Iwai
At Thu, 13 Sep 2012 19:51:14 +0800,
Quoted 11 lines · Linus Torvalds
Quoted 3 lines · Takashi Iwai
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.gitfor-linus*PLEASE* don't do this.
You point to a branch, but then the pull request clearly implies there is a tag with extra information in it.
Quoted 8 lines
And indeed, the actual thing I should pull is not at all "for-linus", it seems to be your "tags/sound-3.6" tag.
I don't know if this is the old "git pull-request" breakage where it stupidly "corrects" the remote branch when it verifies the branch name, or whether it's some other scripting problem. I think current git versions should not mess up the tag information, if that's the cause, but please verify.
Oops, yes, it's indeed intended to be tags/sound-3.6.
So please pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.gittags/sound-3.6
Quoted 6 lines
FWIW, it was an output from git-pull-request, which fell back to the equivalent branch. Usually I check it manually but I forgot it at this time just before going to a meeting.
This was with git 1.7.11.5. I'll check whether this still happens with 1.7.12.
The same problem still happens with git 1.7.12.
This is rather annoying than useful.
Takashi
Quoted 9 lines · Takashi Iwai
Quoted 6 lines
FWIW, it was an output from git-pull-request, which fell back to the equivalent branch. Usually I check it manually but I forgot it at this time just before going to a meeting.
This was with git 1.7.11.5. I'll check whether this still happens with 1.7.12.
The same problem still happens with git 1.7.12.
This is rather annoying than useful.
I can't reproduce here. What is your exact request-pull invocation? Is request-pull showing a warning like:
warn: You locally have sound-3.6 but it does not (yet)
warn: appear to be at git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
warn: Do you want to push it there, perhaps?
(it should do so since v1.7.11.2). Maybe we need to make it possible to bump that warning to a fatal error?
-Peff
At Thu, 13 Sep 2012 09:03:44 -0400,
Quoted 13 lines · Jeff King
Quoted 9 lines · Takashi Iwai
Quoted 6 lines
FWIW, it was an output from git-pull-request, which fell back to the equivalent branch. Usually I check it manually but I forgot it at this time just before going to a meeting.
This was with git 1.7.11.5. I'll check whether this still happens with 1.7.12.
The same problem still happens with git 1.7.12.
This is rather annoying than useful.
Quoted 6 lines
I can't reproduce here. What is your exact request-pull invocation? Is request-pull showing a warning like:
warn: You locally have sound-3.6 but it does not (yet)
warn: appear to be atgit://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
warn: Do you want to push it there, perhaps?
Hm, it looks like the check is performed only for tag objects.
In the example below, no warning appears:
% git tag mytest for-next
% git request-pull mytest~ git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git mytest
With an annotated or a signed tag, git seems giving a warning like above, indeed. So my test seemed wrong. Sorry for the noise.
In the previous case, I don't know what really screwed up, since it was against a signed tag. Maybe I overlooked the warning as I'm redirecting the output to a file.
Quoted 2 lines
(it should do so since v1.7.11.2). Maybe we need to make it possible to bump that warning to a fatal error?
Yes, please! It's easily overlooked.
Better to be "strict but correct" than "friendly but wrong".
Just give an option to ignore the error if people really want to ignore it.
thanks,
Takashi
Quoted 1 line · Takashi Iwai
Quoted 1 line
I can't reproduce here. What is your exact request-pull invocation?
This question was not answerd. Did you ask request-pull to ask for a branch to be pulled, or did you ask it to ask for the tag to be pulled?
If the former, I would have say it is a pebcak. Linus asked you to ask a signed tag to be pulled, and you want to have the tag to be pulled, but if you do not give "git request-pull" the tag but a branch that the tag points at, the command does not have a good reason to countermand your (apparent) wish that the branch is what is to be pulled.
Quoted 6 lines
Quoted 5 lines
Is request-pull showing a warning like:
warn: You locally have sound-3.6 but it does not (yet)
warn: appear to be atgit://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
warn: Do you want to push it there, perhaps?
Quoted 7 lines
Hm, it looks like the check is performed only for tag objects.
In the example below, no warning appears:
% git tag mytest for-next
% git request-pull mytest~git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.gitmytestWith an annotated or a signed tag, git seems giving a warning like above, indeed. So my test seemed wrong. Sorry for the noise.
OK.
At Thu, 13 Sep 2012 08:14:27 -0700,
Quoted 6 lines · Junio C Hamano
Quoted 1 line · Takashi Iwai
Quoted 1 line
I can't reproduce here. What is your exact request-pull invocation?
This question was not answerd.
It was (a sort of), but let me clarify again.
In my original pull request, I did git-request-pull for a signed tag, but I apparently overlooked the warning.
Then the next test with git 1.7.12, I did it using no annotated/signed tag, so git-request-pull didn't complain it. When I do it with a signed tag, it starts warning.
Quoted 10 lines
Did you ask request-pull to ask for
a branch to be pulled, or did you ask it to ask for the tag to be pulled?If the former, I would have say it is a pebcak. Linus asked you to ask a signed tag to be pulled, and you want to have the tag to be pulled, but if you do not give "git request-pull" the tag but a branch that the tag points at, the command does not have a good reason to countermand your (apparent) wish that the branch is what is to be pulled.
Yeah I can understand that. But the problem is that a warning is moderate so it can be so easily overlooked. It'd be user- (or subsystem-maintainer-) friendly if this automatic conversion can be suppressed.
Takashi
Quoted 16 lines
Quoted 6 lines
Quoted 5 lines
Is request-pull showing a warning like:
warn: You locally have sound-3.6 but it does not (yet)
warn: appear to be atgit://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
warn: Do you want to push it there, perhaps?Quoted 7 lines
Hm, it looks like the check is performed only for tag objects.
In the example below, no warning appears:
% git tag mytest for-next
% git request-pull mytest~git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.gitmytestWith an annotated or a signed tag, git seems giving a warning like above, indeed. So my test seemed wrong. Sorry for the noise.
OK.